Data Collection question

4 messages Options
Embed this post
Permalink
Patrick Tuite

Data Collection question

Reply Threaded More More options
Print post
Permalink
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_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
David Hustace

Re: Data Collection question

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

On Nov 3, 2009, at 7:50 AM, Patrick Tuite wrote:

Hi

OpenNMS v 1.6.4-1
Java 1.5.0_18
OpenSuse 11.1 x86_64

Thanks for the info, you rock!


I was wondering if anyone knows a quick method to do the same for
mapping Integer values to Strings within the Data Collection?

This is an enhancement feature that has been requested for quite a while..  I suggest perhaps voting for it in bugzilla.


David Hustace
The OpenNMS Group, Inc.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
Patrick Tuite

Re: Data Collection question

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

David Hustace wrote:


On Nov 3, 2009, at 7:50 AM, Patrick Tuite wrote:

Hi

OpenNMS v 1.6.4-1
Java 1.5.0_18
OpenSuse 11.1 x86_64

Thanks for the info, you rock!


I was wondering if anyone knows a quick method to do the same for
mapping Integer values to Strings within the Data Collection?

This is an enhancement feature that has been requested for quite a while..  I suggest perhaps voting for it in bugzilla.

Thanks. I'll do that, but the closest bug I could find that comes close to, but not quite, matching this is
http://bugzilla.opennms.org/show_bug.cgi?id=2436

Would that be the best to vote upon or would you know of a better matched bug? Or should I raise one?


David Hustace
The OpenNMS Group, Inc.


------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july

_______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-discuss mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-discuss

 

 

 

 

Airspeed Telecom - Proven Radio Network Solutions for Business



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
David Hustace

Re: Data Collection question

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

On Nov 4, 2009, at 8:21 AM, Patrick Tuite wrote:

Thanks. I'll do that, but the closest bug I could find that comes close to, but not quite, matching this is 

http://bugzilla.opennms.org/show_bug.cgi?id=2436

Would that be the best to vote upon or would you know of a better matched bug? Or should I raise one?

I don't know for sure, though that bug contains a great feature request, this one might by what you are thinking:




David Hustace
The OpenNMS Group, Inc.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss