Monitoring Virtual Machines with same public IP

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
luiceur
Posts: 2
Joined: Fri Mar 16, 2012 11:50 am

Monitoring Virtual Machines with same public IP

Post by luiceur »

I want to monitor a group of hosts running Windows Server 2008. Every one of those servers have 3 or 4 virtual machines created and running with Hyper-V. Those virtual machines do not have public IP, so every time they go out they are using the same IP.
That makes very hard to monitor it with Nagios as only IP is needed for configuration. Does any have an idea of how to monitor HD, Memory, etc form those VMs??

Thanks in advance!!!
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Monitoring Virtual Machines with same public IP

Post by mguthrie »

For something like that you could either set up some sort of port forwarding for the client so that each port points to a different machine, or you could use passive checks to push results up to the Nagios server, and give each host on the server a different host name. With passive checks you can have many hosts with the same address but different host names, and it won't really matter because nagios is only receiving results instead of actively checking for them.
luiceur
Posts: 2
Joined: Fri Mar 16, 2012 11:50 am

Re: Monitoring Virtual Machines with same public IP

Post by luiceur »

Hi, Thanks a lot for your help.
I have tried to set them up with the same IP but different host name. Nagios seems to detect them, but what is coming from there is not right. For example, if want to monitor chrome.exe on 1 VM, it will be showing that chrome is up for all of them even if chrome is not actually running on any others.
How can I do it with passive checks? What shall I use?
Locked