Page 1 of 1
Can Nagio monitor a folder for files from windows servers
Posted: Fri Apr 27, 2018 3:15 am
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.
Re: Can Nagio monitor a folder for files from windows server
Posted: Fri Apr 27, 2018 10:23 am
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