problem with extend directive

kodena kodena <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAHt7smkyYx-sZ4CbPJs_540rTMsevvpJYWp3vOHcBtbFuiPz+Q@mail.gmail.com>
Hi!

I'm new to net-snmp and snmp at all.... I'm configuring external script in
net-snmp 5.3.2.2-17  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 command. No errors in std or /var/log/messages,

All installed by default, selinux disabled...any idea about what I missing?

Thanks!

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.