Scripting within nrpe.cfg

gottfried hufnagel gottfried.hufnagel at onb.ac.at
Wed Mar 23 08:54:54 CET 2005


hi!

what does "it doesn't work right" mean?

check which user runs the nagios-daemon (normally it will be "nagios")
then check if the user has appropriate rights to manipulate (read/write) the 
files you want to check.

greetinx!

gottfried

On Tuesday 22 March 2005 20:58, A Cline wrote:
> Hello:
>
> I want to use the check_file_age plugin to tell me the age of the
> newest file in a directory.  Something like this works from the
> command-line:
>
> "/usr/local/nagios/libexec/check_file_age -w 600 -c 1200
> /usr/hns/pdreceiver/received/`ls -t /usr/hns/pdreceiver/received |
> head -n 1`"
>
> but if I try to place this line in the nrpe.cfg file it doesn't work
> right.  Is there a way to do what I'm trying to accomplish?
>
> Thanks
>
> Aaron
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
> Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
> for the chance to win $25,000 and application distribution. Enter today at
> http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
> ::: Please include Nagios version, plugin version (-v) and OS when
> ::: reporting any issue. Messages without supporting info will risk being
> ::: sent to /dev/null

-- 
Ing. Gottfried Hufnagel
Systemadministrator
Zentraler Informatikdienst
Österreichische Nationalbibliothek

Josefsplatz 1, 1015 Wien
Tel.:	(+43 1) 53 410 - 607
Fax:	(+43 1) 53 410 - 610
Email:	gottfried.hufnagel at onb.ac.at
Web:	www.onb.ac.at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050323/735869d1/attachment.sig>


More information about the Users mailing list