Hello,

I have such setup working on ucd-snmp-4.2.5 on Red Hat 7.3 Linux.

But now I'm trying to setup similar configuration with net-snmp-5.1.2
on CentOS4 (RHEL4) Linux and it does not work.

# uname -a
Linux server 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:28:26 CDT 2006 x86_64
x86_64 x86_64 GNU/Linux

I want to add processing of external command and have the following
snmpd.conf:

rocommunity secret

syslocation Unknown (edit /etc/snmp/snmpd.conf)
syscontact Root (configure /etc/snmp/snmp.local.conf)

pass .20.3.6.1.4.1.9.2.2.1.1.20 /usr/local/bstat/bstat
pass .20.3.6.1.4.1.9.2.2.1.1.28 /usr/local/bstat/bstat
pass .20.3.6.1.2.1.31.1.1.1.18 /usr/local/bstat/bstat
pass .20.3.6.1.2.1.1.3 /usr/local/bstat/bstat
pass .20.3.6.1.2.1.2.2.1.1 /usr/local/bstat/bstat
pass .20.3.6.1.2.1.2.2.1.2 /usr/local/bstat/bstat
pass .20.3.6.1.2.1.2.2.1.5 /usr/local/bstat/bstat
pass .20.3.6.1.2.1.2.2.1.7 /usr/local/bstat/bstat
pass .20.3.6.1.2.1.2.2.1.8 /usr/local/bstat/bstat
pass .20.3.6.1.2.1.2.2.1.9 /usr/local/bstat/bstat
pass .20.3.6.1.2.1.2.2.1.10 /usr/local/bstat/bstat
pass .20.3.6.1.2.1.2.2.1.16 /usr/local/bstat/bstat

But snmpd does not run bstat on incoming requests. If I run snmpd
with -D -f -V options during configuration parsing I see that it finds those
pass directives and registers hooks for them. But when request comes in -
snmpd do not tries to run bstat.

What can be cause for that? I have to edit some other configuration file?
Also it does not seem to be permisions problem since bstat is accessible by
everyone.

Thanks,

Mindaugas


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=...057&dat=121642
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users