Re: using monitor to trap (extend vs proxy)

Greg Oliver <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <1326386120.15369.27.camel@ghost>
On Thu, 2012-01-12 at 15:26 +0000, Dave Shield wrote:
> On 12 January 2012 14:59, Greg Oliver <[email protected]> wrote:
> > Is there any way to use monitor to compare strings versus integers?
> 
> No - I don't think so.
> The DisMan Event MIB is designed to work with integer values only.
> 
>    (Well, strictly speaking the mteTriggerExistance tests
>     should work with any type of object, so you could monitor
>     for *changes* in a string value.   But the Boolean and
>     Threshold tests are definitely integer only).
> 
> 
> >  I think I could make that work if so.
> 
> Hmmmm...   Are you feeling adventurous?
> The attached patch is completely untested, but feel to give it a whirl
> and see whether it helps you at all....
> 

I owe you a beer!  The patch works great while using extend.  Just for
the archives sake, I ma doing the following with your patch.

Using the JVM built in snmp management tool on loopback with a
preconfigured port.  I have shell scripts that return 0|1 depending on
the snmpwalk output in them.  Those scripts are "extend"ing the
enterprise MIB for each jvm instance.  The monitor then watches the
entended OID and compares (with your patch) 0|1, and fires properly.

Thanks again!

-Greg


------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
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.