Date: Wed, 7 Mar 2007 22:03:51 +0100 From: Oliver Lehmann <lehmann@ans-netz.de> To: questions@freebsd.org Subject: bsnmpd Message-ID: <20070307220351.b5411250.lehmann@ans-netz.de>
next in thread | raw e-mail | index | archive | help
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 olivleh1@fiori 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 = "" root@kartoffel /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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070307220351.b5411250.lehmann>