exec dose not work in 5.4

"Thomas Zenz" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I updated my Server from 5.1.1 to 5.4 my snmp.conf dose not work
anymore. 
I am using some exec scripts to get exim statistics and an overview of
my dhcp scopes.
The scripts do nothing else but running a cat on a temp file I generate
via cronjob to not run into timeout problems.

So I tried the new default snmpd.conf.example but it's not working
too.

I can do the simple hello world example with OID .1.2.6.4.1.2021.8 and
add all my scripts there and they work, but it's a lot of work to change
everything on my snmpget config.

Also the example is not working for:
exec .1.3.6.1.4.1.2021.51 ps /bin/ps
exec .1.3.6.1.4.1.2021.52 top /usr/local/bin/top
exec .1.3.6.1.4.1.2021.53 mailq /usr/bin/mailq

with debugging on extend it complains that exec has tobe replaced by
extend. 
no change
It complains, that the Path is wrong, but is working with without the
OID as simple exec?!

The Problem is the default access control L

We removed the access control examples and added simple:
rocommunity  public 127.0.0.1

And it works.

I allready found out, that I can only add 50 exec commands and changed
this to 100. No change.

My old config looks like this:
extend 1.3.6.1.4.1.3032.64 exim-traffic
/usr/local/bin/cacti/exim-traffic 
extend 1.3.6.1.4.1.3032.65 exim-rejected
/usr/local/bin/cacti/exim-rejected
extend 1.3.6.1.4.1.3032.66 exim-delivery
/usr/local/bin/cacti/exim-delivery
extend 1.3.6.1.4.1.3032.67 exim-stat
/usr/local/bin/cacti/exim_stats_snmp.sh
extend 1.3.6.1.4.1.3032.70 spammails /usr/local/bin/cacti/spam-traffic

We found out, that the OID now has to start with a “.” So we
changed it to:
extend .1.3.6.1.4.1.3032.64 exim-traffic
/usr/local/bin/cacti/exim-traffic 
…

Snmpwalk works now. But I have to change my snmpgets OID from
.1.3.6.1.4.1.3032.64.101.1   to
.1.3.6.1.4.1.3032.64.4.1.2.13.101.120.105.109.45.100.101.108.105.118.101.114.121.1

Please Help!
Why?

regards
Tom

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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.