Server with Multiple IP's

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gregwhite
Posts: 206
Joined: Wed Jun 01, 2011 12:40 pm

Server with Multiple IP's

Post by gregwhite »

We have some servers that have multiple IP's.I had been adding the host to Nagios with one of those IP's then creating
a service check for the other IP's. This way we would know that this server has multiple IP's. However, when you run auto-discovery, the IP's that are entered as service checks will show up as not being in Nagios. Is there a way if a server has 5 IP addresses that we can have them assigned to the same host and have the auto discovery job see them as in Nagios and not report them missing?

Thanks,
Greg
bolson

Re: Server with Multiple IP's

Post by bolson »

Hello gregwhite,

The problem you are facing is that from the point of view of your Nagios XI server, a host is defined by it's IP address either directly, or indirectly via DNS name resolution. If you could tell us at a high level what you're trying to achieve we could perhaps find an alternative method to resole your issue. Thank you!
gregwhite
Posts: 206
Joined: Wed Jun 01, 2011 12:40 pm

Re: Server with Multiple IP's

Post by gregwhite »

If I have a server with 5 IP's associated with it and I assign just one of those IP's, when an auto discovery report is run there will be 4 IP's that auto discovery finds that are not in NagiosXI. So what I am trying to do is to have all 5 IP's listed for the hostname so it pings these IP's to verify they are reachable and when an auto discovery job is run it finds all 5 IP's in NagiosXI.

Thanks,
Greg
bolson

Re: Server with Multiple IP's

Post by bolson »

You'll need to create a host check for each of these IPs. The reason for this is that in Nagios XI, there is a one to one relationship between hosts and IP addresses.
gregwhite
Posts: 206
Joined: Wed Jun 01, 2011 12:40 pm

Re: Server with Multiple IP's

Post by gregwhite »

Does this mean creating 5 hosts with the same hostname and using each of the IP's? That would give the appearance of 5 separate servers if I understand this.
bolson

Re: Server with Multiple IP's

Post by bolson »

Hello gregwhite,

This is why I suggested that you may need to approach this from a different direction. This is not so much a limitation of our software but rather an architectural decision made when the software was first conceived. If the end game is to determine if the various interfaces are active and reachable, there are ways to monitor interfaces in Nagios. What OS are you monitoring, and what agent(s) if any. For example, NCPA includes an interface check. In other words, what you're trying to do can likely be done, just not by the method you had planned on implementing.
gregwhite
Posts: 206
Joined: Wed Jun 01, 2011 12:40 pm

Re: Server with Multiple IP's

Post by gregwhite »

Thanks.
We have both Linux and Window servers with multiple IP's. We are using NSClient to monitor the window services and NRPE for the linux.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Server with Multiple IP's

Post by lmiltchev »

The auto-discovery wizard, which uses nmap wouldn't be able to determine if the a number of IPs found belong to the same server. The only identity of a computer on a network is its MAC address and/or IP address, so these IPs will be "seen" as different machines.

Having said that, you could still use any one of the IPs to monitor various metrics on these servers. For Windows machines, you can add your checks by running the Windows server wizard. For Linux machines - you can use the Linux Server wizard. If you wanted to monitor each interface on your servers, you could enable SNMP, and run our Network Switch / Router wizard. It will find all of the NICs, and create Status and Bandwidth checks for each one.
Be sure to check out our Knowledgebase for helpful articles and solutions!
gregwhite
Posts: 206
Joined: Wed Jun 01, 2011 12:40 pm

Re: Server with Multiple IP's

Post by gregwhite »

I think I am not explaining it clearly. As far as a server with multiple IP's, I can account for them by:
1) assigning one IP to the hostname.
2)create a service check for each of the other IP's. This will show the server has multiple IP's and it will be checking them.
However, because the remaining IP's are a service check, auto discovery will see them as not in Nagios. So looking at the report, we would think there are 4 servers that are not in Nagios. What I was trying to find out is if there is a way to have all find in Nagios, so they would not be picked up by auto discovery.
I will be out all next week so I won't see any responses till I get back.

Thanks,
Greg
bolson

Re: Server with Multiple IP's

Post by bolson »

Hello gregwhite,

We completely understand what you're trying to do. You would like Autodiscovery to indicate that the additional IPs (interfaces) have already been configured in Nagios. The only way to achieve this would be to configure each additional IP as a host configuration. However, your requirement seems to be that these additional IPs share a common host name. That's the piece that is not possible because, As I pointed out in an earlier post, in Nagios XI (or Core) the relationship between a host name and IP is 1 to 1, and host names need to be unique accross IPs. Also, as I said earlier, this is not a limitation of the software bu rather simply an architectural decision made long ago. I'm not suggesting that what you're trying to achieve is impossible, only that achieving would involve either a creating a custom plugin, or a non-trivial modification to our software. Given the unique nature of your use case, the latter would be out of the question. And the former would be well out of scope for our support team. We're sorry we couldn't be of more help. Enjoy the holidays.
Locked