Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Dec 12, 2018 11:01 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Indexed SNMP query - multiple Indexes
PostPosted: Wed Dec 05, 2018 9:31 am 
Offline

Joined: Tue May 04, 2010 4:47 am
Posts: 20
Sorry, seems to be opened in the wrong topic. Please feel free to move.

Hi,

as I didn't want to hijack another older thread the same (unanswered) question.
I am in need to create graphs for a device holding 2 indexes for the OID to query on Cacti 1.1.38.

First index is an GROUP index
Quote:
iso.3.6.1.4.1.303.3.3.45.7.2.2.3.1.1.1.2 = INTEGER: 1
iso.3.6.1.4.1.303.3.3.45.7.2.2.3.1.1.1.3 = INTEGER: 1
iso.3.6.1.4.1.303.3.3.45.7.2.2.3.1.1.1.4 = INTEGER: 1
iso.3.6.1.4.1.303.3.3.45.7.2.2.3.1.1.1.5 = INTEGER: 1
iso.3.6.1.4.1.303.3.3.45.7.2.2.3.1.1.2.1 = INTEGER: 2


Second index is an interface like number within a certain group
Quote:
iso.3.6.1.4.1.303.3.3.45.7.2.2.3.1.2.1.2 = INTEGER: 2
iso.3.6.1.4.1.303.3.3.45.7.2.2.3.1.2.1.3 = INTEGER: 3
iso.3.6.1.4.1.303.3.3.45.7.2.2.3.1.2.1.4 = INTEGER: 4
iso.3.6.1.4.1.303.3.3.45.7.2.2.3.1.2.1.5 = INTEGER: 5
iso.3.6.1.4.1.303.3.3.45.7.2.2.3.1.2.2.1 = INTEGER: 1


The data requested is
Quote:
iso.3.6.1.4.1.303.3.3.45.7.2.2.3.1.5.1.2 = Counter64: 42000
iso.3.6.1.4.1.303.3.3.45.7.2.2.3.1.5.1.3 = Counter64: 42001
iso.3.6.1.4.1.303.3.3.45.7.2.2.3.1.5.1.4 = Counter64: 50187
iso.3.6.1.4.1.303.3.3.45.7.2.2.3.1.5.1.5 = Counter64: 385888
iso.3.6.1.4.1.303.3.3.45.7.2.2.3.1.5.2.1 = Counter64: 33653


I am not quite sure if I understood the regexp part of OID correctly so I am uncertain if this can be accomplished.
For now the below is giving me the values of group and "interface" as well as the value in the web preview and when executing a verbose query, but there is still an "nan" in each datasource.

Code:
<interface>
        <name>Get JUPITER IGM Inroute CRC error information</name>
        <description>Inroute group 0</description>
        <oid_index>.1.3.6.1.4.1.303.3.3.45.7.2.2.3.1</oid_index>
        <index_order>inrGrpindex:inrIndex</index_order>
        <index_order_type>numeric</index_order_type>
        <index_title_format>|chosen_order_field|</index_title_format>
        <fields>
                <inrIndex>
                        <name>Inroute Number</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input-output</direction>
                        <oid>.1.3.6.1.4.1.303.3.3.45.7.2.2.3.1.2</oid>
                </inrIndex>
                <inrGrpIndex>
                        <name>Inroute Group</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input-output</direction>
                        <oid>.1.3.6.1.4.1.303.3.3.45.7.2.2.3.1.1</oid>
                </inrGrpIndex>
                <inrCRC>
                        <name>Inroute CRC</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input-output</direction>  #just to see in verbose mode if i get values
                        <oid>.1.3.6.1.4.1.303.3.3.45.7.2.2.3.1.5</oid>
                </inrCRC>
        </fields>
</interface>


The old solution for Cacti 0.8.8f was to create an xml file for each group which does not look as the way to go for me.
Is that something I could do with the "<oid_index_parse>OID/REGEXP..." ?

Thanks.

Chris


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group