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'm on a Solaris 10 x86 machine and am trying to move to cactid, due to the large number of hosts we have. When running the regular poller with about 1/10 of our total hosts it takes a little under a minute:
09/17/2007 11:48:35 AM - SYSTEM STATS: Time:46.4145 Method:cmd.php Processes:20 Threads:N/A Hosts:87 HostsPerProcess:5 DataSources:2087 RRDsProcessed:1329
However, upon switching to cactid, the performance becomes abysmal:
09/17/2007 11:46:49 AM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
09/17/2007 11:46:49 AM - SYSTEM STATS: Time:292.9064 Method:cactid Processes:20 Threads:20 Hosts:87 HostsPerProcess:5 DataSources:2087 RRDsProcessed:0
Warning: pclose(): 65 is not a valid stream resource in /usr/local/httpd/htdocs/cacti-0.8.6j/lib/rrd.php on line 47
Can somebody help me shed some light onto this? There are some weird errors in the cacti log:
09/17/2007 11:56:37 AM - CMDPHP: Poller[0] Host[73] DS[947] WARNING: Result from SNMP not valid. Partial Result:
09/17/2007 11:56:38 AM - CMDPHP: Poller[0] Host[84] DS[1137] WARNING: Result from SNMP not valid. Partial Result:
09/17/2007 11:56:39 AM - CMDPHP: Poller[0] WARNING: sockets support not enabled in PHP, falling back to SNMP ping
09/17/2007 11:56:40 AM - CMDPHP: Poller[0] WARNING: sockets support not enabled in PHP, falling back to SNMP ping
09/17/2007 11:56:40 AM - CMDPHP: Poller[0] Host[89] DS[1192] WARNING: Result from SNMP not valid. Partial Result:
09/17/2007 11:56:41 AM - CMDPHP: Poller[0] Host[64] DS[864] WARNING: Result from SNMP not valid. Partial Result:
Do you have a lot of scripts or non snmp based polling ?
I didn't saw the "Warning: pclose(): 65 is not a valid stream resource in /usr/local/httpd/htdocs/cacti-0.8.6j/lib/rrd.php on line 47" part, maybe your performance problem is lurking here
Please make sure to have all patches applied. Use latest cactid. Start with #of_processes =1-2 times the number of CPU cores, threads = 10 .. 15
Reinhard
Your system does not meet the minimum software requirements for PHP. Therefore, you are having problems. If you are running solaris, you will definately encounter problems with Cactid. You might try the beta cactid 0.8.6j in the Announcement's forum.
However, to make things best the following is advised:
1) PHP 4.3.6 or greater
2) The following PHP modules should be enabled (php -m):
sockets
snmp
mysql
TheWitness
True understanding begins only when we realize how little we truly understand...
I'm using cacti cacti-0.8.6j and cactid 0.8.6i the latest php, apache, etc (this is a brand new box which is replacing ancient freebsd 4.4 machines
I don't have sockets or snmp compiled directly into php, but I'm not using ICMP ping and I thought having cacti use net-snmp is more powerful instead of using php-snmp? am I wrong on this?
Anyways, I'll play around with adding them to php tomorrow as well as playing with a few more threads/processes settings and see where that gets me.
Ever have one of those days where you know you're overworked?
I've found out what's going on...since the machine I'm running on doesn't have a compiler (i'm compiling everything on a dev machine...it's my organizations security requirement) i had to create /etc/cactid.conf myself, but typo'd it to /etc/cadtid.conf instead.
Maybe cactid should report that it can't find it? *shrugs*
Anyways, the time it takes for cactid to complete everyting is about the same:
hylaride wrote:Maybe cactid should report that it can't find it? *shrugs*
There has been a bug report on this issue lately, well, it was mine
And it is solved, IMHO. But only with latest cactid (See Announcement Forum)
Reinhard