1 |
Hi, |
2 |
I noticed that after emerging net-snmp and starting /etc/init.d/snmpd |
3 |
I got the following results from snmpwalk: |
4 |
|
5 |
$ snmpwalk -v1 -cpublic localhost |
6 |
Timeout: No Response from localhost |
7 |
|
8 |
Then I thought maybe SNMP is not configured properly. I looked up the |
9 |
Gentoo SNMP howto |
10 |
(http://gentoo-wiki.com/HOWTO_SNMP_and_MRTG_Made_Easy), which told me |
11 |
to edit my /etc/snmp/snmpd.conf |
12 |
|
13 |
When I opened /etc/snmp/snmpd.conf it said: |
14 |
|
15 |
# |
16 |
# net-snmp (or ucd-snmp) persistent data file. |
17 |
# |
18 |
############################################################################ |
19 |
# STOP STOP STOP STOP STOP STOP STOP STOP STOP |
20 |
# |
21 |
# **** DO NOT EDIT THIS FILE **** |
22 |
# |
23 |
# STOP STOP STOP STOP STOP STOP STOP STOP STOP |
24 |
############################################################################ |
25 |
# |
26 |
# DO NOT STORE CONFIGURATION ENTRIES HERE. |
27 |
# Please save normal configuration tokens for snmpd in SNMPCONFPATH/snmpd.conf. |
28 |
# Only "createUser" tokens should be placed here by snmpd administrators. |
29 |
# (Did I mention: do not edit this file?) |
30 |
# |
31 |
|
32 |
followed by many blank lines, followed by something like: |
33 |
|
34 |
usmUser ... |
35 |
setserialno ... |
36 |
engineBoots 3 |
37 |
oldEngineID ... |
38 |
|
39 |
|
40 |
I am quite puzzled at this message. Not only does it fail to give me a |
41 |
reason not to edit this file, I don't even know what SNMPCONFPATH |
42 |
could possibly be and how to configure it. Is SNMPCONFPATH an env var? |
43 |
Should it be set for all users? For the user under which snmpd runs? |
44 |
|
45 |
I was brave enough, and I went a head and ignored this "STOP" message. |
46 |
I replaced the contents of /etc/snmp/snmpd.conf with what the Gentoo |
47 |
howto recommended, and all of the sudden the above snmpwalk command |
48 |
returned tonnes of SNMP info, like expected. |
49 |
|
50 |
I would like to have some clarification in this matter. Should I |
51 |
ignore this message? Should I configure SNMPCONFPATH somehow? |
52 |
-- |
53 |
gentoo-user@g.o mailing list |