Hello, I have problems configuring snmp on my esx 3.0.2 (build 90892).
It seems I have done all what specified in 3.0 base admin manual and what found on other posts.
I successfully can send a test trap from esx to mgmt server.
Also, if I run "service snmpd restart" on esx I receive 2 traps on mgmt server (zenoss)
1.3.6.1.4.1.8072.4.0.2 for net-snmp notify shutdown
and the snmp_coldStart one.
In /var/log/messages of esx I get:
Oct 6 10:59:02 esx12 snmpd4372: Received TERM or STOP signal... shutting down...
Oct 6 10:59:03 esx12 snmpd: snmpd shutdown succeeded
Oct 6 10:59:03 esx12 snmpd: snmpd startup succeeded
Oct 6 10:59:05 esx12 snmpd22541: SNMPVMInfo: Initialized.
Oct 6 10:59:05 esx12 snmpd22541: SNMPVMNet: Initialized.
Oct 6 10:59:05 esx12 snmpd22541: SNMPVMDisk: Initialized.
Oct 6 10:59:05 esx12 snmpd22541: SNMPVMFloppyCD: Initialized.
Oct 6 10:59:05 esx12 snmpd22541: SNMPResMem: Initialized.
Oct 6 10:59:05 esx12 snmpd22541: SNMPResCPU: Initialized.
Oct 6 10:59:05 esx12 snmpd22541: SNMPResDisk: Initialized.
Oct 6 10:59:05 esx12 snmpd22541: SNMPResNet: Initialized.
Oct 6 10:59:05 esx12 snmpd22541: SNMPESX: Initialized.
Oct 6 10:59:05 esx12 snmpd22541: SNMPSystem: Initialized.
Oct 6 10:59:06 esx12 snmpd22541: [2008-10-06 10:59:06.188 '
Oct 6 10:59:06 esx12 snmpd22541: SNMP
Oct 6 10:59:06 esx12 snmpd 22541 : ' 3076453792 info ]
Oct 6 10:59:06 esx12 snmpd22541: Vmacore::InitSSL: doVersionCheck = true, handshakeTimeoutUs = 12
0000000
Oct 6 10:59:06 esx12 snmpd22541:
Oct 6 10:59:06 esx12 /usr/lib/vmware/hostd/vmware-hostd1299: Accepted password for user root from
127.0.0.1
Oct 6 10:59:06 esx12 snmpd22541: SNMPVmodl: Initialized
Oct 6 10:59:06 esx12 snmpd22541: NET-SNMP version 5.0.9
Oct 6 10:59:20 esx12 wbem(pam_unix)1572: authentication failure; logname= uid=0 euid=0 tty= ruser
= rhost= user=root
Oct 6 11:04:21 esx12 wbem(pam_unix)1572: authentication failure; logname= uid=0 euid=0 tty= ruser
= rhost= user=root
(Doubt about what are the wbem messages related)
The config.xml file contains nothing about snmp so that VMware traps should be enabled.
In snmpd.conf I have:
syscontact root@localhost (edit snmpd.conf)
syslocation room1 (edit snmpd.conf)
rocommunity mymgtcom
trapcommunity mymgtcom
trapsink ip_addr_of_mgmt_srv
VMware MIB modules. To enable/disable VMware MIB items
add/remove the following entries.
dlmod SNMPESX /usr/lib/vmware/snmp/libSNMPESX.so
In esx security profile I enabled snmp.
But tried to: power on, power off, suspend a linux vm that is running
on this esx with vmware-tools installed OK and no trap is sent by esx
server (or not received by mgmt server.. but I doubt this as of the successfully test above)
I also have vcenter 2.5 managing the infrastructure (going to upgrade to esx 3.5, of which I already have several ones)
Also done a:
cp /usr/lib/vmware/snmp/mibs/*.mib /usr/share/snmp/mibs/
without success.
vmware-cmd seems ok (my vm is nfsnode2.vmx)
/vmfs/volumes/45faa41f-207ad35b-2514-00188b8546dd/LabXP1/LabXP1.vmx
/vmfs/volumes/48724a83-b483401b-608a-00188b856582/nfsnode2/nfsnode2.vmx
Where to check further?
Thanks in advance,
Gianluca
Further info. From my mgmt station I can snmpwalk to esx server.
snmpwalk -Os -c mymgtcom -v 1 ipaddr_of_esx
gives about 2400 lines.
Some of them are:
sysORLastChange.0 = Timeticks: (0) 0:00:00.00
sysORID.1 = OID: ifMIB
sysORID.2 = OID: snmpMIB
sysORID.3 = OID: tcpMIB
sysORID.4 = OID: ip
sysORID.5 = OID: udpMIB
sysORID.6 = OID: vacmBasicGroup
sysORID.7 = OID: snmpFrameworkMIBCompliance
sysORID.8 = OID: snmpMPDCompliance
sysORID.9 = OID: usmMIBCompliance
sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface su
b-layers
sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
sysORDescr.3 = STRING: The MIB module for managing TCP implementations
sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
sysORDescr.5 = STRING: The MIB module for managing UDP implementations
sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Secu
rity Model.
sysORUpTime.1 = Timeticks: (0) 0:00:00.00
...
Is it correct that there is no mention to VMware related MIBS?
There are also these lines:
snmpOutTraps.0 = Counter32: 1
snmpEnableAuthenTraps.0 = INTEGER: disabled(2)
snmpSilentDrops.0 = Counter32: 0
I can also do an snmpwalk like this from the mgmt station:
snmpwalk -v1 -c mymgtcom -m "./VMWARE-ROOT-MIB.mib" ip_add_of_esx vmware
obtaining
VMWARE-ROOT-MIB::vmwSystem.1.0 = STRING: "VMware ESX Server"
VMWARE-ROOT-MIB::vmwSystem.2.0 = STRING: "3.0.2"
VMWARE-ROOT-MIB::vmwSystem.3.0 = OID: VMWARE-ROOT-MIB::vmwOID.1.3.0.2
VMWARE-ROOT-MIB::vmwSystem.4.0 = STRING: "90892"
VMWARE-ROOT-MIB::vmwVirtMachines.1.1.1.0 = INTEGER: 0
VMWARE-ROOT-MIB::vmwVirtMachines.1.1.1.1 = INTEGER: 1
VMWARE-ROOT-MIB::vmwVirtMachines.1.1.2.0 = STRING: "LabXP1"
VMWARE-ROOT-MIB::vmwVirtMachines.1.1.2.1 = STRING: "nfsnode2"
....
So it seems ok...
Boh..
Eventually I'm going to open a case.
Gianluca
Further info. From my mgmt station I can snmpwalk to esx server.
snmpwalk -Os -c mymgtcom -v 1 ipaddr_of_esx
gives about 2400 lines.
Some of them are:
sysORLastChange.0 = Timeticks: (0) 0:00:00.00
sysORID.1 = OID: ifMIB
sysORID.2 = OID: snmpMIB
sysORID.3 = OID: tcpMIB
sysORID.4 = OID: ip
sysORID.5 = OID: udpMIB
sysORID.6 = OID: vacmBasicGroup
sysORID.7 = OID: snmpFrameworkMIBCompliance
sysORID.8 = OID: snmpMPDCompliance
sysORID.9 = OID: usmMIBCompliance
sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface su
b-layers
sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
sysORDescr.3 = STRING: The MIB module for managing TCP implementations
sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
sysORDescr.5 = STRING: The MIB module for managing UDP implementations
sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Secu
rity Model.
sysORUpTime.1 = Timeticks: (0) 0:00:00.00
...
Is it correct that there is no mention to VMware related MIBS?
There are also these lines:
snmpOutTraps.0 = Counter32: 1
snmpEnableAuthenTraps.0 = INTEGER: disabled(2)
snmpSilentDrops.0 = Counter32: 0
I can also do an snmpwalk like this from the mgmt station:
snmpwalk -v1 -c mymgtcom -m "./VMWARE-ROOT-MIB.mib" ip_add_of_esx vmware
obtaining
VMWARE-ROOT-MIB::vmwSystem.1.0 = STRING: "VMware ESX Server"
VMWARE-ROOT-MIB::vmwSystem.2.0 = STRING: "3.0.2"
VMWARE-ROOT-MIB::vmwSystem.3.0 = OID: VMWARE-ROOT-MIB::vmwOID.1.3.0.2
VMWARE-ROOT-MIB::vmwSystem.4.0 = STRING: "90892"
VMWARE-ROOT-MIB::vmwVirtMachines.1.1.1.0 = INTEGER: 0
VMWARE-ROOT-MIB::vmwVirtMachines.1.1.1.1 = INTEGER: 1
VMWARE-ROOT-MIB::vmwVirtMachines.1.1.2.0 = STRING: "LabXP1"
VMWARE-ROOT-MIB::vmwVirtMachines.1.1.2.1 = STRING: "nfsnode2"
....
So it seems ok...
Boh..
Eventually I'm going to open a case.
Gianluca
Further info. From my mgmt station I can snmpwalk to esx server.
snmpwalk -Os -c mymgtcom -v 1 ipaddr_of_esx
gives about 2400 lines.
Some of them are:
sysORLastChange.0 = Timeticks: (0) 0:00:00.00
sysORID.1 = OID: ifMIB
sysORID.2 = OID: snmpMIB
sysORID.3 = OID: tcpMIB
sysORID.4 = OID: ip
sysORID.5 = OID: udpMIB
sysORID.6 = OID: vacmBasicGroup
sysORID.7 = OID: snmpFrameworkMIBCompliance
sysORID.8 = OID: snmpMPDCompliance
sysORID.9 = OID: usmMIBCompliance
sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface su
b-layers
sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
sysORDescr.3 = STRING: The MIB module for managing TCP implementations
sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
sysORDescr.5 = STRING: The MIB module for managing UDP implementations
sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Secu
rity Model.
sysORUpTime.1 = Timeticks: (0) 0:00:00.00
...
Is it correct that there is no mention to VMware related MIBS?
There are also these lines:
snmpOutTraps.0 = Counter32: 1
snmpEnableAuthenTraps.0 = INTEGER: disabled(2)
snmpSilentDrops.0 = Counter32: 0
I can also do an snmpwalk like this from the mgmt station:
snmpwalk -v1 -c mymgtcom -m "./VMWARE-ROOT-MIB.mib" ip_add_of_esx vmware
obtaining
VMWARE-ROOT-MIB::vmwSystem.1.0 = STRING: "VMware ESX Server"
VMWARE-ROOT-MIB::vmwSystem.2.0 = STRING: "3.0.2"
VMWARE-ROOT-MIB::vmwSystem.3.0 = OID: VMWARE-ROOT-MIB::vmwOID.1.3.0.2
VMWARE-ROOT-MIB::vmwSystem.4.0 = STRING: "90892"
VMWARE-ROOT-MIB::vmwVirtMachines.1.1.1.0 = INTEGER: 0
VMWARE-ROOT-MIB::vmwVirtMachines.1.1.1.1 = INTEGER: 1
VMWARE-ROOT-MIB::vmwVirtMachines.1.1.2.0 = STRING: "LabXP1"
VMWARE-ROOT-MIB::vmwVirtMachines.1.1.2.1 = STRING: "nfsnode2"
....
So it seems ok...
Boh..
Eventually I'm going to open a case.
Gianluca