custom script

Martinus Nel martinus.nel at scarceskills.com
Thu Nov 18 12:58:29 CET 2004


Dear all,

I created a custom check_log script, but I have a minor problem.

Attached is the script.

 From the machine that the script resides, all is ok.

NRPE config:
command[check_log_test]=/usr/local/nagios/check_logs rel1.repost.Aug2604

Output from machine running NRPE:

# /usr/local/nagios/check_logs rel1.repost.Aug2604
*** Repost of all pending candidates started at 10:00:01 PM *** : *** 
Repost finished at 10:27:49 PM ***
#

Good.

Output from machine running Nagios:

# /usr/lib/nagios/plugins/check_nrpe -H xxx.xxx.xxx.xxx -p 5666 -c 
check_log_test
File does not exist.

Not good.

The standard checks work all good, so I know there is nothing wrong with 
nagios / NRPE.

I had a look at the stock check_log, but could not find any help there.
Any help appreciated.

-- 
Martinus Nel
System Administrator
Scarce Skills Ltd.
http://www.scarceskills.com
Tel: +44 (0) 1633 225461

---------------------------------------------------------------------------
DISCLAIMER
This e-mail message and any attachments are confidential and may also be a
privileged communication. It is intended solely for the person(s) to whom it
is addressed. If you are not the intended addressee of the message you must
take no action based on it. Please reply to this message to let us know you
received it in error and also delete the message from your system.
Internet e-mails are not necessarily secure and you should be mindful of
this when e-mailing us.

The contents of an attachment to this e-mail may contain software viruses
which could damage your own computer system. Whilst we have taken every
reasonable precaution to minimise this risk, we cannot accept liability for
any damage which you sustain as a result of software viruses. You should
carry out your own virus checks before opening the attachment.
---------------------------------------------------------------------------

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: check_logs
URL: <https://www.monitoring-lists.org/archive/users/attachments/20041118/461742d5/attachment.ksh>


More information about the Users mailing list