Not able to add server in nagios and getting error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
HAL
Posts: 151
Joined: Thu Sep 27, 2012 7:57 am

Not able to add server in nagios and getting error

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Not able to add server in nagios and getting error

Post 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?
Former Nagios employee
HAL
Posts: 151
Joined: Thu Sep 27, 2012 7:57 am

Re: Not able to add server in nagios and getting error

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Not able to add server in nagios and getting error

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
HAL
Posts: 151
Joined: Thu Sep 27, 2012 7:57 am

Re: Not able to add server in nagios and getting error

Post 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
jwelch
Posts: 225
Joined: Wed Sep 05, 2012 12:49 pm

Re: Not able to add server in nagios and getting error

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Not able to add server in nagios and getting error

Post 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>
Be sure to check out our Knowledgebase for helpful articles and solutions!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Not able to add server in nagios and getting error

Post by sreinhardt »

Another one to check the ports specifically would be:

Code: Select all

nmap -p 5666,12489 [remote windows IP]
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
HAL
Posts: 151
Joined: Thu Sep 27, 2012 7:57 am

Re: Not able to add server in nagios and getting error

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Not able to add server in nagios and getting error

Post 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?
Former Nagios employee
Locked