OK,
So, with ESXi 4.1, they stripped the SC down to almost nothing.
In vCenter server, I have SNMP configured to point to the localhost, my pc, and my zenoss server.
However, when I use the SolarWinds VM monitor to connect to my host, it doesn't work.
How does SNMP work in ESXi 4.1?
You can restore the console functionality by adding the vMA appliance http://vmware.com/go/vma
SNMP must be enabled using the rcli or the command line in vMA appliance.
With ESXi you can configure SNMP traps but it doesn't support gets. You can optionally configure ESXi to send syslog data.
Dave
VMware Communities User Moderator
Now available - vSphere Quick Start Guide
Do you have a system or PCI card working with VMDirectPath? Submit your specs to the Unofficial VMDirectPath HCL.
No gets support, even with the vMA?
No can monitor the vMA with SNMP but it can't proxy host data. With ESXi the standard going forward is to use CIM for hardware monitoring. What sort of monitoring software are you using?
Dave
VMware Communities User Moderator
Now available - vSphere Quick Start Guide
Do you have a system or PCI card working with VMDirectPath? Submit your specs to the Unofficial VMDirectPath HCL.
OK, so the vMA is useless.
I'm using Zenoss as well as Solarwinds free ESX monitor program.
So VMWare, with ESXi 4.1, is forcing me to use vCenter for all host monitoring?
Personally, I am using HP SIM 6 for CIM part. Those are Vmware's intention to weak SNMP and encourage users to use WBEM.
Maybe you should install something similar?
- Silver
My Vmware blog: http://geeksilverblog.com
@Dave
that's not true
Put this into /etc/vmware/snmp.xml
<config>
<snmpSettings>
<enable>true</enable>
<communities>public</communities>
<port>161</port>
<targets>1.2.3.4/public</targets>
</snmpSettings>
</config>
Do a "services.sh restart"
Et voilà:
RFC1213-MIB::sysDescr.0 = STRING: "VMware ESX 4.1.0 build-260247 VMware, Inc. x86_64"
RFC1213-MIB::sysObjectID.0 = OID: VMWARE-PRODUCTS-MIB::vmwESX
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (40) 0:00:00.40
RFC1213-MIB::sysContact.0 = STRING: "not set"
RFC1213-MIB::sysName.0 = STRING: "xxxx"
RFC1213-MIB::sysLocation.0 = STRING: "not set"
RFC1213-MIB::sysServices.0 = INTEGER: 72
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.2 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.3 = OID: VMWARE-SYSTEM-MIB::vmwSystemMIB
SNMPv2-MIB::sysORID.4 = OID: VMWARE-VMINFO-MIB::vmwVmInfoMIB
SNMPv2-MIB::sysORID.5 = OID: VMWARE-RESOURCES-MIB::vmwResourcesMIB
.....
Or for full instructions using vMA check here: http://www.fatmin.com/2010/08/enabling-snmp-in-esxi-41-using-the-remote-cli.html
jer0nim0 is that the way SNMP can be configured as well?
<config>
<snmpSettings>
<enable>true</enable>
<communities>monitoring</communities>
<port>161</port>
<targets>10.6.26.26/monitoring</targets>
</snmpSettings>
</config>
what did you do to get this out?
RFC1213-MIB::sysDescr.0 = STRING: "VMware ESX 4.1.0 build-260247 VMware, Inc. x86_64"
RFC1213-MIB::sysObjectID.0 = OID: VMWARE-PRODUCTS-MIB::vmwESX
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (40) 0:00:00.40
RFC1213-MIB::sysContact.0 = STRING: "not set"
RFC1213-MIB::sysName.0 = STRING: "xxxx"
RFC1213-MIB::sysLocation.0 = STRING: "not set"
.......
thanks a lot
use snmpwalk?
jer0nim0 wrote:
RFC1213-MIB::sysDescr.0 = STRING: "VMware ESX 4.1.0 build-260247 VMware, Inc. x86_64"
RFC1213-MIB::sysObjectID.0 = OID: VMWARE-PRODUCTS-MIB::vmwESX
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (40) 0:00:00.40
RFC1213-MIB::sysContact.0 = STRING: "not set"
RFC1213-MIB::sysName.0 = STRING: "xxxx"
RFC1213-MIB::sysLocation.0 = STRING: "not set"
RFC1213-MIB::sysServices.0 = INTEGER: 72
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.2 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.3 = OID: VMWARE-SYSTEM-MIB::vmwSystemMIB
SNMPv2-MIB::sysORID.4 = OID: VMWARE-VMINFO-MIB::vmwVmInfoMIB
SNMPv2-MIB::sysORID.5 = OID: VMWARE-RESOURCES-MIB::vmwResourcesMIB
.....
That's ESX not ESXi. The issue is SNMP GET via ESXi 4.1. You enabled SNMP on an ESX host, that's not hard. Now do it with an ESXi (see that little "i"?) 4.1 host.
Oh it doesn't seem to indicate esxi via snmp, but trust me it is esxi.
# snmpwalk -c public -v 2c esxb10e | head -20
Unlinked OID in BRCD-FCIP-EXT-MIB: fcipExtMIB ::= { bcsi 4 }
Undefined identifier: bcsi near line 18 of /usr/local/share/snmp/mibs/brocade/BRCD-FCIP-EXT-MIB.mib
SNMPv2-MIB::sysDescr.0 = STRING: VMware ESX 4.1.0 build-348481 VMware, Inc. x86_64
SNMPv2-MIB::sysObjectID.0 = OID: VMWARE-PRODUCTS-MIB::vmwESX
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (24148370) 2 days, 19:04:43.70
SNMPv2-MIB::sysContact.0 = STRING: not set
SNMPv2-MIB::sysName.0 = STRING: esxb10e
SNMPv2-MIB::sysLocation.0 = STRING: not set
SNMPv2-MIB::sysServices.0 = INTEGER: 72
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.2 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.3 = OID: VMWARE-SYSTEM-MIB::vmwSystemMIB
SNMPv2-MIB::sysORID.4 = OID: VMWARE-VMINFO-MIB::vmwVmInfoMIB
SNMPv2-MIB::sysORID.5 = OID: VMWARE-RESOURCES-MIB::vmwResourcesMIB
SNMPv2-MIB::sysORDescr.1 = STRING: SNMPv2-MIB, RFC 3418
SNMPv2-MIB::sysORDescr.2 = STRING: IF-MIB, RFC 2863
SNMPv2-MIB::sysORDescr.3 = STRING: VMWARE-SYSTEM-MIB, REVISION 200801120000Z
SNMPv2-MIB::sysORDescr.4 = STRING: VMWARE-VMINFO-MIB, REVISION 200810230000Z
SNMPv2-MIB::sysORDescr.5 = STRING: VMWARE-RESOURCES-MIB, REVISION 200810150000Z
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00
# ssh esxb10e
root@esxb10e's password:
You have activated Tech Support Mode.
The time and date of this activation have been sent to the system logs.
VMware offers supported, powerful system administration tools. Please
see www.vmware.com/go/sysadmintools for details.
Tech Support Mode may be disabled by an administrative user.
Please consult the ESXi Configuration Guide for additional
important information.
~ # grep product /etc/slp.reg
product="VMware ESXi 4.1.0 build-348481"
There is more information available from the ESXi 4.1 SNMP daemon -- see http://rainbow.chard.org/2011/09/08/getting-useful-information-out-of-esxi-with-snmp-queries/