NS Client Error after upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sutenag
Posts: 59
Joined: Thu Dec 10, 2015 6:39 am
Location: Stockholm, Sweden

Re: NS Client Error after upgrade

Post by sutenag »

i test the new ini file and it dont work at all, see attached screen

Generell services begin to larm
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: NS Client Error after upgrade

Post by rkennedy »

To confirm, are the 4 failing checks using check_nt, and the 3 working checks using check_nrpe?
Former Nagios Employee
sutenag
Posts: 59
Joined: Thu Dec 10, 2015 6:39 am
Location: Stockholm, Sweden

Re: NS Client Error after upgrade

Post 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
Last edited by sutenag on Thu Mar 10, 2016 1:36 am, edited 1 time in total.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NS Client Error after upgrade

Post by Box293 »

Can you upload your latest config file please, there is an issue and it's easier to see what you have.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sutenag
Posts: 59
Joined: Thu Dec 10, 2015 6:39 am
Location: Stockholm, Sweden

Re: NS Client Error after upgrade

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NS Client Error after upgrade

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sutenag
Posts: 59
Joined: Thu Dec 10, 2015 6:39 am
Location: Stockholm, Sweden

Re: NS Client Error after upgrade

Post by sutenag »

Hi.

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

Thanks!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NS Client Error after upgrade

Post by lmiltchev »

I am glad your issue has been resolved! :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked