Page 1 of 1
Host with multiple ping test
Posted: Mon Dec 23, 2013 3:50 pm
by muskrat78
Can 1 host have multiple ping tests going to it and alerting on each interface that fails the ping independatnly? We currently use Solarwinds and this is not built-in. Just seeing if Nagios XI can do that.
Re: Host with multiple ping test
Posted: Mon Dec 23, 2013 3:52 pm
by slansing
Sure you could add additional services under that host for each interface. There are also plugins on the exchange that can accomplish similar actions:
http://exchange.nagios.org/directory/Pl ... dr/details
Re: Host with multiple ping test
Posted: Mon Feb 03, 2014 12:24 pm
by muskrat78
I'm trying to create the service under the object but it uses HOSTNAME. Isn't that the Host object's name/IP not interface?
Re: Host with multiple ping test
Posted: Mon Feb 03, 2014 2:35 pm
by abrist
If it is a service check, it should also include "service_description". Just make sure that the service_description is unique for each check - "eth0 ping", "eth1 ping", etc.
Re: Host with multiple ping test
Posted: Tue Feb 04, 2014 9:14 am
by muskrat78
The issue is it won't let me ping anything other than the host address. I need to issue several pings to different IPs for each host. Does this mean I need to use the plugin listed above or does this functionality exist out of the box?
Re: Host with multiple ping test
Posted: Tue Feb 04, 2014 3:00 pm
by slansing
I think there may be a misunderstanding here, a host is a single address under which you add "services" which are essentially items under that host. Now, you could add additional services which essentially ping other addresses, but to ping multiple host addresses and treat them as hosts you will need to add a new host for each address you wish to check. This is a fundamental piece of network monitoring.
Re: Host with multiple ping test
Posted: Tue Feb 04, 2014 11:18 pm
by muskrat78
I tried adding "services" to ping other addresses but they all use the hostname/IP of the host instead of letting me specify the IP. Network hosts like routers, switches, firewalls can have multiple IPs and I need to be able to detect circuits being down even if the physical link is up and there are backup lines that allow us to reach the loopback. I want to know if this can be done without using a plugin. If not, I will look at the plugins but if it can be done out of the box with services which one will let me specify my own IP to ping rather than using the hostname/IP of the host itself.
Re: Host with multiple ping test
Posted: Wed Feb 05, 2014 10:12 am
by tmcdonald
Nagios can't really do much without plugins because the plugins are what Nagios relies on to check hosts and services. Every service check has an associated plugin that it runs to determine availability of the service, so trying to ping without using a plugin will not work. So no, there isn't a way to do this without a plugin. What you will want to do is create a new command that pings without using $HOSTADDRESS$ and instead lets you specify which IP to use via $ARG1$ or any of the other args. This can be easily done through the CCM, just click Commands on the left and choose your plugin and command arguments, giving it a name that is relevant to what you want accomplished.
Re: Host with multiple ping test
Posted: Thu Feb 06, 2014 1:06 pm
by muskrat78
That's what I needed to hear. I know you can do anything with Nagios but I wanted to know that it could be configured out of the box in the UI rather than manual config file tweaking. I'm trying to sell this as a replacement to Orion and it needs to be point and click 90% of the way. Last time I setup a Nagios box was in 2009 and I used Lilac for management I believe.
Anyway thanks!