<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="MSHTML 8.00.6001.18876">
<style title="owaParaStyle"><!--P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
--></style>
</head>
<body bgcolor="#ffffff" ocsi="x">
<div dir="ltr"><font color="#000000" size="2" face="Tahoma">This is the way we do it, with Parents (not host dependencies).</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">First we create a virtual object for the VMWare farm.  This has a status of UP if any of the farm servers are up (using check_summary).  This virtual 'host' has several services, using the v0.9 check_vmware, relating
 to the farm's alarms, storage volumes, etc.  These services have service dependencies on the VirtualCentre service running on the Virtual Centre host.</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">The Farm object has ALL of the ESX Servers as Parents.</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">All the VMs in the farm have the Farm object as a parent.  Some of them also use check_esx3 to alert on Alarms, CPU, and Memory usage within VMWare.</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">This might seem a bit complex if you've only the one server, but as soon as oyu have multiple servers in the farm, and use DRS, you have to use a farm object for parents/dependencies.</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">It might make more sense for these relationships to be host dependencies rather than parents i nmost cases, but we have a SAN mirrored environment to a seocnd ESX farm so that the VMs can be brought up ther ein the
 event of a complete farm outage, hence the use of Parents rather than dependencies.</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">If you have VSphere4 (ESX4.0) with a SNMP-enabled Cisco virtual switch in the farm, you could probably make the virtual switch the parent device rather than having to use a farm object.</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">The VMWare monitoring plugin we're using is v0.9 of check_vmware, from here:
<a href="http://www.steveshipway.org/forum/viewtopic.php?f=28&t=1648">http://www.steveshipway.org/forum/viewtopic.php?f=28&t=1648</a></font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">check_summary is available from nagiosexchange.org (as is check_esx3 which is the forerunner of check_vmware)</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">Steve</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div style="DIRECTION: ltr" id="divRpF855849">
<hr tabindex="-1">
<font size="2" face="Tahoma"><b>From:</b> Andrew Davis [nccomp@gmail.com]<br>
<b>Sent:</b> Tuesday, 26 January 2010 9:14 a.m.<br>
<b>To:</b> nagios-users@lists.sourceforge.net<br>
<b>Subject:</b> [Nagios-users] Virtual Machines - define as parent or as host dependency...<br>
</font><br>
</div>
<div></div>
<div>I'm trying to figure out the best way to do this, yet keep things as simple as possible.<br>
<br>
Say I have a server called Saturn running VMWare. I'm monitoring this server with Nagios.<br>
I also have three VM's on Saturn: Jupiter, Mars, and Pluto<br>
<br>
I want to suppress all host and service alerts on Jupiter, Mars, & Pluto if the host Saturn is down (unreachable). I do NOT want to suppress host or service alerts from Jupiter, Mars, and Pluto if the VMWare processes (services) are down on Saturn. Basically,
 if my VM server is completely unreachable, don't bother me about its client VM's.<br>
<br>
Am I better off doing this with a host dependency? Something like:<br>
<br>
<pre><strong><font color="red">define hostdependency {
        host_name                       Host B
        dependent_host_name             Host C
        notification_failure_criteria   d,u
        }
</font></strong></pre>
Or am I better off defining Saturn as the parent of the VM's in the host config? Something like:<br>
<br>
<pre><b><font color="#ff0000">define host {
        host_name               jupiter
        use                     VMs
        alias                   jupiter
        address                 172.26.251.60
        parents                 saturn, tpdmzsw1
}</font></b></pre>
I've successfully used the "parents" directive to define network topology, so I would think this would work. What might be the risks of defining both?<br>
<pre class="moz-signature" cols="72">-- 


  A. Davis
  Email:     <a class="moz-txt-link-abbreviated" href="mailto:nccomp@gmail.com">nccomp@gmail.com</a>

  "There is no limit to what a man can accomplish
   if he doesn't care who gets the credit." - Ronald Reagan
</pre>
</div>
</body>
</html>