On 04/09/07, Stefan Guenther <[EMAIL PROTECTED]> wrote:

> There's only one thing in the output, which might cause some trouble.
> Here's what I get:
>
> SNMPV2-SMI::entrprises.10190.1 = STRING: "hello world"
> Error: OID not increasing: SNMPV2-SMI::enterprises.10190.1
>       >= SNMPV2-SMI::enterprises.10190.1

The pass script can be invoked in two different ways:

       script -g  OID
or
       script -n  OID

for GET and GETNEXT requests respectively.

You need to check how it was invoked, in order to respond accordingly.
You can *NOT* simply respond with a fixed OID - otherwise the
agent will get confused (exactly as you are seeing!).



> Or is there a way to avoid this message completely?

Yes - Implement the pass script according to the specification
defined in the snmpd.conf(5) man page.

In particular, note the paragraph starting
    "If the command cannot return an appropriate varbind....."

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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/listinfo/net-snmp-users

Reply via email to