Re: problem with ucdavis MIBs

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 11/12/2007, Ernesto Franchini <[email protected]> wrote:
> 2)-- second server is running Slackware and has problems:
>
> (from snmpd.conf)
> exec .1.3.6.1.4.1.2021.49 iplist /root/iptables_traffic_iplist.sh -g
> exec .1.3.6.1.4.1.2021.49.42 ipindex /root/iptables_traffic_iplist.sh -i
> exec .1.3.6.1.4.1.2021.50 traffic_in /root/iptables_traffic_eval.sh in
> exec .1.3.6.1.4.1.2021.51 traffic_out /root/iptables_traffic_eval.sh out
>
> # snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.2021.49
>
> UCD-SNMP-MIB::ucdavis.49 = No Such Object available
>     on this agent at this OID


Which version of the code are you running?
Is anything logged when you start the agent up?


> but if i remove the OID part fron exec
> (ie. "exec iplist /root/iptables_traffic_iplist.sh -g" ) this query
> returns the values i'm looking for (so exec() is executed correctly)

That sounds as if you are probably using a relatively recent
version of the agent.

Starting with the 5.4.x release, the "exec OID ..." directive
has been withdrawn from the default build - in favour of the
newer "extend OID ...."  format.
   Not only is this a much more flexible arrangement, it has the
minor advantage of generating a legal MIB output structure!


You should be getting a error logged when the agent starts up.

If you need to keep using the older (invalid) format, then you
can do so by re-compiling the agent to explicitly include the
'ucd-snmp/exec' module.   But we would strongly recommend
you look at switching to the "extend" directive instead.
  See NET-SNMP-EXTEND-MIB" for the output structure.


Dave

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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.