<br><font size=2 face="sans-serif">Hi all:</font>
<br><font size=2 face="sans-serif">I am a newbie to Nagios. I love it...!</font>
<br>
<br><font size=2 face="sans-serif">I have a check_... command that  executes
a shell script and returns values. Works perfectly on the host but returns
"hh:mm Not a valid file or directory" . I checked permissions
and they look fine. </font>
<br><font size=2 face="sans-serif">nrpep is running via xinetd and with
root permissions.</font>
<br>
<br><font size=2 face="sans-serif">Also in other cases, I executed shell
commands directly for the plug-ins but some parts of the returned message
are missing.</font>
<br><font size=2 face="sans-serif">For example,  I have this in nrpep.cfg</font>
<br>
<br><font size=2 face="sans-serif">command[check_baxp_script]=ls -lat /var/log/bax/ams/baxp/*.gz
| head -n 1 | awk '{print "[Last execution ended " $6 "
at " $7 "]"'}</font>
<br>
<br><font size=2 face="sans-serif">The $6 is the date and $7 is the modified
time of a file. It works fine on the host but on the Nagios web page I
see </font>
<br><font size=3>[Last execution ended Jul at 18]  </font>
<br>
<br><font size=2 face="sans-serif">instead of</font>
<br>
<br><font size=2 face="sans-serif"> [Last execution ended 2004-07-18
at 20:40]</font>
<br>
<br><font size=2 face="sans-serif">It seems that somewhere something is
trying to interpret the string..and losing some data!</font>
<br>
<br><font size=2 face="sans-serif">BTW, I am not sure what I should return
in case of success and what in case of error. Can someone point me to the
documentation (could not find it in plug-in documentation).</font>
<br><font size=2 face="sans-serif">__________________________________________<br>
Ranga Nathan / CSG<br>
Systems Programmer - Specialist; Technical Services; <br>
BAX Global Inc. Irvine-California<br>
Tel: 714-442-7591   Fax: 714-442-2840<br>
</font>