Nagios XI 5.5.2 and poweshell script

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Wojtek
Posts: 17
Joined: Fri Sep 07, 2018 4:51 am

Nagios XI 5.5.2 and poweshell script

Post by Wojtek »

Hi to all!

I checked powershell script according with https://assets.nagios.com/downloads/nag ... ios-XI.pdf

I add this lines from this document https://assets.nagios.com/downloads/nag ... ios-XI.pdf

I try different version 0.3 and 0.5 of nsclient and I changed some settings in nslient.ini.

But I have problem with testing the check from the Nagios XI Server.

When I use
[root@nagios libexec]# ./check_nrpe -H server_name
I (0.4.4.23 2016-04-05) seem to be doing fine...

When I use
[root@nagios libexec]# ./check_nrpe -H server_name -t 120 -p 5666 -c check_updates
CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected).

Locally on server powershell script works fine.

BR
Wojtek
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios XI 5.5.2 and poweshell script

Post by npolovenko »

@Wojtek, It seems like this PowerShell script is just very slow(at least on my computer). Please open your nsclient.ini file and change each timeout to 120 seconds. Then restart the nslcient++ service from the windows services menu. When I tweaked timeout settings in your ini it worked with the script on my windows server.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Wojtek
Posts: 17
Joined: Fri Sep 07, 2018 4:51 am

Re: Nagios XI 5.5.2 and poweshell script

Post by Wojtek »

Thank you @npolovenko.

After changing timeout = 120, script works perfectly.

Thank you very much.

Wojtek
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI 5.5.2 and poweshell script

Post by scottwilkerson »

Wojtek wrote:Thank you @npolovenko.

After changing timeout = 120, script works perfectly.

Thank you very much.

Wojtek
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked