Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
I keep getting a bunch of processes clogged up on my cacti system. They seem to not go away and keep adding up. Sometimes I get so many that it stops graphing and I have to kill them manually. Also, my webserver tends to not respond during the polling period. Any hints?
-------------------------------
Cacti specific settings:
(Settings, Poller)
Poller Enabled: X (YES)
Poller Type: cmd.php
Max conn process: 1
Downed host detect: Ping and SNMP
Ping Type: UDP
Ping timeout: 400
ping retry: 3
-------------------------------
Should I compile cactid and give it a shot?
Running the poller command interactively doesn't seem to give any obvious hints. It seems like it will run fine until I leave for the day and come back and notice that it stopped graphing late at night or in the morning. It seems like it's a problem that takes a while to build up.
Ok, I've been able to look at this project again... I've got some more information. I started logging on MySQL and I am getting this _every_ second in my logfile:
02/28/2005 12:54:59 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
02/28/2005 12:55:02 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/bin/php, ARGS: -q /var/www/cacti/cmd.php 0 6]
02/28/2005 12:55:33 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/bin/php, ARGS: -q /var/www/cacti/cmd.php 7 11]
02/28/2005 12:56:04 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/bin/php, ARGS: -q /var/www/cacti/cmd.php 12 16]
02/28/2005 12:56:35 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/bin/php, ARGS: -q /var/www/cacti/cmd.php 17 20]
What is going on? Do I need to tune my MySQL database for this? I am also using MySQL on the same box for ACID/snort. Any pointers would be appreciated.
It appears that there may be an issue with your poller either crashing and leaving the script server running or some other permissions problem. Please check the following and keep to no more than 4:
Number of Concurrent Processes
Then, set logging to DEBUG for 1 pass of the poller and post the output from the Cacti log file. Then we will see what's going on.
TheWitness
True understanding begins only when we realize how little we truly understand...
$ php -q /var/www/cacti/poller.php
03/01/2005 08:18:17 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/bin/php, ARGS: -q /var/www/cacti/cmd.php 0 20]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
PHP Warning: socket_set_option() unable to set socket option [33]: Numerical argument out of domain in /var/www/cacti/lib/ping.php on line 217
cat: /proc/meminfo: No such file or directory
Waiting on 1/1 pollers.
PHP Warning: socket_set_option() unable to set socket option [33]: Numerical argument out of domain in /var/www/cacti/lib/ping.php on line 217
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Timeout: No Response from 10.B.C.D:161.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Timeout: No Response from 10.B.C.D:161.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Timeout: No Response from 10.B.C.D:161.
PHP Warning: socket_set_option() unable to set socket option [33]: Numerical argument out of domain in /var/www/cacti/lib/ping.php on line 217
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
PHP Warning: socket_set_option() unable to set socket option [33]: Numerical argument out of domain in /var/www/cacti/lib/ping.php on line 217
Waiting on 1/1 pollers.
PHP Warning: socket_set_option() unable to set socket option [33]: Numerical argument out of domain in /var/www/cacti/lib/ping.php on line 217
Waiting on 1/1 pollers.
PHP Warning: socket_set_option() unable to set socket option [33]: Numerical argument out of domain in /var/www/cacti/lib/ping.php on line 217
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
^C
(NOTE: My real IP addresses are being used, not 10.B.C.D.)
1) Are you running the poller with a user who has root permissions?
2) Are you attempting to run ICMP ping?
If the answer to 1) is NO and the answer to 2) is YES you have an issue in that *nix does not support ICMP pings as NON-ROOT users. This might explain everything else.
TheWitness
True understanding begins only when we realize how little we truly understand...