check_npre UNKNOWN: No handler for that command”
Re: check_npre UNKNOWN: No handler for that command”
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”
Can you post your whole nsc.ini once again?
Former Nagios Employee
Re: check_npre UNKNOWN: No handler for that command”
Attached! Thanks
You do not have the required permissions to view the files attached to this post.
Re: check_npre UNKNOWN: No handler for that command”
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?
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
Re: check_npre UNKNOWN: No handler for that command”
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.
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.
Re: check_npre UNKNOWN: No handler for that command”
Was this portion done? I assume so, but I want to make sure.rkennedy wrote:Odd it's not working, have you restarted your NSClient service after making changes to the nsc.ini?
If not:
Code: Select all
net stop nscp
net start nscpFormer Nagios Employee.
me.
me.
Re: check_npre UNKNOWN: No handler for that command”
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).
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”
What is the result if you run the powershell script manually from the windows machine?
Former Nagios Employee
Re: check_npre UNKNOWN: No handler for that command”
Attached is the result of the Powershell script! thanks
You do not have the required permissions to view the files attached to this post.
Re: check_npre UNKNOWN: No handler for that command”
Change the following line in the NSC.ini from this:
to this:
and:
to:
under the "[External Script]" and "[NRPE]" sections.
Restart the NSClient++ service.
Let us know if this helped.
Code: Select all
;CheckExternalScripts.dllCode: Select all
CheckExternalScripts.dllCode: Select all
;allow_arguments=0
;allow_nasty_meta_chars=0Code: Select all
allow_arguments=1
allow_nasty_meta_chars=1
Restart the NSClient++ service.
Let us know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!