RE: snmp.conf

Michal Filka <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <BEE650D2F88D74448AD3E613B0C6D4E5E65EF5A6@STS-PRG-EXM1M1.sts.sitronics.com>
> The first thing to check would be whether snmpd is actually reading
> this file or not.
> Try adding the option '-Dread_config' to the startup settings for snmpd, and
> restart the agent.  Then check the log for the debug output - it should list the
> config files that it's reading in.

Related parts of the log:
<log>
Aug 13 07:52:04 de-pim snmpd[5245]: Reading configuration /etc/snmp/snmp.conf
Aug 13 07:52:04 de-pim snmpd[5245]: read_config:
Aug 13 07:52:04 de-pim snmpd[5245]: /etc/snmp/snmp.conf:1 examining: mibdirs +<DIR1>
Aug 13 07:52:04 de-pim snmpd[5245]: read_config:
Aug 13 07:52:04 de-pim snmpd[5245]: Found a parser.  Calling it: mibdirs / +<DIR1>
Aug 13 07:52:04 de-pim snmpd[5245]: read_config:initmib:
Aug 13 07:52:04 de-pim snmpd[5245]: using mibdirs: +<DIR1>
Aug 13 07:52:04 de-pim snmpd[5245]: read_config:
Aug 13 07:52:04 de-pim snmpd[5245]: /etc/snmp/snmp.conf:2 examining: mibdirs +<DIR2>
Aug 13 07:52:04 de-pim snmpd[5245]: read_config:
Aug 13 07:52:04 de-pim snmpd[5245]: Found a parser.  Calling it: mibdirs / +<DIR2>
Aug 13 07:52:04 de-pim snmpd[5245]: read_config:initmib:
Aug 13 07:52:04 de-pim snmpd[5245]: using mibdirs: +<DIR1>:<DIR2>
Aug 13 07:52:04 de-pim snmpd[5245]: read_config:
Aug 13 07:52:04 de-pim snmpd[5245]: /etc/snmp/snmp.conf:8 examining: mibs +<MIB1>
Aug 13 07:52:04 de-pim snmpd[5245]: read_config:
Aug 13 07:52:04 de-pim snmpd[5245]: Found a parser.  Calling it: mibs / +<MIB1>
Aug 13 07:52:04 de-pim snmpd[5245]: read_config:initmib:
Aug 13 07:52:04 de-pim snmpd[5245]: using mibs: +<MIB1>
Aug 13 07:52:04 de-pim snmpd[5245]: read_config:
Aug 13 07:52:04 de-pim snmpd[5245]: /etc/snmp/snmp.conf:9 examining: mibs +<MIB2>
Aug 13 07:52:04 de-pim snmpd[5245]: read_config:
Aug 13 07:52:04 de-pim snmpd[5245]: Found a parser.  Calling it: mibs / +<MIB2>
Aug 13 07:52:04 de-pim snmpd[5245]: read_config:initmib:
Aug 13 07:52:04 de-pim snmpd[5245]: using mibs: +<MIB1>:<MIB2>
Aug 13 07:52:04 de-pim snmpd[5245]: read_config:
Aug 13 07:52:04 de-pim snmpd[5245]: /etc/snmp/snmp.conf:10 examining: mibs +<MIB3>
Aug 13 07:52:04 de-pim snmpd[5245]: read_config:
Aug 13 07:52:04 de-pim snmpd[5245]: Found a parser.  Calling it: mibs / +<MIB3>
Aug 13 07:52:04 de-pim snmpd[5245]: read_config:initmib:
Aug 13 07:52:04 de-pim snmpd[5245]: using mibs: +<MIB1>:<MIB2>:Sitronicsts<MIB3>
Aug 13 07:52:04 de-pim snmpd[5245]: read_config:
Aug 13 07:52:04 de-pim snmpd[5245]: /etc/snmp/snmp.conf:12 examining: mibs +<MIB4>
Aug 13 07:52:04 de-pim snmpd[5245]: read_config:
Aug 13 07:52:04 de-pim snmpd[5245]: Found a parser.  Calling it: mibs / +<MIB4>
Aug 13 07:52:04 de-pim snmpd[5245]: read_config:initmib:
Aug 13 07:52:04 de-pim snmpd[5245]: using mibs: +<MIB1>:<MIB2>:<MIB3>:<MIB4>

Aug 13 07:52:04 de-pim snmpd[5245]: Cannot find module (<MIB1>): At line 0 in (none)
Aug 13 07:52:04 de-pim snmpd[5245]: Cannot find module (<MIB2>): At line 0 in (none)
Aug 13 07:52:04 de-pim snmpd[5245]: Cannot find module (<MIB3>): At line 0 in (none)
Aug 13 07:52:04 de-pim snmpd[5245]: Cannot find module (<MIB4>): At line 0 in (none)
</log>


Only thing which helped was editing /etc/default/snmpd and appending -M +<DIR1>:<DIR2> into SNMPDOPTS
> 
Michal Filka

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.