Can Nagio monitor a folder for files from windows servers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ganeshkagde
Posts: 49
Joined: Sun Apr 22, 2018 4:58 am

Can Nagio monitor a folder for files from windows servers

Post by ganeshkagde »

Hi Team,

Please let me know is it possible to monitor folder for files on Nagios XI? if yes please let me know which wizard will work for this.
if file count is grater than 500 then alert should be through.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Can Nagio monitor a folder for files from windows server

Post by lmiltchev »

You could use the check_winfile plugin with NSClient++ or NCPA.

Example:

The check_winfile command, defined in the nsclient.ini file

Code: Select all

check_winfile = scripts\check_winfile.exe //T:30 //NoLogo $ARG1$
Checks, run from the command line on the Nagios XI server, along with the output

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <ip address> -c check_winfile -a '--target c:\TEMP --critical 5'
FILE CRITICAL - 6 files to consider |'selected files'=6;;5 'all files'=6 'deleted files'=0

/usr/local/nagios/libexec/check_nrpe -H <ip address> -c check_winfile -a '--target c:\TEMP --critical 10'
FILE OK - 6 files to consider |'selected files'=6;;10 'all files'=6 'deleted files'=0
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked