check file timestamp update

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
BSAkula
Posts: 3
Joined: Fri Sep 14, 2012 2:27 pm

check file timestamp update

Post by BSAkula »

Hi All,
I have to monitor a file timestamp is changing or not and if its not changed with in last 10mins, I should receive Warning and if no change in last 15 mins Critical.
Can someone please help me in shell script.

Thanks in advance.

Ram.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check file timestamp update

Post by slansing »

Hello,

There is already a plugin for this available on our Exchange site:

http://exchange.nagios.org/directory/Pl ... le/details
Locked