Page 1 of 2
Not able to add server in nagios and getting error
Posted: Wed Jan 07, 2015 4:06 am
by HAL
Hi Team,
There is one server which is beyond firewall and we have open 3 ports - 5666, 12489, 5667 and SSL port as well between server & Nagois server so we can try to add da certificate for server to monitoring and also we have install nagios client on server . But still we are getting error CRITICAL - Socket timeout after 10 seconds.
Kindly provide us solution so that we can server and certificate in monitoring .
Thanks and Regards,
Infosys
Re: Not able to add server in nagios and getting error
Posted: Wed Jan 07, 2015 10:31 am
by tmcdonald
- Which OS and agent is having this issue? It sounds like NRPE on a Linux machine.
- Are you running it standalone or through xinetd? Either way, did you include the Nagios IP in the list of allowed hosts?
- Do you have the firewall on the remote machine itself set to allow Nagios?
Re: Not able to add server in nagios and getting error
Posted: Thu Jan 08, 2015 8:14 am
by HAL
Hi Team,
We are using Windows 2008 R2 Server and we added nagios server also .Still can you guide us which port need to be open for nagios communication
Re: Not able to add server in nagios and getting error
Posted: Thu Jan 08, 2015 9:48 am
by tgriep
Can you post your check command you are trying to setup on the Nagios server to monitor your Windows 2008 server?
What agent did you install on your Windows Server?
Re: Not able to add server in nagios and getting error
Posted: Fri Jan 09, 2015 2:00 am
by HAL
Hi Team,
We are using NSClient++-0.3.9-x64 client in server 2008 R2 and using the IP address we have configured server in nagios but still we are getting error
Re: Not able to add server in nagios and getting error
Posted: Fri Jan 09, 2015 8:42 am
by jwelch
Google says the default NSClient++ port is 12489. I'd try telnet from the nagios server and locally on the
host to make sure it's listening and you can reach it from your nagios server.
http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
Re: Not able to add server in nagios and getting error
Posted: Fri Jan 09, 2015 12:19 pm
by lmiltchev
Make sure that NSClient++ service is started (running) on the Windows box, then run the following commands on the Nagios XI server and show us the output (hide sensitive info):
Code: Select all
nmap <client ip>
/usr/local/nagios/libexec/check_nt -H <client ip> -s <password> -p 12489 -v CLIENTVERSION
/usr/local/nagios/libexec/check_nrpe -H <client ip>
Re: Not able to add server in nagios and getting error
Posted: Fri Jan 09, 2015 12:25 pm
by sreinhardt
Another one to check the ports specifically would be:
Code: Select all
nmap -p 5666,12489 [remote windows IP]
Re: Not able to add server in nagios and getting error
Posted: Wed Sep 16, 2015 6:42 am
by HAL
Hi,
As suggested, we tried telnet on server (to be added in Nagios) and got the following error:
...Could not open connection to the host, on port 23:
Connect failed
Please advise.
Re: Not able to add server in nagios and getting error
Posted: Wed Sep 16, 2015 9:36 am
by tmcdonald
I think the advice was to telnet to the appropriate port - using the default will use port 23 which is almost certainly not listening. Can you also follow lmiltchev and sreinhardt's advice on using nmap?