Hi Guys.
does anyone know how to monitor the amount of files in a folder in windows?
In my nagios, I want to monitor how many files are in a windows server folder at a certain hour.
If in the specified time span, the files in the folder are below 16, then Nagios will send a notification.
I have nsclient installed on windows and use nrpe to monitor this. But I lack information about the commands or scripts used.
I found this article https://support.nagios.com/kb/article/f ... s-783.html
And the command is "./check_nrpe -H 10.25.14.2 -c check_files -a path='C:\\Temp' pattern=*.* 'warning=count>500' 'critical=count>1000' top-syntax='${status}: ${count} files found' 'empty-state=ok' "
But, but I don't know exactly where to enter the command, in the Nagios command file or in the nsclient windows file?
Thank you