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.
Can Nagio monitor a folder for files from windows servers
-
ganeshkagde
- Posts: 49
- Joined: Sun Apr 22, 2018 4:58 am
Re: Can Nagio monitor a folder for files from windows server
You could use the check_winfile plugin with NSClient++ or NCPA.
Example:
The check_winfile command, defined in the nsclient.ini file
Checks, run from the command line on the Nagios XI server, along with the output
Example:
The check_winfile command, defined in the nsclient.ini file
Code: Select all
check_winfile = scripts\check_winfile.exe //T:30 //NoLogo $ARG1$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'=0Be sure to check out our Knowledgebase for helpful articles and solutions!