Server Management - Systems Insight Manager
cancel
Showing results for 
Search instead for 
Did you mean: 

help with snmpd.conf for 8.0.1 ESX 3.5.2

Richard J Garrow
Occasional Advisor

help with snmpd.conf for 8.0.1 ESX 3.5.2

hi all,
I am having a problem understanding the config file for snmp. Is there a site that explains and give examples on how to config this file. I have read the readme files and still nothing. Thanks.
8 REPLIES
David Claypool
Honored Contributor

Re: help with snmpd.conf for 8.0.1 ESX 3.5.2

An example snmpd.conf should look somewhat like the following:

dlmod cmaX /usr/lib/libcmaX.so
rwcommunity [somestring] 127.0.0.1
rocommunity [someotherstring] xxx.xxx.xxx.xxx
trapcommunity public
trapsink xxx.xxx.xxx.xxx
syscontact root@localhost
syslocation [where it is]
Rob Buxton
Honored Contributor

Re: help with snmpd.conf for 8.0.1 ESX 3.5.2

If you're installing the HP Agents on this then the install configures this file for you.

even better is to configure up the hpmgmt.conf file and then use that in a silent install. That way you get a consistent snmp set up each time.
Richard J Garrow
Occasional Advisor

Re: help with snmpd.conf for 8.0.1 ESX 3.5.2

Thanks very much for the feed back. The problem I have run into is the snmp.conf file is correct and is the same on both servers, but when I log on to the server one server gives me all the details the other give me a screen and no hot links to any other information. I have stopped and restarted the services on both servers and still get the same results. I thought if I can get to work correctly on a couple then I can just port the settings accross the entire network. Any further help would be greatly appreciated.
Thanks Rich
Rob Buxton
Honored Contributor

Re: help with snmpd.conf for 8.0.1 ESX 3.5.2

Replicating the items across is why I preconfigure the hpmgmt.conf file.

I keep the installation and configuration file on a common disk, mounted to all ESX Hosts and do an installation on each server of the HP Agents from that one source.
That way I get a consistent working install on all hosts.

Also our procedure for ESX here is to rebuild for the major releases rather than upgrade, so again being able to quickly rerun a silent install on each host makes things easier.
Martin Sitte 1
Occasional Visitor

Re: help with snmpd.conf for 8.0.1 ESX 3.5.2

I have a similar problem.
The installation of "HP Management Agents for VMware ESX Server 3.x" was successfull and the Web Page https://vmhost01.pv.vkb.at:2381/ opens ok but all links contain no data (Storage, ...).

The Web Page displays on the left side:
Integrated Agents
HP Foundation Agent
HP NIC Agent
HP Server Agent
HP Storage Agent

My snmpd.conf is as follows:
# Sample snmpd.conf containing VMware MIB module entries.

# This is a simple snmpd.conf that may help you test SNMP.
# It is not recommended for production use. Consult the
# snmpd.conf(5) man pages to set up a secure installation.

syscontact root@localhost (edit snmpd.conf)
syslocation room1 (edit snmpd.conf)
rocommunity public
trapcommunity public
trapsink localhost

# VMware MIB modules. To enable/disable VMware MIB items
# add/remove the following entries.
dlmod SNMPESX /usr/lib/vmware/snmp/libSNMPESX.so

Any help to get this working would be appreciated.

Regards
Martin
David Claypool
Honored Contributor

Re: help with snmpd.conf for 8.0.1 ESX 3.5.2

Martin, you are missing "dlmod cmaX /usr/lib/libcmaX.so" as referenced above.

Additionally,

- best practice is not to use 'public' as a community string.
- in addition to an rocommunity you also need to establish an rwcommunity that can respond only to localhost
- there is no need to send traps to localhost
Martin Sitte 1
Occasional Visitor

Re: help with snmpd.conf for 8.0.1 ESX 3.5.2

Hi David,

many thanks for the the quick answer which solved my problem.
Wy was the line with "dlmod" missing in my snmpd.conf?
The installation itself was run successfull.

Where can I find sample snmpd.conf files or documentation about this configuration?
I only read snmp read access, no write.

Best Regards
Martin
Richard J Garrow
Occasional Advisor

Re: help with snmpd.conf for 8.0.1 ESX 3.5.2

I tried you idea of entering the "dlmod cmaX /usr/lib/libcmaX.so" into my snmpd.conf file I am still getting the same results.
# Sample snmpd.conf containing VMware MIB module entries.

# This is a simple snmpd.conf that may help you test SNMP.
# It is not recommended for production use. Consult the
# snmpd.conf(5) man pages to set up a secure installation.

syscontact root@localhost (edit snmpd.conf)
syslocation room1 (edit snmpd.conf)
rwcommunity labgartner 127.0.0.1
rocommunity public 127.0.0.1
rocommunity public localhost
rwcommunity priviate testwallaby.testent.abc.com
rocommunity testent.abc testwallaby.testent.abc.com
trapcommunity testent.abc
trapsink testwallaby.testent.abc.com
syscontact vcadmins@abc.com
syslocation development

rocommunity public
trapcommunity public
trapsink localhost

# VMware MIB modules. To enable/disable VMware MIB items
# add/remove the following entries.
dlmod SNMPESX /usr/lib/vmware/snmp/libSNMPESX.so
dlmod cmaX /usr/lib/libcmaX.so.1

I found a new file and tried pointing to that one still nothing. Can you have a look at my file above let me know if you can see what I am doing wrong.
thanks