Daily File Age Check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kadaw978
Posts: 27
Joined: Mon Feb 29, 2016 1:58 pm

Daily File Age Check

Post by kadaw978 »

Is it possible to monitor the age of a text file once per day?

Example:

I have a text file that gets updated once daily (update time will vary), can we set it so that it will constantly check the age of the file and will trigger an alert only if its older than yesterday?

I can't really use file is older than X # of hours since the file will be updated at different times daily.

I hope this make sense.

Thanks
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Daily File Age Check

Post by bwallace »

Some good examples of check_file_age here:

http://sites.box293.com/nagios/guides/c ... es-folders

Why wouldn't a check for say "if older than 24 hours" work?

Here is another plugin which may work, have you seen this one?:
https://exchange.nagios.org/directory/P ... ck/details
Be sure to check out the Knowledgebase for helpful articles and solutions!
kadaw978
Posts: 27
Joined: Mon Feb 29, 2016 1:58 pm

Re: Daily File Age Check

Post by kadaw978 »

Thanks for the links, i'll take a look at it. However, this can be closed since my team decided to go a different route.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Daily File Age Check

Post by rkennedy »

Sounds good!

/closed
Former Nagios Employee
Locked