Quantcast
Channel: VMware Communities : Popular Discussions - VI: VMware ESX® 3.0
Viewing all articles
Browse latest Browse all 60069

Esx 3.0.2: no snmp traps in case of power on/off ov vm

$
0
0

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

 

  1. VMware MIB modules. To enable/disable VMware MIB items

  2. 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)

# vmware-cmd -l

/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


Viewing all articles
Browse latest Browse all 60069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>