Page 1 of 1

Suggestions for devices with multiple IPs

Posted: Tue Jul 08, 2014 10:05 am
by gregwhite
We have a number of hosts that have multiple IP's. They are in DNS so when doing an NSLOOKUP for any of the IP's it resolves to the same hostname. I am looking for suggestions on the
best way to add these devices in Nagios with their associated IP's.

Thanks,
Greg

Re: Suggestions for devices with multiple IPs

Posted: Tue Jul 08, 2014 11:08 am
by sreinhardt
If possible, restricting to one interface and a hardcoded IP would probably be easiest. Otherwise simply setting the host address field to the hostname, and keeping the config name the same, should be enough to allow the plugins to use any resolved IP and keep you to one host license use per host.

Re: Suggestions for devices with multiple IPs

Posted: Tue Jul 08, 2014 11:08 am
by WillemDH
Choose one ip address for the host and if you want to check if the other ip adresses are alive you could monitor these with a ping service?

Re: Suggestions for devices with multiple IPs

Posted: Tue Jul 08, 2014 11:12 am
by slansing
Yeah in addition to Sreinhardt's suggestion, which is what I have gone with in the past, you could simply add ping services to that main host, that way you can verify all addresses are reachable as Willem mentioned.

Re: Suggestions for devices with multiple IPs

Posted: Tue Jul 08, 2014 4:23 pm
by gregwhite
Thanks, going with ping as a service works great. The only outstanding problem is Auto Discovery. We run it monthly to ensure all devices are in Nagios. I need to
figure out how to deal with the multiple IPs it will report on since it will only find the one IP that is assigned to the host name.

Re: Suggestions for devices with multiple IPs

Posted: Tue Jul 08, 2014 5:22 pm
by slansing
Hmm, I would think that a good solution for that would be excluding those addresses and saving the new scan. Or are you looking to do this a different way? Is there any way you know beyond a shadow of a doubt that those addresses will stay constant? Or are they rather dynamic in some cases?