cactid problems

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

User avatar
Morgan
Cacti User
Posts: 187
Joined: Wed Feb 25, 2004 3:38 am

Post by Morgan »

FYI, i'm running RRDtool 1.0.46
User avatar
youngmug
Posts: 15
Joined: Wed Jun 19, 2002 4:34 pm
Location: California, USA
Contact:

Post by youngmug »

I have an old UltraSparc machine under my desk that I might be able to set up soon if you need a Solaris tester. I just need to get a working kb and mouse.
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Hello,

Here is a Microsoft article that provides examples of the use of CreateThread instead of pthread and other topics related to converting Unix threaded applications to Windows.

I don't have the cycles, but there may be an opportunity to use PRAGMA's or something else. Good luck!!

http://msdn.microsoft.com/library/defau ... MGch09.asp
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

youngmug wrote:I have an old UltraSparc machine under my desk that I might be able to set up soon if you need a Solaris tester. I just need to get a working kb and mouse.
Let me know if this works out. Assuming you are experiencing this problem as well, it would be even cooler if you could get the box to a point where the bug was semi-reproducable. That would *really* help the debugging process.

-Ian
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

TheWitness wrote:Here is a Microsoft article that provides examples of the use of CreateThread instead of pthread and other topics related to converting Unix threaded applications to Windows.
I would love to have a native Windows cactid binary. I should probably brush up on my Windows C programming skills ;-). Any cross platform gurus know if it would be possible to accomplish this with a single code base? Maybe using lots of compiler directives?

-Ian
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

raX,

What do you think about creating a small c program for the Win32 platform that processes the Cache by simply taking the command line from the rrd.php file and executing the "CreateProcess" in asynchronus mode and returning the process id. You might be able to control the number of simulaneous processes through the cmd.php and run things much faster, or just let the rrd.php run wild. Your thoughts please.

Larry

Link for CreateProcess:

http://msdn.microsoft.com/library/defau ... rocess.asp

:wink:
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

raX,

There is also the spawn function that might be simpler. Unfortunately, I could write the pseudocode but not the code. Same idea as the previous post, but using spawn instead of CreateProcess. Since the spawn function is portable between unix and Windows, it may make the php code more attractive.

So, as a system setting, as in the rrdpath for example, you specify the maximum nubmer of simultaneous processes, say 40. Then you create a do loop that spawns an RRDTOOL session until the process count reaches the simultaneous count. Then you check to see what processes have ended. You decrement the counter for each process that has ended and fire up a new one until your cache is clear.

Quite a departure from the cactid, but maybe a good solution multiplatform solution. What do yah think?

Larry
Suzumushi

i've got the same problem on linux box.....

Post by Suzumushi »

Hello
i'm using debian linux
2.2.6 kernel
RRDtool 1.0.46
gcc version 3.3.3
PHP 4.3.6

cactid from 0.8.5a with cactid_rrdtool_pipe patch
and get the same problem with hanging processes
sometimes i can't even kill it <defunct processes>
basically before patch it was happening 5-10 times a day
i have applied patch yesterday, compilled fresh cactid but at night at about 18:30 it happens again...

just in case you need some bug tracking let me know i can help
i'm using cactid to pool 30 devices (snmp and script based) from cisco, windows, linux, aix, solaris, hp-ux collecting 1462 datasources so i can be a good tester :)

best regards
Suzumushi
Suzumushi

found in log

Post by Suzumushi »

found something in log

free(): invalid pointer

happens with script query
Couldn't connect to x.x.x.x:1040 : IO::Socket::INET: connect: Connection refused
(i'm usnig netsaint_statd)
but not always!
when it happens, rrdtool/cactid process hangs causing a huge load on system.

if i will saw any other errors i will post it here, now this host is disabled, so i will check if there will be any stuck processes in near future.

best regards

Suzumushi
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Suzumushi,

If you would like to volunteer for testing, please send me a post at my e-mail address. It is in my personal information online at this blog. There are a number of changes, none quite significant. I believe I have one Linux but would like another.

Thanks in Advance,

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
waxling

Post by waxling »

Morgan wrote:i'm really not sure how the patchign utility works under solaris, so i won't venture a guess.
Variosu people have posted output of the patching utility when we attempt applying a patch.
I think it might have something to do with the syntax the patch utility is expecting not matching what linux likes.

the joysd of solaris...
thanks for the .c though :)
i'll go compile this now.
morgan try using gpatch (if you installed the sun provided gpl software that is put in /opt/sfw). Solaris patch is borked.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests