Page 1 of 1

Monitor a dynamic folder

Posted: Tue Sep 26, 2017 8:46 am
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.

Re: Monitor a dynamic folder

Posted: Tue Sep 26, 2017 9:37 am
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

Re: Monitor a dynamic folder

Posted: Thu Sep 28, 2017 6:14 am
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.

Re: Monitor a dynamic folder

Posted: Thu Sep 28, 2017 9:05 am
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!