in reply to Perl and SNMP (or how to create a custom SNMP agent.)
Update: Now I see your example and properly recollect the snmpd.conf options. You can write:
exec exim_output_ucd /usr/bin/exim -bpc extend exim_output_ns /usr/bin/exim -bpc pass .1.3.6.1.4.1.55555.1 /usr/local/bin/exim_wrapperTo pull the results of old UCD exec, walk .1.3.6.1.4.1.2021.8 For the newer Net-SNMP extend, walk .1.3.6.1.4.1.8072.1.3.2 Both return string output, which may not work well with a snmp poller for graphing. To create a proper gauge at .1.3.6.1.4.1.55555.1, make a /usr/local/bin/exim_wrapper like:
#!/bin/sh
case "$1" in
-g) echo ".1.3.6.1.4.1.55555.1" # you are enterprise 55555
echo "gauge"
exec exim -bps
;;
esac
_______________________________
|
|---|