Page 2 of 3

Re: check_npre UNKNOWN: No handler for that command”

Posted: Thu Dec 17, 2015 2:38 pm
by bdm0917
I commented out the check_updates=check_updates.vbs line and then tried again, with only the .ps1 file uncommented and received the same error.

Re: check_npre UNKNOWN: No handler for that command”

Posted: Thu Dec 17, 2015 3:33 pm
by rkennedy
Can you post your whole nsc.ini once again?

Re: check_npre UNKNOWN: No handler for that command”

Posted: Thu Dec 17, 2015 3:42 pm
by bdm0917
Attached! Thanks

Re: check_npre UNKNOWN: No handler for that command”

Posted: Thu Dec 17, 2015 4:29 pm
by rkennedy
Odd it's not working, have you restarted your NSClient service after making changes to the nsc.ini?

Do you have a file in your scripts folder called Check-Updates.ps1?

Can you post the output of the following?

Code: Select all

./check_nrpe -H <Remote Windows IP address> -t 120 -p 5666

./check_nrpe -H <Remote Windows IP address> -t 120 -p 5666 -c check_updates

Re: check_npre UNKNOWN: No handler for that command”

Posted: Mon Dec 21, 2015 10:08 am
by bdm0917
Yes, very strange. It works in Powershell but just doesn't seem to be able to translate it over check_nrpe into Nagios.

Yes, the file is in the scripts folder and called Check-Updates.ps1

Output of the 2 commands is attached.

Re: check_npre UNKNOWN: No handler for that command”

Posted: Mon Dec 21, 2015 11:17 am
by hsmith
rkennedy wrote:Odd it's not working, have you restarted your NSClient service after making changes to the nsc.ini?
Was this portion done? I assume so, but I want to make sure.

If not:

Code: Select all

net stop nscp
net start nscp

Re: check_npre UNKNOWN: No handler for that command”

Posted: Mon Dec 21, 2015 11:29 am
by bdm0917
Yes, I did do those commands. Would you like to Remote view the Nagios XI server and the windows box scripts folder?!

One of the criteria for us and Nagios XI is Ease of use, Active community developing add-ons and apps, extensibility (SDK, REST API, Vendor add-ons, Community add-ons, and developer toolkits).

Re: check_npre UNKNOWN: No handler for that command”

Posted: Mon Dec 21, 2015 12:03 pm
by rkennedy
What is the result if you run the powershell script manually from the windows machine?

Re: check_npre UNKNOWN: No handler for that command”

Posted: Mon Dec 21, 2015 12:42 pm
by bdm0917
Attached is the result of the Powershell script! thanks

Re: check_npre UNKNOWN: No handler for that command”

Posted: Mon Dec 21, 2015 1:20 pm
by lmiltchev
Change the following line in the NSC.ini from this:

Code: Select all

;CheckExternalScripts.dll
to this:

Code: Select all

CheckExternalScripts.dll
and:

Code: Select all

;allow_arguments=0
;allow_nasty_meta_chars=0
to:

Code: Select all

allow_arguments=1
allow_nasty_meta_chars=1
under the "[External Script]" and "[NRPE]" sections.

Restart the NSClient++ service.

Let us know if this helped.