I have 1000+ devices, that only respond to snmpget, thus cannot be cheked for availability with snmp, only icmp ping. On the windows box, there was no problem at all, but on the linux box it seems that in order to use icmp your use must have root privileges.
Somehow i don't want to run the poller from the root crontab, but for my graphics to work again i had to. I consider this a temoporary fix...
Also when i open any device, that is up, i get the following error message uder ping results:
"Cannot connect to host"
This is in the error_log of the apache:
Code: Select all
[Wed Oct 01 07:38:47 2008] [error] [client --.--.--.--] PHP Warning: socket_create() [<a href='function.socket-create'>function.socket-create</a>]: Unable to create socket [1]: Operation not permitted in /var/www/htdocs/cacti/lib/ping.php on line 158, referer: http://my.cacti.com/cacti/host.php?action=edit&host_template_id=-1&host_status=-1
[Wed Oct 01 07:38:47 2008] [error] [client --.--.--.--] PHP Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /var/www/htdocs/cacti/lib/ping.php on line 160, referer: http://my.cacti.com/cacti/host.php?action=edit&host_template_id=-1&host_status=-1
P.S. my distro is Slackware 12.1.