Hi,
I noticed that after emerging net-snmp and starting /etc/init.d/snmpd
I got the following results from snmpwalk:

$ snmpwalk -v1 -cpublic localhost
Timeout: No Response from localhost

Then I thought maybe SNMP is not configured properly. I looked up the
Gentoo SNMP howto
(http://gentoo-wiki.com/HOWTO_SNMP_and_MRTG_Made_Easy), which told me
to edit my /etc/snmp/snmpd.conf

When I opened /etc/snmp/snmpd.conf it said:

#
# net-snmp (or ucd-snmp) persistent data file.
#
############################################################################
# STOP STOP STOP STOP STOP STOP STOP STOP STOP
#
#          **** DO NOT EDIT THIS FILE ****
#
# STOP STOP STOP STOP STOP STOP STOP STOP STOP
############################################################################
#
# DO NOT STORE CONFIGURATION ENTRIES HERE.
# Please save normal configuration tokens for snmpd in SNMPCONFPATH/snmpd.conf.
# Only "createUser" tokens should be placed here by snmpd administrators.
# (Did I mention: do not edit this file?)
#

followed by many blank lines, followed by something like:

usmUser ...
setserialno ...
engineBoots 3
oldEngineID ...


I am quite puzzled at this message. Not only does it fail to give me a
reason not to edit this file, I don't even know what SNMPCONFPATH
could possibly be and how to configure it. Is SNMPCONFPATH an env var?
Should it be set for all users? For the user under which snmpd runs?

I was brave enough, and I went a head and ignored this "STOP" message.
I replaced the contents of /etc/snmp/snmpd.conf with what the Gentoo
howto recommended, and all of the sudden the above snmpwalk command
returned tonnes of SNMP info, like expected.

I would like to have some clarification in this matter. Should I
ignore this message? Should I configure SNMPCONFPATH somehow?
--
gentoo-user@gentoo.org mailing list

Reply via email to