Hi
OpenNMS v 1.6.4-1
Java 1.5.0_18
OpenSuse 11.1 x86_64
I've noticed that fo the 1.7 branch there is now a method in the Events
configuration to "decode" numerical varbinds to map them to a string
value, i.e from the wiki.
initial(1) learn(2) listen(3)
<decode varbindvalue="1" varbinddecodedstring="initial"/>
<decode varbindvalue="2" varbinddecodedstring="learn"/>
<decode varbindvalue="3" varbinddecodedstring="listen"/>
I was wondering if anyone knows a quick method to do the same for
mapping Integer values to Strings within the Data Collection? In my case
an OID returns either 2 or 3 for (2)Drawer1, (3)Drawer2. I'd like to
then use that String value for the index of the resourceType element
instead of index 3 or index 4 which shows when choosing resource graphs.
There are no String OID's returnable from this device. The MIBs for it
have string values mapped within them.
Appreciate any pointers here.
Cheers
Patrick
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQopennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss