Re: Debain Etch hrProcessorLoad pass script

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2008/11/6 Engelbert Roidl <[email protected]>:

> Now I tried to pass the requests to a script via the "pass" directive in snmpd.conf
> "pass .1.3.6.1.2.1.25.3.3.1.2.768 /usr/bin/perl /root/stat.pl"

That tells the agent to use the script /root/stat.pl for any information
in the subtree rooted at   .1.3.6.1.2.1.25.3.3.1.2.768
(and nothing outside this subtree).


> But when I try an "snmpgetnext -v 1 -On -c private 10.10.10.10 .1.3.6.1.2.1.25.3.3.1.2.768"
> the result should be ".1.3.6.1.2.1.25.3.3.1.2.769".

That OID is outside the subtree that /root/stat.pl is registered to handle,
so the agent will discard this varbind.


> The result is .1.3.6.1.2.1.25.3.4.1.1.1025 !!!!!

That's probably correct - being the next valid OID that is handled by the agent.



> The script returns .1.3.6.1.2.1.25.3.3.1.2.769 to the snmpd daemon.

Try registering the script under '.1.3.6.1.2.1.25.3.3.1.2' instead.
(or even .1.3.6.1.2.1.25.3.3.1 if it handles the whole table)

Dave

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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.