i test the new ini file and it dont work at all, see attached screen
Generell services begin to larm
NS Client Error after upgrade
Re: NS Client Error after upgrade
You do not have the required permissions to view the files attached to this post.
Re: NS Client Error after upgrade
To confirm, are the 4 failing checks using check_nt, and the 3 working checks using check_nrpe?
Former Nagios Employee
Re: NS Client Error after upgrade
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
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.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: NS Client Error after upgrade
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.
Re: NS Client Error after upgrade
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
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.
Re: NS Client Error after upgrade
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
to
"Remove the underscore"
Save the file, restart the nsclient++ service on the windows system and see if the error is gone from Nagios XI.
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.26Code: Select all
allowed hosts=10.203.1.6,10.247.40.26Save 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!
Re: NS Client Error after upgrade
Hi.
BOG checkers are working now, and once again you have help us solve an critical error with high prio.
Thanks!
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
I am glad your issue has been resolved! 
Be sure to check out our Knowledgebase for helpful articles and solutions!