<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have checked the check_fping plugin from shell it
works fine </FONT></DIV>
<DIV><FONT face=Arial size=2>but when I add in command.cfg and localhost.cfg
file the status shows me on webinterface is UNKNOWN</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[root@centos4 libexec]# ./check_fping -H
192.168.0.32 -v<BR>/usr/sbin/fping -b 56 -c 1 192.168.0.32<BR>192.168.0.32 :
[0], 84 bytes, 0.42 ms (0.42 avg, 0% loss)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>192.168.0.32 : xmt/rcv/%loss = 1/1/0%, min/avg/max
= 0.42/0.42/0.42<BR>FPING OK - 192.168.0.32 (loss=0%, rta=0.420000
ms)|loss=0%;;;0;100 rta=0.000420s;;;0.000000</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>but in Nagios Weinterface it shows </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<TABLE border=0>
<TBODY>
<TR>
<TD class=dataVar>Current Status:</TD>
<TD class=dataVal>
<DIV class=serviceUNKNOWN> UNKNOWN </DIV> (for
0d 0h 40m 42s)</TD></TR>
<TR>
<TD class=dataVar vAlign=top>Status Information:</TD>
<TD class=dataVal>/usr/sbin/fping -b 56 -c 1 192.168.0.32<BR>FPING UNKNOWN
- 192.168.0.32<BR></TD></TR></TBODY></TABLE></FONT></DIV>
<DIV><FONT face=Arial size=2>The Configurations in Command.cfg</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>define
command{<BR>
command_name
check_fping<BR>
command_line $USER1$/check_fping -H 192.168.0.32
-v<BR> }</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The Configuration localhost.cfg</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>define
service{<BR>
use
local-service ; Name of service
template to use<BR>
host_name
localhost<BR>
service_description
PING to 192.168.0.32</FONT></DIV>
<DIV><FONT face=Arial size=2>
check_command
check_fping<BR> }<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Could someone help to solve the
problem</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance</FONT></DIV>
<DIV><FONT face=Arial size=2>Nilesh.</DIV></FONT>
<DIV><FONT face=Arial size=2> </DIV></FONT></BODY></HTML>