Windows share file count check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zburka
Posts: 1
Joined: Thu Oct 20, 2016 5:08 am

Windows share file count check

Post by zburka »

Dear Nagios Forum members,

I'm newbie about Nagios, and I'd like to get some help. Could You please give me a 'how to' about monitoring the amount of files on a windows share?

There is a software wich creates files into \\servername\share\folder1 and there is an another one wich process them and i would like to know if there are many files unprocessed.

So i would like to check this folder with Nagios, and set it to send email alert if the unprocessed files reaches such as 20 or something.

So if somebody uses this method, please cotact me.

Thanks in advance.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Windows share file count check

Post by rkennedy »

You would need to set up NSClient++ on the Windows machine that hosts the share, and then use the check_files function to accomplish your monitoring. Here are a few links for reference -

Setting up NSClient++ - https://assets.nagios.com/downloads/nag ... ios-XI.pdf

See this link for the NSClient++ functionality on check_files - https://docs.nsclient.org/reference/win ... heck_files

This is a pretty good reference for instructions on using check_files - http://sites.box293.com/nagios/guides/c ... es-folders
Former Nagios Employee
Locked