check_fping

Lars Stavholm stava at telcotec.se
Sun Jan 21 13:09:32 CET 2007


Az wrote:
> Lars Stavholm wrote:
>> I'm trying to use the check_fping plugin and when
>> I run it separately on the command line it works
>> just fine, but when I let nagios run it I always
>> get a warning status. Anyone seen this?
>>   
> Have you tried running fping itself as the nagios user? You'll probably
> get the following...
> 
> az at raven:~$ /usr/local/sbin/fping
> This program can only be run by root, or it must be setuid root.
> 
> Thus, you'll need to address this before the check_fping plugin will work.

Yes, thank you, I just discovered that. However, all I got from
check_fping was "FPING - WARNING", somewhat misleading. A bit of
guesswork and trial and error showed that the check_fping has to
be executed as root. In my environment all nagios processes are
run by nagios, so I did the suid trick and now it works.

Thank you
/Lars

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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





More information about the Users mailing list