Plugin | Check Folder Time Stamp

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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Plugin | Check Folder Time Stamp

Post by abrist »

Some of us down here are familiar with the plugin check, so if you have continued issues, feel free to reach out. Thanks for all the help as usual eloyd.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
vgeyser
Posts: 8
Joined: Tue Sep 03, 2013 1:34 am

Re: Plugin | Check Folder Time Stamp

Post by vgeyser »

Hi abrist,

If you can help with this I would really appreciate this.
I've been using NSCLient++ CheckFile2 but it doesn't check for folders and only check on files.
I really need a plugin that can check folders [the modified times on the folder] in windows

eloyd, thanks for your time and effort.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Plugin | Check Folder Time Stamp

Post by eloyd »

No worries. Sorry I can't help with the Windows side more. Our customers just don't use Windows. :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Plugin | Check Folder Time Stamp

Post by slansing »

@v, yeah I've been looking around, I'm not turning up much. If you have someone in house that is handy with powershell, or even batch, you could create a plugin to do this that would be quite simple.

1. Pass a command through that lists the folder(s) and their last modification time
2. Capture that output
3. Check against a warning and critical threshold passed in against the plugin
4. Output exit code and status text for OK, Warning, Critical, Unknown
5. Test from Nagios
6. Call it a day!
Locked