Hello EveryBody,
I am very new to snmp and net-snmp. Please bear with my little knowledge on
this subject.
Currently I am using net-snmp-5.4.3 on Centos 4.8.
I need to monitor the dhcpd failover state. In absence of standard DHCPD mib
rfc like that I thought it would be good idea to extend enterpirse oid.
So i put a command in snmpd.conf like this:
extend .1.3.6.1.4.1.3658.50 dhcpd_partner_down /root/dhcpd_partner_down.sh
It worked for me. I can see
snmpwalk localhost -c public -v 2c .1.3.6.1.4.1.3658.50
SNMPv2-SMI::enterprises.3658.50.1.0 = INTEGER: 1
SNMPv2-SMI::enterprises.3658.50.2.1.2.18.100.104.99.112.100.95.112.97.114.116.110.101.114.95.100.111.119.110
= STRING: "/root/dhcpd_partner_down.sh"
SNMPv2-SMI::enterprises.3658.50.2.1.3.18.100.104.99.112.100.95.112.97.114.116.110.101.114.95.100.111.119.110
= ""
....................................................
....................................................
....................................
I am kind of surprised to see the output as I was reading essential snmp, it
has an example of using exec instead of extend but the oid is just two digit
more
i.e 1.3.6.1.4.1.3658.50.1.1 or 1.3.6.1.4.1.3658.50.1.2. instead of big
number like
SNMPv2-SMI::enterprises.3658.50.2.1.2.18.100.104.99.112.100.95.112.97.114.116.110.101.114.95.100.111.119.110
Is it ok to see this kind of output?
now I put following lines setup a monitor for this oid.
trapcommunity traprus
trapsink localhost 162
trap2sink localhost 162
informsink localhost 162
# Adding additonal info for disman monitoring
createUser _internal MD5 password
agentSecName _internal
rwuser _internal
monitor -r 60 -o .1.3.6.1.4.1.3658.5000 "Partner Down"
SNMPv2-SMI::enterprises.3658.50.3.1.4.18.100.104.99.112.100.95.112.97.114.116.110.101.114.95.100.111.119.110
!= 0
However this never generates any trap. I was wondering if I am doing
someting wrong? I will appreciate your feedback.
Thank you.
rn
------------------------------------------------------------------------------
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