Problems with check_age_files

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
bbsawhy
Posts: 1
Joined: Wed Feb 13, 2019 10:17 am

Problems with check_age_files

Post by bbsawhy »

Hello guys,
I'm having some difficulties in adding a monitor to a folder in a Windows Server.
I would like to know if there are any tips to facilitate this task, or an example of the command to be executed.

I would like to monitor a folder that should not contain files for more than 15 minutes, that is, it will always be empty, but at some point some files are moved to it and are then removed by another application.

If you can help me with this, thank you!
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Problems with check_age_files

Post by cdienger »

Are you using ncpa or nsclient already on the Windows machine? If not, I'd suggest our NCPA client. I found this plugin that seems to do what you want:

https://exchange.nagios.org/directory/P ... ry/details

Note that you'll need to edit it and set the $fullPath and $nummins options in it. The file should be copied to plugins folder of the NCPA installation directory and then can be tested with:

./check_ncpa.py -H <hostname|ip> -t 'token' -M 'plugins/check_fileage.ps1'

steps for integerating a script with nsclient++ can be found at:

https://support.nagios.com/kb/article.php?id=528
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked