Hi,

please keep me CCed - I'm not subscribed to questions@


Is there a way to have bsnmpd execute a script when questioning a
specific oid and returning it's output? Like it can be done with the
following config directive in net-snmp

exec .1.1.5.0 hdte /usr/local/snmp-scripts/get_hdd_temp.sh ata /dev/ad0



[EMAIL PROTECTED] olivleh1> snmpwalk -v2c -c * kartoffel 1.1.5
iso.1.5.0.1.1 = INTEGER: 1
iso.1.5.0.2.1 = STRING: "hdte"
iso.1.5.0.3.1 = STRING: "/usr/local/snmp-scripts/get_hdd_temp.sh ata /dev/ad0"
iso.1.5.0.100.1 = INTEGER: 0
iso.1.5.0.101.1 = STRING: "31"
iso.1.5.0.101.2 = STRING: "0"
iso.1.5.0.102.1 = INTEGER: 0
iso.1.5.0.103.1 = ""


[EMAIL PROTECTED] /root> /usr/local/snmp-scripts/get_hdd_temp.sh ata /dev/ad0
31
0


-- 
 Oliver Lehmann
  http://www.pofo.de/
  http://wishlist.ans-netz.de/
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to