option sysDescr 'adult playground'
# option sysObjectID '1.2.3.4'
-config exec filedescriptors
+config exec
+ option name filedescriptors
option prog /bin/cat
option args /proc/sys/fs/file-nr
# option miboid 1.2.3.4
snmpd_exec_add() {
local cfg="$1"
+ config_get execname "$cfg" execname
+ [ -n "$execname" ] || return 0
config_get prog "$cfg" prog
[ -n "$prog" ] || return 0
config_get args "$cfg" args
config_get miboid "$cfg" miboid
- echo "exec $miboid $cfg $prog $args" >> $RUN_C
+ echo "exec $miboid $execname $prog $args" >> $RUN_C
}
start() {
[ -d $LIB_D ] || mkdir -p $LIB_D