Cactid Errors [NOT solved]

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Cacti Jack
Posts: 36
Joined: Wed Mar 21, 2007 11:14 am

Cactid Errors [NOT solved]

Post by Cacti Jack »

CACTID: Poller[0] Host[63] ERROR: The POPEN timed out

and

CACTID: Poller[0] ERROR: SS[999] Script Server did not start properly return message was: 'U'

and

10 [unknown (0xD88)] cactid 3168 sig_send: wait for sig_complete event failed, signal -34, rc 258, Win32 error 0

Server: Cacti 0.8.6j |Win 2003 MySQL 5.0.37| PHP 5.2.2 | RRDtool 1.2.19| BOOST 1.3 | Cactid 0.8.6j|
Last edited by Cacti Jack on Mon Jun 04, 2007 9:21 am, edited 5 times in total.
Cacti Jack
Posts: 36
Joined: Wed Mar 21, 2007 11:14 am

Also

Post by Cacti Jack »

A bigger problem is sometimes my poller completes in 30 seconds, other times it does not; often leaving running many cactid.exe, php.exe, and an sh.exe process running that do not end. At the next poll cycle more procs are added and eventually the server is overloaded from out of control process load.

This is causing my poller to hang, and gaps to appear in my graphs ... It's quite a mess.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You already paid attention to the php memory settings?
Reinhard
Cacti Jack
Posts: 36
Joined: Wed Mar 21, 2007 11:14 am

Post by Cacti Jack »

gandalf wrote:You already paid attention to the php memory settings?
Reinhard
memory_limit = 256M
Last edited by Cacti Jack on Fri Jun 01, 2007 10:22 am, edited 1 time in total.
|Server: Cacti 0.8.7 |Win 2003 MySQL 5.0.37| PHP 5.2.2 | RRDtool 1.2.19 | Spine 0.8.7a|
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Re: Also

Post by mcutting »

Cacti Jack wrote:A bigger problem is sometimes my poller completes in 30 seconds, other times it does not; often leaving running many cactid.exe, php.exe, and an sh.exe process running that do not end. At the next poll cycle more procs are added and eventually the server is overloaded from out of control process load.

This is causing my poller to hang, and gaps to appear in my graphs ... It's quite a mess.
I had exactly the same problem. For me, the poller would hang more often than not, with runaway sh.exe and cactid.exe processes. In the end, I went for cactid version G, which does not use sh.exe.

This solved the problem of the poller hanging, although it takes about 5 or 6 seconds before data begins to be collected. All of the MIBS are present, and I'm not using MIBS=All. If I could reduce this delay, or prevent it fully, my poller would probably complete in about 20 seconds or less.

Just noticed that you are using PHP 5.2.2. Have you replaced the libmysql.dll with one from PHP 5.2.0, as this is a known bug - see http://bugs.php.net/bug.php?id=41350
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Cacti Jack
Posts: 36
Joined: Wed Mar 21, 2007 11:14 am

Re: Also

Post by Cacti Jack »

mcutting wrote: I had exactly the same problem. For me, the poller would hang more often than not, with runaway sh.exe and cactid.exe processes. In the end, I went for cactid version G, which does not use sh.exe.
I tried version g of cactid; but there is no change.
mcutting wrote:Just noticed that you are using PHP 5.2.2. Have you replaced the libmysql.dll with one from PHP 5.2.0, as this is a known bug - see http://bugs.php.net/bug.php?id=41350
yes i was using the 5.2.0 library. Just to test if it's related to my version of PHP; I've sent reverted my php back to 5.2.0; and still the same issue happens.
Last edited by Cacti Jack on Fri Jun 01, 2007 10:22 am, edited 1 time in total.
|Server: Cacti 0.8.7 |Win 2003 MySQL 5.0.37| PHP 5.2.2 | RRDtool 1.2.19 | Spine 0.8.7a|
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

When you say a debug poll from the command line, are you calling poller.php or CACTID.exe directly ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Cacti Jack
Posts: 36
Joined: Wed Mar 21, 2007 11:14 am

Post by Cacti Jack »

mcutting wrote:When you say a debug poll from the command line, are you calling poller.php or CACTID.exe directly ?
I am calling the poller.php file.
Last edited by Cacti Jack on Fri Jun 01, 2007 10:23 am, edited 1 time in total.
|Server: Cacti 0.8.7 |Win 2003 MySQL 5.0.37| PHP 5.2.2 | RRDtool 1.2.19 | Spine 0.8.7a|
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Ok. Do you see sh.exe (I am presuming you're running either H or I of CACTID) processes taking 99% CPU ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Cacti Jack
Posts: 36
Joined: Wed Mar 21, 2007 11:14 am

Post by Cacti Jack »

Currently I am trying a process of elimination to solve this issue;

I first disabled every host I had, and ran the poller; it ran and worked polling no hosts, reporting the expected stats, and ending correctly.

I then proceeded slowly to add groups of hosts of slowly; and run the poller to see if it completed.


While doing this I did notice one thing;

(using 1 thread) in the window I start the poller it finishes and reports the stats; however the spawned new window it crates (named cactiplus) takes good 90 seconds to close after the poll has reported it has ran, while this is going on a rrdtool.exe process remains running and the window outputs a series of OKs, along with many ERRORs about expecting 4 datasources, got 1, etc.

Should I be concerned?
|Server: Cacti 0.8.7 |Win 2003 MySQL 5.0.37| PHP 5.2.2 | RRDtool 1.2.19 | Spine 0.8.7a|
Cacti Jack
Posts: 36
Joined: Wed Mar 21, 2007 11:14 am

Post by Cacti Jack »

The more I run the poller; the more I've noticed my poller freezes at different places each time.

So something happens that causes the poller to hang, but I'm not sure what it is.

seems to happen on both cmd.php and cactid...

so maybe it's PHP related; what is considered the most stable php release for windows? what are some suggested php.ini settings I should validate/try?
|Server: Cacti 0.8.7 |Win 2003 MySQL 5.0.37| PHP 5.2.2 | RRDtool 1.2.19 | Spine 0.8.7a|
Cacti Jack
Posts: 36
Joined: Wed Mar 21, 2007 11:14 am

Post by Cacti Jack »

Eh..

No matter what I change, cactid continues to crash with the following error at random times.

1401784 [unknown (0x1160)] cactid 5688 sig_send: wait for sig_complete event failed, signal -34, rc 258, Win32 error 0
|Server: Cacti 0.8.7 |Win 2003 MySQL 5.0.37| PHP 5.2.2 | RRDtool 1.2.19 | Spine 0.8.7a|
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please pm TheWitness, author of cactid
Reinhard
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Cacti Jack,

Cygwin is somewhat, err, very problematic. I would suggest you do the following:

1) Install Cygwin from the distribution
2) Download the SVN Branch 0.8.6 of Cactid
3) Read the Windows make instructions
4) Perform the make. This requires you to make MySQL and Net-SNMP 5.1.x, no higher.
5) Install it use that version without any sh.exe or DLL's in your binary directory.

Post feedback once done.

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?
Cacti Jack
Posts: 36
Joined: Wed Mar 21, 2007 11:14 am

Post by Cacti Jack »

Found solution.

Turns out it had nothing to do with cactid; my mysql tables were corrupted; this was causing cactid to crash.
|Server: Cacti 0.8.7 |Win 2003 MySQL 5.0.37| PHP 5.2.2 | RRDtool 1.2.19 | Spine 0.8.7a|
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests