>
> Your check command on cs is probably generating output to STDERR. Did
> you perform your command line test as the nagios user? Try adding '2>&1'
> to the end of your command definition ala
>
> command_line    $USER1$/check_fping $HOSTADDRESS$ -n 1 -w5000.0 100
> -c5000.0 100 2>&1
>
> Are you using check_fping or is it a home-brew plugin?
>
> --
> Marc

I'm using the check_fping plugin.  Your tip to run it as the "nagios"
user lead me in the right direction.

As root, the command completed as expected on the command line, but
when run as the nagios user, it gave the same message I was seeing in
the web interface.  Here's how it went:

[EMAIL PROTECTED]:/ # /usr/local/nagios/libexec/check_fping -H 127.0.0.1 -n 1
-w 2000,50% -c 5000,80%
FPING OK - 127.0.0.1 (loss=0%, rta=0.040000 ms)|loss=0%;50;80;0;100
rta=0.000040s;2.000000;5.000000;0.000000
[EMAIL PROTECTED]:/ # su - nagios
-bash-3.00$ /usr/local/nagios/libexec/check_fping -H 127.0.0.1 -n 1 -w
2000,50% -c 5000,80%
FPING WARNING - 127.0.0.1
-bash-3.00$ /usr/local/nagios/libexec/check_fping -H 127.0.0.1 -n 1 -w
2000,50% -c 5000,80% -v
/usr/sbin/fping -b 56 -c 1 127.0.0.1
This program can only be run by root, or it must be setuid root.
FPING WARNING - 127.0.0.1
-bash-3.00$ logout
[EMAIL PROTECTED]:/ # chmod u+s /usr/sbin/fping
[EMAIL PROTECTED]:/ # su - nagios
-bash-3.00$ /usr/local/nagios/libexec/check_fping -H 127.0.0.1 -n 1 -w
2000,50% -c 5000,80%
FPING OK - 127.0.0.1 (loss=0%, rta=0.040000 ms)|loss=0%;50;80;0;100
rta=0.000040s;2.000000;5.000000;0.000000


Thanks for the help!


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to