[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] 4.3.0 fping problem



fping is normaly installed with setuid "-rwsr-sr-x": there no need to use sudo. The option -Ae is not part of the definition in hobbitserver.cfg.

Try this:

FPING="/usr/local/sbin/fping"


Dominique


mv652 (at) softhome.net wrote:
Hi,
I am putting in a new install with Xymon 4.3.0 beta 2.
When I try to use 'fping' as my ping utility, I receive connection errors for all hosts, including the server itself:
"Service conn on <host> is not OK : Host does not respond to ping
System unreachable for 1 poll periods (0 seconds)"

Using' hobbitping' works fine, but because it doesn't report back the times in microseconds correctly I need to use fping. I'm a little stumped as to what I'm missing to have fping work correctly.

My sudoers file is set as: "xymon ALL=(ALL) NOPASSWD: /usr/local/sbin/fping". Typing in "sudo /usr/local/sbin/fping -Ae <host>" on the command line as my xymon user gives me a response with no password needed.
My hobbitserver.cfg file has entry: FPING="sudo /usr/local/sbin/fping -Ae".
[xymon (at) pxxxxxx etc]$ id
uid=500(xymon) gid=500(xymon) groups=500(xymon)
[xymon (at) xxxxxx etc]$ which fping
/usr/local/sbin/fping
[xymon (at) xxxxxx etc]$ ls -l /usr/local/sbin/fping
-rwxr-xr-x 1 root root 48827 Jul  8 13:07 /usr/local/sbin/fping
[xymon (at) xxxxxx etc]$ /usr/local/sbin/fping -Ae y.y.y.y
This program can only be run by root, or it must be setuid root.
[xymon (at) xxxxxx etc]$ sudo /usr/local/sbin/fping -Ae y.y.y.y
y.y.y.y is alive (0.85 ms)

I've compiled with 'hobbitping' and then with 'fping', updating the hobbitserver.cfg with the same result.

I don't think this is a DNS issue because hobbitping works and the IP's reported back to my tests are correct.

Any ideas?

Thanks,
Mario

To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk