Check_winfile config issue

6 posts / 0 new
Last post
mhk
Offline
Last seen: 10 years 4 months ago
Joined: 30.11.2012 - 13:52
Check_winfile config issue

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.

itefix
Offline
Last seen: 21 hours 8 min ago
Joined: 01.05.2008 - 21:33
NRPE concept depends on that

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

 

 

mhk
Offline
Last seen: 10 years 4 months ago
Joined: 30.11.2012 - 13:52
Thanks TK But could you tell

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

 

 

mhk
Offline
Last seen: 10 years 4 months ago
Joined: 30.11.2012 - 13:52
Hi I have read "Remote Host

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?

 

 

 

itefix
Offline
Last seen: 21 hours 8 min ago
Joined: 01.05.2008 - 21:33
You use NSClient++ at client

You use NSClient++ at client side. Please visit their forums to get a more qualified answer than we can give you.

mhk
Offline
Last seen: 10 years 4 months ago
Joined: 30.11.2012 - 13:52
Thanks TK   I managed to

Thanks TK

 

I managed to solve this.

 

Appreciate your immediate help.

Release news