Page 2 of 2

Re: NS Client Error after upgrade

Posted: Wed Mar 09, 2016 12:10 pm
by sutenag
i test the new ini file and it dont work at all, see attached screen

Generell services begin to larm

Re: NS Client Error after upgrade

Posted: Wed Mar 09, 2016 3:09 pm
by rkennedy
To confirm, are the 4 failing checks using check_nt, and the 3 working checks using check_nrpe?

Re: NS Client Error after upgrade

Posted: Wed Mar 09, 2016 3:43 pm
by sutenag
all the check_nt was working before i test the new nsclient.ini file i got from Sean, when i apply this test ini file both check_nt and check_nrpe fail. With the old ini file only check_nrpe checks fails. We have as you can see in the screen 3 BOG checker and 2 is fail and one is working.
The screen is from then all the check_nt are beginning to fail, if i had waited 5 more minutes all checks would be red

Re: NS Client Error after upgrade

Posted: Wed Mar 09, 2016 5:20 pm
by Box293
Can you upload your latest config file please, there is an issue and it's easier to see what you have.

Re: NS Client Error after upgrade

Posted: Thu Mar 10, 2016 1:33 am
by sutenag
Do you mean the nsclient.ini file?

We did some changes to the ini file and the check_vix_pendingproducts was working for a while, but get in unknown status again with a new error but this error was the same we had before the nsclient upgrade

Out error:
Unknown
The command (check_vix_pendingproducts) returned an invalid return code: -1073741502

Command run:
COMMAND: /usr/local/nagios/libexec/check_nrpe -u -H 10.208.85.30 -t 90 -c check_vix_pendingcards -a '0' '7'
OUTPUT: The command (check_vix_pendingcards) returned an invalid return code: -1073741502

Around 11 cet it works again after made some changes in the extarnal script part of the ini file.

Change it to.
[/settings/external scripts]
allow arguments=1
allow nasty characters=1
script path=..\..\afc\scripts\nagios\
timeout=60

From
[/settings/external scripts]
allow arguments=1
allow nasty characters=1
script path=C:\AFC\scripts\nagios
timeout=60

But one hour later its jump back to same unknown status with same message.

It seems that the connection between nagios and windows server is some way stucked, when i run an force check on the servcie and have the log file in realtime logging nothing happen, in what log on nagios server can i find any errors about connections from nagios to windows server?

Attache the nslient log file

Re: NS Client Error after upgrade

Posted: Thu Mar 10, 2016 1:19 pm
by tgriep
It looks like the allowed hosts option for the NRPE server is still in the old option format.
Can you edit the nsclient.ini file and unger this section
[/settings/NRPE/server]
Change this from

Code: Select all

allowed_hosts=10.203.1.6,10.247.40.26
to

Code: Select all

allowed hosts=10.203.1.6,10.247.40.26
"Remove the underscore"
Save the file, restart the nsclient++ service on the windows system and see if the error is gone from Nagios XI.

Re: NS Client Error after upgrade

Posted: Fri Mar 11, 2016 3:54 am
by sutenag
Hi.

BOG checkers are working now, and once again you have help us solve an critical error with high prio. :)

Thanks!

Re: NS Client Error after upgrade

Posted: Fri Mar 11, 2016 10:05 am
by lmiltchev
I am glad your issue has been resolved! :)