<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"></HEAD>
<BODY>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN class=201345014-15042009>Hello,
</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=201345014-15042009></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN class=201345014-15042009>I
created an "Always_OK" command for these hosts I couldn't ping and appeared in
red even when all their services were green (i.e., check-host-alive does not
work). I decided that if all the services are on, it's because the host is on...
</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=201345014-15042009></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN class=201345014-15042009>define
host {</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=201345014-15042009>
use
linux-server</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=201345014-15042009>
host_name myhost</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=201345014-15042009>
alias
My host that can't stand pings</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=201345014-15042009>
address
my.host.ip.address</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=201345014-15042009> check_command
check_ok</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=201345014-15042009>}</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=201345014-15042009></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN class=201345014-15042009>And,
in commands.cfg: </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=201345014-15042009></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN class=201345014-15042009>define
command {</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=201345014-15042009> command_name
check_ok</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=201345014-15042009>
command_line $USER1$/check_dummy 0
OK</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=201345014-15042009>}</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><SPAN class=201345014-15042009><FONT color=#0000ff size=2 face=Arial>Hope
this helps...</FONT></SPAN></DIV>
<DIV><SPAN class=201345014-15042009><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=201345014-15042009><FONT color=#0000ff size=2 face=Arial>Best
regards, </FONT></SPAN></DIV>
<DIV><SPAN class=201345014-15042009><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=201345014-15042009><FONT color=#0000ff size=2
face=Arial>
Alejandro </FONT></SPAN></DIV>
<DIV><SPAN class=201345014-15042009><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=201345014-15042009><FONT color=#0000ff size=2
face=Arial>==</FONT></SPAN></DIV>
<DIV><SPAN class=201345014-15042009><FONT color=#0000ff size=2
face=Arial>Alejandro Sanchez Merono</FONT></SPAN></DIV>
<DIV><SPAN class=201345014-15042009><FONT color=#0000ff size=2 face=Arial>Area
de Informatica y Comunicaciones</FONT></SPAN></DIV>
<DIV><SPAN class=201345014-15042009><FONT color=#0000ff size=2
face=Arial>Instituto de Tecnologia Electrica - http://<A
href="http://www.ite.es">www.ite.es</A></FONT></SPAN></DIV>
<DIV><SPAN class=201345014-15042009><FONT color=#0000ff size=2
face=Arial>Valencia - Spain</FONT></SPAN></DIV>
<DIV><SPAN class=201345014-15042009><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=201345014-15042009></SPAN> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial></FONT><BR></DIV>
<DIV></DIV>
<DIV>Hi all,</DIV>
<DIV>I have one host need to be monitoring, but it is not allow ping. So the
nagios plug-in check_ping can not work. Host line in the web page is red. How
can I let nagios think it is OK?</DIV>
<DIV>I checked the manual, about host definition, check_command</DIV>
<DIV> </DIV>
<DIV>This directive is used to specify the <I>short name</I> of the command that
should be used to check if the host is up or down. Typically, this command would
try and ping the host to see if it is "alive". The command must return a status
of OK (0) or Nagios will assume the host is down. If you leave this argument
blank, the host will <I>not</I> be actively checked. Thus, Nagios will likely
always assume the host is up (it may show up as being in a "PENDING" state in
the web interface). This is useful if you are monitoring printers or other
devices that are frequently turned off. The maximum amount of time that the
notification command can run is controlled by the host_check_timeout option.
</DIV>
<DIV> </DIV>
<DIV>sorry, I don't understand what should I do. Please advice me.</DIV>
<DIV> </DIV>
<DIV>Thanks a lot!<BR clear=all><BR>-- <BR>---<BR>Mika
Chu<BR></DIV></BODY></HTML>