> Whenever I am getting info from an ESX server > I can use this info to get the following information: > > VHosts: 10/10 up: > w2kbi70(up), ... > Is there some way to get snmp info from those machines so > I can parse a list of hosts to some other services like the following?
As far as I know, there is no way to find out the IP address of an ESX guest OS without connecting to it (eg by logging in to the virtual console), and therefore no way to SNMP query it. The ESX server does not actually know the guest's IP address(es), only the virtual switch to which it has virtual network ports mapped. The check_esx2 plugin (you seem to not have the latest version, by the way) just uses SNMP to the ESX service console to check on guests and identifies the vhosts by the ESX internal VMID. What I do here is use a homegrown program that does matching between known hostnames and the VMWare guest name, and (because we usually follow a strict naming standard) I can identify matches. I still need to know the hostname, though. I'd suggest you make sure that the first token in the ESX Guest description is the hosts FQDN (possibly with your site's domain cut off for brevity) and then you'll be able to use DNS to indentify it and SNMP query it directly. Steve -- Steve Shipway ITSS, University of Auckland (09) 3737 599 x 86487 [EMAIL PROTECTED] ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
