There is a check called "check_file_age" which checks file size and age.  It 
can then easily be tweaked (just do the reverse logic) to check a file to see 
if it was changed/modified.

 

So you can check to see if the file is changing (eg, a log file), or check to 
see if someone modifies a file (change to a critical config file).

-- 
Mat W. - http://www.techadre.com


 


Date: Wed, 16 Sep 2009 17:32:53 +0530
From: [email protected]
To: [email protected]; 
[email protected]
CC: [email protected]
Subject: [Nagios-users] Plugin to monitor a file



Dear All,
         I would like to monitor a file in the server,whether it is opened or 
modified.Is there any plugin available for that?


 
Regards

A.Selva





This message (including attachments) is confidential and may be privileged. If 
you have 
received it by mistake please notify the sender by return e-mail and delete 
this message 
from your system. You may not copy, disclose or use the contents in any way. 
SBTPL 
does not guarantee integrity of this communication nor is that this 
communication free of 
issues, interceptions or interference. This communication does not create or 
modify any 
contract, and unless otherwise stated, is not intended to be contractually 
binding. Views 
or opinions expressed in this e-mail message are those of the author only.

_________________________________________________________________
Hotmail: Free, trusted and rich email service.
http://clk.atdmt.com/GBL/go/171222984/direct/01/
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to