custom script

Steve Shipway s.shipway at auckland.ac.nz
Fri Nov 19 01:50:53 CET 2004


># /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.

I suspect that the nrpe user (whatever UID the NRPE agent runs as) does not
have read permission the the log file you are testing.  Of course root can
read it, so your command line test works...  you may need a sudo wrapper
around the check (we do this to enable a check_mailq command to run - it
counts fils in a dir listing, quicker than running the mailq command and
parsing when you have queues of 10000 messages)

Steve

---
Steve Shipway: ITSS, University of Auckland
Email: s.shipway at auckland.ac.nz  Web: http://www.steveshipway.org/  
** We can only discover new oceans when we have the **
** courage to lose sight of the shore.              **
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Steve Shipway.vcf
Type: text/x-vcard
Size: 154 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20041119/9e85686d/attachment.vcf>


More information about the Users mailing list