cactid problems
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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
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.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.
-Ian
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?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.
-Ian
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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
i've got the same problem on linux box.....
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
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
found in log
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
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
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
morgan try using gpatch (if you installed the sun provided gpl software that is put in /opt/sfw). Solaris patch is borked.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.
Who is online
Users browsing this forum: No registered users and 0 guests