SNMP OIDs with multiple indexes

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
GGA
Cacti User
Posts: 62
Joined: Mon May 03, 2010 5:56 am

SNMP OIDs with multiple indexes

Post by GGA »

Sorry to start a new thread with this topic as there are are so many, but all of them seemed to be unanswered. Well, at least for me. :-)
I have cases where interfaces use profiles and all the traffic uses different profiles based on the networkquality.
So I have an OID with two indexes, there is first an interfaceIndex and second a profileIndex:

Code: Select all

OID: .1.3.6.1.4.1.4491.2.1.28.1.20.1.4.14000096.0
OID: .1.3.6.1.4.1.4491.2.1.28.1.20.1.4.14000096.1
OID: .1.3.6.1.4.1.4491.2.1.28.1.20.1.4.14000096.2
OID: .1.3.6.1.4.1.4491.2.1.28.1.20.1.4.14000096.3
OID: .1.3.6.1.4.1.4491.2.1.28.1.20.1.4.14000112.0
OID: .1.3.6.1.4.1.4491.2.1.28.1.20.1.4.14000112.1
OID: .1.3.6.1.4.1.4491.2.1.28.1.20.1.4.14000112.2
OID: .1.3.6.1.4.1.4491.2.1.28.1.20.1.4.14000112.3
My question is which way do I need to choose to make cacti draw his type of interfaceraffic?
Can it be done with "Get SNMP Data (Indexed)"?
Thank you all for any hint.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SNMP OIDs with multiple indexes

Post by TheWitness »

This is what SNMP Data Queries are for. Search out the GitHub documentation site for more information on using them.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
GGA
Cacti User
Posts: 62
Joined: Mon May 03, 2010 5:56 am

Re: SNMP OIDs with multiple indexes

Post by GGA »

I found this two topics and they helped me a lot.
viewtopic.php?p=252573
viewtopic.php?p=262570
One thing I'm still thinking about, is there a way to load a table for TEXTUAL-CONVENTION?

Code: Select all

DsOfdmModulationType ::= TEXTUAL-CONVENTION
     STATUS      current
     DESCRIPTION
        "This data type is defined to indicate the bit loading of
         subcarriers in an OFDM downstream channel."
     REFERENCE
         "DOCSIS 3.1 Physical layer Specification CM-SP-PHYv3.1-I03-140610,
         Modulation Formats section."
     SYNTAX      INTEGER {
                          other(1),
                          zeroValued(2),
                          qpsk(3),
                          qam16(4),
                          qam64(5),
                          qam128(6),
                          qam256(7),
                          qam512(8),
                          qam1024(9),
                          qam2048(10),
                          qam4096(11),
                          qam8192(12),
                          qam16384(13)
                         }
The query will return an integer and from the table I know the corresponding profile.
But how can use such a table?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SNMP OIDs with multiple indexes

Post by TheWitness »

You will have to translate as we do not handle that natively. It's something that I have thought about over the years as a feature, but never implemented.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests