Page 1 of 1

Pinging a remote server

Posted: Mon Mar 21, 2016 11:03 pm
by raamardhani7
Hi team,

I am able to ping a server from Nagios server CLI, but when the same remote server is configured in Nagios it is saying that the server is down, and I am unable to ping it from Console.

Is there any setting I am missing here, can someone help me please. thanks.

Regards,
Ram.

Re: Pinging a remote server

Posted: Tue Mar 22, 2016 9:45 am
by hsmith
What plugin are you using? Can you try to execute this plugin as the 'nagios' user from the command line and see what happens?

Re: Pinging a remote server

Posted: Tue Mar 22, 2016 9:51 am
by bwallace
To add on to hsmith's suggestion = if you are using NSClient++ on the remote server (lets assume its of the Windows variety) you need to make sure the firewall is configured to allow traffic on the port configured for NSClient, which is by default 12489.

Take a look at the 'Basic Troubleshooting Tips' section here:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Re: Pinging a remote server

Posted: Tue Mar 22, 2016 9:58 am
by gormank
Have a look at the host definition (or template) to see how its checked.
I recently added a bunch of IPv6 hosts and needed to change the host check in the template to use check_ping rather than check_host_alive, since it failed on IPv6. Also, in linux ping is for v4 and ping6 is for v6. Not very likely, but possible...

Re: Pinging a remote server

Posted: Tue Mar 22, 2016 10:51 am
by bwallace
Thanks gormank.
raamardhani7, keep us posted --

Re: Pinging a remote server

Posted: Tue Mar 29, 2016 2:28 am
by raamardhani7
bwallace wrote:Thanks gormank.
raamardhani7, keep us posted --
Hi Team,

Thanks a lot for the updates, we are using Network Switch/Router plugin to configure our network devices. though the device is pinging from the Nagios XI server, but when configured from Portal, it is showing down. will check with the updates you have posted and will come back if something turns out to be working for us. thanks a lot.

Re: Pinging a remote server

Posted: Tue Mar 29, 2016 9:09 am
by bwallace
Thanks raamardhani7, we'll leave this thread open in the meantime.