Pinging a remote server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Pinging a remote server

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Pinging a remote server

Post 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?
Former Nagios Employee.
me.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Pinging a remote server

Post 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
Be sure to check out the Knowledgebase for helpful articles and solutions!
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Pinging a remote server

Post 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...
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Pinging a remote server

Post by bwallace »

Thanks gormank.
raamardhani7, keep us posted --
Be sure to check out the Knowledgebase for helpful articles and solutions!
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Pinging a remote server

Post 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.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Pinging a remote server

Post by bwallace »

Thanks raamardhani7, we'll leave this thread open in the meantime.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked