Hi all,
 
 I have a little problem with snmpd. I would be glad of any help.
 
 Background:
 I created a proprietary mib (module name PIM-MIB) and loadable module.
MIB
 contains one Unsigned32 variable (testNo) and one notification
(testTr).
 
 snmp.conf contains:
 mibdirs +<path-to-mib-file>
 
 mibs +PIM-MIB
 
 snmpd.conf contains:
 dlmod <my-module-name> /home/filka/snmp/<my-module-name>.so
 
 createUser _internal MD5 "phrase"
 agentSecName _internal
 rouser _internal
 
 trapcommunity public
 trapsink <ip>
 trap2sink <ip>
 
 notificationEvent testNotification PIM-MIB::testTr PIM-MIB::testNo
 
 monitor -e testNotification -r 60  "monitor" PIM-MIB::testNo <= 1234
 
 linkUpDownNotifications yes
 
 Net-snmp version: 5.2.3
 
 So, when I start snmpd using "snmpd -f" or "snmpd -m +PIM-MIB" or
"snmpd -M
 +<path-to-mib-file>" everything works fine. However if I run it without
any of these
 arguments (e.g. using startup script "/etc/init.d/snmpd start") the
testTr never
 comes and syslog contains:
 snmpd[15966]: namebuf: PIM-MIB::testTr
 snmpd[15966]: /etc/snmp/snmpd.conf: line 435: Error: unable to parse
trap oid
 snmpd[15966]: /etc/snmp/snmpd.conf: line 437: Error: unable to parse
oid: PIM-
 MIB::testNo
 
 It seems to me that configuration in snmp.conf is ignored, when running
in daemon
 mode and my mib is not loaded. If I query testNo later on using Get
command,
 correct value is returned.
 
 Thanks for any help.
 
 Michal Filka

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
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

Reply via email to