Dear Experts,
We want to monitor the file count and file age on remote windows system from our Nagios2012 R1.0 (RHEL6).
We installed check_winfile.pl in nagios using Admin- Add Plugin.
NRPE is installed on remote windows machine and verified from Nagios- Working fine
Created a command $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
$ARG1$ = check_winfile.pl --target m:\filecount --warning 10 --critical 15
OUTPUT:
2012-11-30 13:46:24: message:NSClient++.cpp:1195: No handler for command: 'check_winfile.exe --target m:/filecount -critical 10'
2012-11-30 13:46:24: message:include\NSCHelper.cpp:238: No handler for command 'check_winfile.exe --target m:/filecount -critical 10'.
2012-11-30 13:46:34: error:modules\NRPEListener\NRPEListener.cpp:428: Request command contained illegal metachars!
2012-11-30 13:46:34: error:modules\NRPEListener\NRPEListener.cpp:320: Exception handling NRPE packet
I copied the check_winfile.exe in M:\Program Files\NSClient++\modules folder.
M i doing some wrong config?
I am new to this please help.
NRPE concept depends on that you define a command at client side. Example:
command[file_command]=check_winfile.exe --target m:\filecount --warning 10 --critical 15
You can then issue an nrpe command at Nagios side to get results:
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c file_command
Thanks TK
But could you tell me at client side where should i put this comand?
command[file_command]=check_winfile.exe --target m:\filecount --warning 10 --critical 15
Hi
I have read "Remote Host Configuration" from nrpe.pdf file which is given as a ref with check_winfile plugin.
This given the configuration for Linux host.
In my case remote ststem is windows so where can i find the file nrpe.cfg?
You use NSClient++ at client side. Please visit their forums to get a more qualified answer than we can give you.
Thanks TK
I managed to solve this.
Appreciate your immediate help.