xml file for Data Queries

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

Moderators: Developers, Moderators

Post Reply
yedascientist
Posts: 10
Joined: Fri Oct 27, 2023 12:23 pm

xml file for Data Queries

Post by yedascientist »

Hi All,
I have disabled increasing OID Check from poller as my devices are showing Error: OID not increasing, i.e.
.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.1000.1.1.1 = Counter64: 0
.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.10000.1.1.2 = Counter64: 71424
.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.1000.1.1.3 = Counter64: 0
Error: OID not increasing: .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.10000.1.1.2
>= .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.1000.1.1.3
this is my interface_traffic.xml file, have create data template and graph template

Code: Select all

<interface>
    <name>OLT Interface Traffic</name>
    <description>Queries a host for a list of monitorable interfaces</description>
    <oid_index>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.1</oid_index>
    <index_order>objectName:ifOperStatus:ifType</index_order>
    <index_order_type>numeric</index_order_type>
    <index_title_format>|chosen_order_field|</index_title_format>

    <fields>
        <ifOperStatus>
            <name>ifOperStatus</name>
            <method>walk</method>
            <source>value</source>
            <direction>input</direction>
            <oid>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.3</oid>
        </ifOperStatus>
        <ifType>
            <name>ifType</name>
            <method>walk</method>
            <source>value</source>
            <direction>input</direction>
            <oid>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.4</oid>
        </ifType>
        <objectName>
            <name>objectName</name>
            <method>walk</method>
            <source>value</source>
            <direction>input</direction>
            <oid>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.1001</oid>
        </objectName>
        <tejasStoctetsRx>
            <name>tejasStoctetsRx</name>
            <method>walk</method>
            <source>value</source>
            <direction>output</direction>
            <oid>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480</oid>
        </tejasStoctetsRx>
        <tejasStoctetsTx>
            <name>tejasStoctetsTx</name>
            <method>walk</method>
            <source>value</source>
            <direction>output</direction>
            <oid>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.482</oid>
        </tejasStoctetsTx>
    </fields>
</interface>
however cacti logs showing OID as .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.482.1 but expecting OID to be
.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.1000.1.1.1 = Counter64: 0
.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.10000.1.1.2 = Counter64: 114432
.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.1000.1.1.3 = Counter64: 0
.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.10000.1.1.4 = Counter64: 2110270234
.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.1000.1.1.5 = Counter64: 0
.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.1000.1.1.6 = Counter64: 0
.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.2500.1.1.201 = Counter64: 26869185
.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.2500.1.1.202 = Counter64: 750569654
.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.2500.1.1.203 = Counter64: 2841103
.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.2500.1.1.204 = Counter64: 335351
.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.2500.1.1.205 = Counter64: 5838211
.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.2500.1.1.206 = Counter64: 232025868
.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.2500.1.1.207 = Counter64: 2672479
.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.2500.1.1.208 = Counter64: 335351
.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.100.1.1.3595 = Counter64: 295308
What change required in xml file to plot graph.
yedascientist
Posts: 10
Joined: Fri Oct 27, 2023 12:23 pm

Re: xml file for Data Queries

Post by yedascientist »

getting such logs in cacti.log file
2023-10-28 00:00:05 - SPINE: Poller[Main Poller] PID[806] PT[140119955896064] Device[x.x.x.x] HT[2] DS[x.x.x.x - Port_Eth-10000-1-1-4 - Traffic] Graphs[x.x.x.x - Port_Eth-10000-1-1-4 - Traffic] TT[37.65] SNMP: v2: x.x.x.x, dsname: tejasStoctetsRx, oid: .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.4, value: U
2023-10-28 00:00:05 - SPINE: Poller[Main Poller] PID[806] PT[140119955896064] Device[x.x.x.x] HT[2] DS[x.x.x.x - Port_Eth-10000-1-1-3 - Traffic] Graphs[x.x.x.x - Port_Eth-10000-1-1-3 - Traffic] TT[37.55] SNMP: v2: x.x.x.x, dsname: tejasStoctetsRx, oid: .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.3, value: U
2023-10-28 00:00:05 - SPINE: Poller[Main Poller] PID[806] PT[140119955896064] Device[x.x.x.x] HT[2] DS[x.x.x.x - Port_Eth-10000-1-1-2 - Traffic] Graphs[x.x.x.x - Port_Eth-10000-1-1-2 - Traffic] TT[149.46] SNMP: v2: x.x.x.x, dsname: tejasStoctetsRx, oid: .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.2, value: U
2023-10-28 00:00:05 - SPINE: Poller[Main Poller] PID[806] PT[140119955896064] Device[x.x.x.x] HT[2] DS[x.x.x.x - Port_Eth-10000-1-1-1 - Traffic] Graphs[x.x.x.x - Port_Eth-10000-1-1-1 - Traffic] TT[149.36] SNMP: v2: x.x.x.x, dsname: tejasStoctetsRx, oid: .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.1, value: U
2023-10-27 23:55:04 - SPINE: Poller[Main Poller] PID[15455] PT[139663255103232] Device[x.x.x.x] HT[2] DS[x.x.x.x - Port_Eth-10000-1-1-4 - Traffic] Graphs[x.x.x.x - Port_Eth-10000-1-1-4 - Traffic] TT[36.71] SNMP: v2: x.x.x.x, dsname: tejasStoctetsRx, oid: .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.4, value: U
2023-10-27 23:55:04 - SPINE: Poller[Main Poller] PID[15455] PT[139663255103232] Device[x.x.x.x] HT[2] DS[x.x.x.x - Port_Eth-10000-1-1-3 - Traffic] Graphs[x.x.x.x - Port_Eth-10000-1-1-3 - Traffic] TT[36.60] SNMP: v2: x.x.x.x, dsname: tejasStoctetsRx, oid: .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.3, value: U
2023-10-27 23:55:04 - SPINE: Poller[Main Poller] PID[15455] PT[139663255103232] Device[x.x.x.x] HT[2] DS[x.x.x.x - Port_Eth-10000-1-1-2 - Traffic] Graphs[x.x.x.x - Port_Eth-10000-1-1-2 - Traffic] TT[138.65] SNMP: v2: x.x.x.x, dsname: tejasStoctetsRx, oid: .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.2, value: U
2023-10-27 23:55:04 - SPINE: Poller[Main Poller] PID[15455] PT[139663255103232] Device[x.x.x.x] HT[2] DS[x.x.x.x - Port_Eth-10000-1-1-1 - Traffic] Graphs[x.x.x.x - Port_Eth-10000-1-1-1 - Traffic] TT[138.55] SNMP: v2: x.x.x.x, dsname: tejasStoctetsRx, oid: .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480.1, value: U
yedascientist
Posts: 10
Joined: Fri Oct 27, 2023 12:23 pm

Re: xml file for Data Queries

Post by yedascientist »

update xml file as below

Code: Select all

<interface>
    <name>OLT Interface Traffic</name>
    <description>Queries a host for a list of monitorable interfaces</description>
    <oid_index>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.1</oid_index>
    <oid_index_parse>OID/REGEXP:^.{32}\.(.*)</oid_index_parse>
    <!--<oid_index_parse>OID/REGEXP:^\.+.{32}(\d+\.\d+\.\d+.*)</oid_index_parse> -->
    <index_order>objectName:ifOperStatus:ifType</index_order>
    <index_order_type>numeric</index_order_type>
    <index_title_format>|chosen_order_field|</index_title_format>

    <fields>
        <ifOperStatus>
            <name>ifOperStatus</name>
            <method>walk</method>
            <source>value</source>
            <direction>input</direction>
            <oid>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.3</oid>
        </ifOperStatus>
        <ifType>
            <name>ifType</name>
            <method>walk</method>
            <source>value</source>
            <direction>input</direction>
            <oid>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.4</oid>
        </ifType>
        <objectName>
            <name>objectName</name>
            <method>walk</method>
            <source>value</source>
            <direction>input</direction>
            <oid>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.1001</oid>
        </objectName>
        <tejasStoctetsRx>
            <name>tejasStoctetsRx</name>
            <method>walk</method>
            <source>value</source>
            <direction>output</direction>
            <oid>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480</oid>
        </tejasStoctetsRx>
        <tejasStoctetsTx>
            <name>tejasStoctetsTx</name>
            <method>walk</method>
            <source>value</source>
            <direction>output</direction>
            <oid>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.482</oid>
        </tejasStoctetsTx>
    </fields>
</interface>
however while creating graph, all input direction values showing first ifoperation status and then iftyp, not showing all information in row
Up

Up

Up

Up

Up

Up

Up

Up

Down

Up

Down

Up

Down

Up

Down

6

6

6

6

6

6

6

6

6

6

6

6

6

6

6
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest