nrpep not executing script
Ranga Nathan
RNathan at baxglobal.com
Mon Jul 19 05:43:21 CEST 2004
Hi all:
I am a newbie to Nagios. I love it...!
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.
nrpep is running via xinetd and with root permissions.
Also in other cases, I executed shell commands directly for the plug-ins
but some parts of the returned message are missing.
For example, I have this in nrpep.cfg
command[check_baxp_script]=ls -lat /var/log/bax/ams/baxp/*.gz | head -n 1
| awk '{print "[Last execution ended " $6 " at " $7 "]"'}
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
[Last execution ended Jul at 18]
instead of
[Last execution ended 2004-07-18 at 20:40]
It seems that somewhere something is trying to interpret the string..and
losing some data!
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).
__________________________________________
Ranga Nathan / CSG
Systems Programmer - Specialist; Technical Services;
BAX Global Inc. Irvine-California
Tel: 714-442-7591 Fax: 714-442-2840
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040718/2a5b3cf7/attachment.html>
More information about the Users
mailing list