Page 1 of 1

Nagios XI 5.5.2 and poweshell script

Posted: Wed Sep 12, 2018 5:47 am
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

Re: Nagios XI 5.5.2 and poweshell script

Posted: Wed Sep 12, 2018 3:39 pm
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.

Re: Nagios XI 5.5.2 and poweshell script

Posted: Thu Sep 13, 2018 5:10 am
by Wojtek
Thank you @npolovenko.

After changing timeout = 120, script works perfectly.

Thank you very much.

Wojtek

Re: Nagios XI 5.5.2 and poweshell script

Posted: Thu Sep 13, 2018 8:00 am
by scottwilkerson
Wojtek wrote:Thank you @npolovenko.

After changing timeout = 120, script works perfectly.

Thank you very much.

Wojtek
Great!

Locking thread