Monitor a dynamic folder

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
vusaravi
Posts: 23
Joined: Fri Mar 13, 2015 7:41 am

Monitor a dynamic folder

Post by vusaravi »

Hi

I would like to monitor number of files under specific folder, below is the scenarios.

There will be folder (created daily with today date) and it will have 5 directories inside, and each folder will have 2 folders named success and error.

I would like to monitor number of files in error folder for each of the 5 folders.

Kindly let me know how can i achieve this using nagios core and destination folders are on windows machine.

Thanks in advance.

Regards,
Ravi Kumar Vusa.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor a dynamic folder

Post by scottwilkerson »

This guide was created from a contractor we have in AU @box293that really knows his stuff and covers a bunch of different scenarios of monitoring files/directories with NSClient++
http://sites.box293.com/nagios/guides/c ... es-folders
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
vusaravi
Posts: 23
Joined: Fri Mar 13, 2015 7:41 am

Re: Monitor a dynamic folder

Post by vusaravi »

Thank you @Scottwillkerson for quick response.

I have solved this issue by filtering on creation time. So, i will monitor all the files which are created in the specified time period.
kyang

Re: Monitor a dynamic folder

Post by kyang »

Glad you were able to solve this! We will be closing this topic as resolved!

If you have more questions, feel free to create another thread!

Thank you for using the Nagios Support Forums!
Locked