check_npre UNKNOWN: No handler for that command”

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bdm0917
Posts: 12
Joined: Wed Dec 16, 2015 2:32 pm

Re: check_npre UNKNOWN: No handler for that command”

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_npre UNKNOWN: No handler for that command”

Post by rkennedy »

Can you post your whole nsc.ini once again?
Former Nagios Employee
bdm0917
Posts: 12
Joined: Wed Dec 16, 2015 2:32 pm

Re: check_npre UNKNOWN: No handler for that command”

Post by bdm0917 »

Attached! Thanks
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_npre UNKNOWN: No handler for that command”

Post 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
Former Nagios Employee
bdm0917
Posts: 12
Joined: Wed Dec 16, 2015 2:32 pm

Re: check_npre UNKNOWN: No handler for that command”

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_npre UNKNOWN: No handler for that command”

Post 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
Former Nagios Employee.
me.
bdm0917
Posts: 12
Joined: Wed Dec 16, 2015 2:32 pm

Re: check_npre UNKNOWN: No handler for that command”

Post 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).
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_npre UNKNOWN: No handler for that command”

Post by rkennedy »

What is the result if you run the powershell script manually from the windows machine?
Former Nagios Employee
bdm0917
Posts: 12
Joined: Wed Dec 16, 2015 2:32 pm

Re: check_npre UNKNOWN: No handler for that command”

Post by bdm0917 »

Attached is the result of the Powershell script! thanks
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_npre UNKNOWN: No handler for that command”

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked