Page 1 of 1
Unknow: could not fetch information from server
Posted: Wed Aug 22, 2018 12:11 pm
by Mani.Murugesan
Hello Team,
I have tried to configure the exchange parameter's like exchange server health and queuestatsnagios but the issue is when I am configure this 2 services I am getting unknown error for other windows parameters i.e Unknown: could not fetch information from server
note: for exchange parameters we are using 3rd party scripts.
while getting unknown error i have checked my nsclient log file in log file it's showing
1.Seems we other end is not using ssl: unknown protocol
2.error:c:\source\master\include\socket/connection.hpp:255: Please review the ssl option as well as ssl options in settings
Could you please help me to resolve this issue ?
Re: Unknow: could not fetch information from server
Posted: Wed Aug 22, 2018 4:30 pm
by cdienger
What are the complete commands you're trying to run? Please provide a screenshot showing the output of using the "Run Check Command" button on the services.
Do other checks against nsclient work? What is the output of:
/usr/local/nagios/libexec/check_nrpe -H <nsclient_ip>
?
What are the ssl options, verify mode and insecure lines set to in nsclient.ini? Try setting them to:
ssl options = no-sslv2,no-sslv3
;verify mode = peer-cert
insecure = true
*note that I commented out the verify mode line. The nsclient service must be restarted after making changes to the config.
Re: Unknow: could not fetch information from server
Posted: Sat Aug 25, 2018 2:35 pm
by Mani.Murugesan
Hello cdienger,
The below comment i have already checked the output is showing it's seem to be doing fine and starting nrpe version also shown in this command ouptut. if you want that version let me know i will send you again.
/usr/local/nagios/libexec/check_nrpe -H <nsclient_ip>
The below mentioned lines also already there in my nsclient.ini file. only one change in my ini file below you commented out the verify mode i haven't commented but verify mode=none this is what i mentioned in my ini file.
ing is
ssl options = no-sslv2,no-sslv3
;verify mode = peer-cert
insecure = true
now if i reinstall my nsclient isssue will resolve ?
i checked everything allowed hosts entries are fine but the thing is i able to configure that exchange services but in my case other windows parameter's are getting unknown error.
Let me know next what i need to check ?
Re: Unknow: could not fetch information from server
Posted: Mon Aug 27, 2018 2:05 pm
by cdienger
Please provide the full command that is failing. I would also check to see that the following is in the nsclient.ini config:
[/settings/NRPE/server]
allow arguments=false
[/settings/external scripts]
allow arguments=false
Does the script work if you run it manually outside of nsclient?
Re: Unknow: could not fetch information from server
Posted: Tue Aug 28, 2018 8:46 am
by Mani.Murugesan
Hello Team,
I have tried below command also but still i am getting error,
1. I have added as per the below all the lines in nsclient.ini after that exchange services are working fine but windows services showing same error i.e unknown error could not fetch information from server
2) In fresh nsclient file(with my external scripts) exchange services showing CHECK_NRPE: Socket timeout after 60 seconds that time my windows services are working fine.
Does the script work if you run it manually outside of nsclient?
we have already monitoring this exchange services using same script but monitoring on another environment but here we are facing this issue.
PFB SS for the same let me know next step ?
Re: Unknow: could not fetch information from server
Posted: Tue Aug 28, 2018 4:17 pm
by cdienger
What version of nsclient is installed in the working environment? It would be a good step to make sure that the new environment is running the same version and that the configurations are similar.
Re: Unknow: could not fetch information from server
Posted: Fri Aug 31, 2018 6:14 am
by Mani.Murugesan
I Will try to install the same Nsclient agent version which is working one and will let you know
Re: Unknow: could not fetch information from server
Posted: Fri Aug 31, 2018 10:50 am
by lmiltchev
Let us know how it went. We will keep this topic open for the time being.
Re: Unknow: could not fetch information from server
Posted: Tue Sep 25, 2018 6:04 am
by Mani.Murugesan
Hello Team,
This is inform to you previously they haven't enabled the nrpe while installing nsclient so now they are going to do that
Please find the below 2 point's and let me know is it possible ?
1. if we can reinstall or update the current agent with Nrpe ? Since this is a feature built in , I believe there must be some way out where we can avoid all the difficult ways.
2. Currently we are installing Nagios client with package created by packaging team with no reboot option . could you create similar package with your requirement ( Nrpe ) with no reboot option.
Could you please suggest for the same ?
Re: Unknow: could not fetch information from server
Posted: Tue Sep 25, 2018 2:38 pm
by lmiltchev
1. if we can reinstall or update the current agent with Nrpe ? Since this is a feature built in , I believe there must be some way out where we can avoid all the difficult ways.
You don't need to reinstall the agent - simply follow the steps, outlined in our document on enabling the NRPE listener in NSClient++ here:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
2. Currently we are installing Nagios client with package created by packaging team with no reboot option . could you create similar package with your requirement ( Nrpe ) with no reboot option.
Can you elaborate on this? Are you asking if you could made modifications on the NRPE configuration and apply these changes without rebooting the server? You need to restart the NRPE service (if NRPE is running as a "standalone daemon") or restart xinetd, so that changes can take effect. You don't need to reboot the server...