use icmp as non-root user?

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Jacket
Posts: 41
Joined: Tue Sep 30, 2008 11:38 pm
Location: Sofia, Bulgaria

use icmp as non-root user?

Post by Jacket »

Hi, i just moved my cacti from my old windows box to a new linux one. Everything went fine except one verry annoying thing.
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
What can i do? I tried adding apache user to /etc/sudoers, but maybe i didn't made i right...
P.S. my distro is Slackware 12.1.
Ateo
Posts: 26
Joined: Fri Sep 26, 2008 1:07 pm
Location: http://reno.nevada.u$

Post by Ateo »

Just out of curiosity, what is the syntax you added to sudoers? Also, did you use a regular text editor or "visudo" to edit /etc/sudoers?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest