<!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.2716.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>N-P-L,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> I am unable to get an ok status
from check-host-alive and any service check in nagios. I always get
</FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=1><FONT size=2>(Return code of 127 is
out of bounds - plugin may be missing)</FONT> </FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I read the FAQ and it has this error listed.
It mentions permissions with ping. The plugins run as nagios nagios, I
tried running them as nobody nogroup with the same results. check_http
reports the same error</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I did a su into nagios and was able to get an
ok from the command line with check_http</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I configured nagios and the plug-ins with the
defaults.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The check commands are located in
/usr/local/nagios/libexec/ </FONT></DIV>
<DIV><FONT face=Arial size=2>The process status is working and I believe a plug
in does this, because I removed all the plugins from the directory and get the
same error and the process check stops working.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Could this have something to do with the
checkcommands.cfg file provided with nagios and the command.cfg file
provided with the plugins?</FONT></DIV>
<DIV><FONT face=Arial size=2>I tried replacing it with no avail. Could it
be something I am not setting, in the object orientated template .cfg files?
these are new to me.</FONT></DIV>
<DIV> </DIV>
<DIV>I may try recompiling nagios without template files. I have a feeling
this should work because I have Netsaint working great with 20 host and 35
services on the same computer.</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Will service checks work, if the host is reporting
as being down?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am running FreeBSD 4.3 on i386 and had to use
gmake to install the plugins.</FONT></DIV>
<DIV> </DIV>
<DIV>The manual for nagios for the checkcommands.cfg file</DIV>
<DIV>example</DIV>
<DIV><PRE><FONT size=3>define command{
command_name check_pop
command_line /usr/local/nagios/libexec/check_pop -H $HOSTADDRESS$
}</FONT></PRE><PRE><FONT face=Arial size=3>Although the checkcommands.cfg-sample reads</FONT></PRE><PRE><FONT face=Arial size=3><PRE><FONT size=3>define command{
command_name check_pop
command_line $USERS1$/check_pop -H $HOSTADDRESS$
}</FONT></PRE><PRE>What variable is $USERS1$</PRE><PRE> </PRE><PRE>The Nagios-plugins have a command.cfg file that is in the old format.</PRE><PRE> </PRE><PRE>I tried all three file possibilities. help</PRE><PRE> </PRE><PRE>Am I getting warmer?</FONT></PRE></PRE></DIV>
<DIV>gomen for the babbling.....</DIV>
<DIV>Jason</DIV>
<DIV>Thank you again, your help is appreciated.</DIV></FONT></DIV></BODY></HTML>