Re: String to Integer

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2008/10/13 Clement Sciammas <[email protected]>:
> Unfortunately, the device making the query is a 3rd party load balancer that
> we do not have the ability to modify.  Is there a way other than extend to
> get integer output of a local shell script?

There are basically two ways to extend the agent.

One way is use a fixed-format MIB output, which is the approach
used by the "extend" (and similar) directives.   The advantage is
that the agent script doesn't have to do anything special, and can
be ignorant of SNMP completely.   The disadvantage is that the
client side has be a little more flexible, and adapt to this fixes format.

The alternative is to have a specific MIB, more tightly focused on
the precise requirements of the client side.  That makes things
simpler for the client, but does mean that the agent has to do a
bit more work to match this MIB.

It does sound as if that's the way you'll need to go.
That doesn't mean you have to descend into the murky
depths of writing a fully-fledged C module.  Have a look
at the "pass" directive - that ought to be sufficient.

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.