NSClient++ Help (#1) - Nagios WinUpdate? Plugin Help :) (#291) - Message List
Please provide some help. I'm trying to configure this plugin: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1546.html;d=1
Currently I have the following code in NSC.ini (on the windows machine)
NRPEListener.dll
[NRPE Handlers]
win_updates=cscript.exe T:30 NoLogo scripts
check_windows_updates.wsf /w:0 /c:1
My Question is : What do I need to change on the host machine that currently holds Nagios. ? I.e I assume , changes to the commands.cfg and windows.cfg
my current setting in windows.cfg
define service { use generic service host_name host1 service_description Windows Update check_command I DONT KNOW WHAT TO TYPE IN HERE?
and also the commands.cfg
define command{ command_name check_nrpe command_line $USER1$/check_nrpe -H $HOST ADDRESS$ -p 5666 -c I DONT KNOW WHAT TO TYPE NEXT
Thanks in advance, keep up the awesome work!
-
Message #921
NRPEListener.dll
[NRPE Handlers] win_updates=cscript.exe T:30 NoLogo scripts
check_windows_updates.wsf /w:0 /c:1
I think you are going to want to check out the CheckExternalScripts module rather the NRPE handler. And from the nagios side you will need to create both a command and a service to tie that command to a given host(s). The "-c" option for check_nrpe is the name of the command on the host you are checking.
I'm not familiar with that particular script but it should work just like any other script. I would recommend tryin one of the examples delivered in the NSC.ini. For instance you will have to uncomment CheckExternalScripts.dll to enable it but you should be able to use the following example found in the NSC.ini
[External Scripts] ;check_es_long=scripts\long.bat check_es_ok=scripts\ok.bat
Then the command from nagios should look like this
define command { command_name check_nrpe_okscript command_line $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -c check_es_ok }Then a service in nagios should like like this
define service { service_description check_nrpe_okscript use generic-service host_name your_host_name check_command check_nrpe_okscriptcschnu12/04/08 17:42:51 (3 years ago)







