Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
I've searched on many forums but I can't get this to work!
I have a log file on my Windows machine that I want to monitor - if not written anything to the file in an hour I'll get a warning.
First tried command: $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ but I do not know how ARG1 should look like.
I tried to write out the entire command in two ways for testing:
I know, but I don't know how to formulate the ARG1 would it be OK to set ARG1 to: check_nrpe -t C:\Logs\test.log --filter "age gt -1 hours" --rootonly --critical 0 --compare eq
I have never added a new service/command, I always use the built in like CPU, Memory and disk.
_USER1_/check_nrpe -H 192.168.1.11 -t 30 -c CheckFiles -a path='C:\\Logs\\' pattern='test.log' 'filter=written < -10m' MaxCrit=1
Result code: UNKNOWN
CHECK_NRPE: Received 0 bytes from daemon. Check remote server logs for error messages.
Have you tried checking the NRPE logs as suggested in the error?
Also, it may be best to post the command you are running, along with the output returned here for us to take a look at. It's hard to troubleshoot without seeing the actual output.