Hi mates!
I'm configuring external script in net-snmp (5.3.2.2 under fedora 16) and it not works like I expect.
First I create the script that contains something like this:
SCRIPT: /procnum.sh
CONTENT:
#!/bin/bash
ps -ef | wc -l
Then I modified the snmpd.conf and add this at the end:
extend procnum /procnum.sh
Restart snmpd and check though snmpwalk
snmpwalk -v1 -cpublic localhost | grep -i procnum
and it doesn't show my extension command
All is installed by default, selinux disabled...any idea about what I missing?
Thanks!