XML template problem

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
kennyg
Posts: 3
Joined: Tue Jun 26, 2018 4:01 am

XML template problem

Post by kennyg »

Hello people.

I am trying to create a template to monitor Arris C4 upstream interface utilization.
My xml file is in attachment.
The problem:
While in verbose query(also in attachment) i can see that cacti found values:
+ Found item [ifLoadDebug='3'] index: 2 [from value]
+ Found item [ifLoadDebug='4'] index: 2 [from value]
+ Found item [ifLoadDebug='5'] index: 2 [from value]
+ Found item [ifLoadDebug='4'] index: 2 [from value]
etc
But when i try to draw graph values are empty. Screenshot is below. Column ifLoaddebug

Image
Attachments
Verbose_Query.txt
Verbose query
(142.69 KiB) Downloaded 38 times
c4_load.xml
XML for template
(1.12 KiB) Downloaded 47 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: XML template problem

Post by netniV »

So looking at the XML file you have:

1.3.6.1.2.1 - Interfaces (normally network interfaces)
with .2.2.1.1 being a list of interface indexes (numbers)
with .31.1.1.1.1 being a list of interface Names
with 31.1.1.1.18 being a list of interface Descriptions

1.3.6.1.4.1 - Enterprise (custom OID interface not the IETF)
with 4998 being for Cadant

1.3.6.1.4.1.1.10.2.23 - cadInterfaceUtilizationTable
with .1.2 being a cadInterfaceUtilizationPercentage entry

.1.3.6.1.2.1.10.127.1.3.9 - docsIfCmtsChannelUtilizationTable
with .1.3 - docsIfCmtsChannelUtUtilization

What I would do is get an SNMPWALK manually at the command line of each Table and make sure that there is an index matching on each table for what you expect in your indexes list. If you can post those hear, I can try and see what is going on.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
kennyg
Posts: 3
Joined: Tue Jun 26, 2018 4:01 am

Re: XML template problem

Post by kennyg »

I assume that the problem maybe with <ifLoadDebug> oid, .1.3.6.1.2.1.10.127.1.3.9.1.3
I added another input field, signal to noice ratio, oid .1.3.6.1.2.1.10.127.1.1.4.1.5 and verbose query
to this section looks like this:

Code: Select all

+ Executing SNMP walk for data @ '.1.3.6.1.2.1.10.127.1.1.4.1.5'
+ Found item [SNR='0'] index: 131609 [from value]
+ Found item [SNR='0'] index: 131610 [from value]
+ Found item [SNR='331'] index: 131617 [from value]
+ Found item [SNR='0'] index: 131618 [from value]
But for upstream utilization result looks like this:

Code: Select all

+ Executing SNMP walk for data @ '.1.3.6.1.2.1.10.127.1.3.9.1.3'
+ Found item [ifLoadDebug='0'] index: 1 [from value]
+ Found item [ifLoadDebug='1'] index: 2 [from value]
+ Found item [ifLoadDebug='1'] index: 3 [from value]
+ Found item [ifLoadDebug='0'] index: 4 [from value]
+ Found item [ifLoadDebug='1'] index: 5 [from value]
+ Found item [ifLoadDebug='1'] index: 6 [from value]
+ Found item [ifLoadDebug='1'] index: 7 [from value]
+ Found item [ifLoadDebug='1'] index: 8 [from value]
+ Found item [ifLoadDebug='5'] index: 9 [from value]
+ Found item [ifLoadDebug='2'] index: 10 [from value]
+ Found item [ifLoadDebug='2'] index: 11 [from value]
+ Found item [ifLoadDebug='2'] index: 12 [from value]
+ Found item [ifLoadDebug='0'] index: 13 [from value]
+ Found item [ifLoadDebug='0'] index: 14 [from value]
+ Found item [ifLoadDebug='0'] index: 15 [from value]
+ Found item [ifLoadDebug='0'] index: 16 [from value]
+ Found item [ifLoadDebug='1'] index: 17 [from value]
+ Found item [ifLoadDebug='1'] index: 18 [from value]
+ Found item [ifLoadDebug='1'] index: 19 [from value]
+ Found item [ifLoadDebug='1'] index: 20 [from value]
+ Found item [ifLoadDebug='0'] index: 21 [from value]
+ Found item [ifLoadDebug='0'] index: 22 [from value]
+ Found item [ifLoadDebug='0'] index: 23 [from value]
+ Found item [ifLoadDebug='0'] index: 24 [from value]
+ Found item [ifLoadDebug='0'] index: 1 [from value]
+ Found item [ifLoadDebug='0'] index: 2 [from value]
+ Found item [ifLoadDebug='0'] index: 3 [from value]
+ Found item [ifLoadDebug='0'] index: 4 [from value]
+ Found item [ifLoadDebug='0'] index: 5 [from value]
+ Found item [ifLoadDebug='0'] index: 6 [from value]
+ Found item [ifLoadDebug='0'] index: 7 [from value]
+ Found item [ifLoadDebug='0'] index: 8 [from value]
+ Found item [ifLoadDebug='0'] index: 9 [from value]
+ Found item [ifLoadDebug='0'] index: 10 [from value]
+ Found item [ifLoadDebug='0'] index: 11 [from value]
+ Found item [ifLoadDebug='0'] index: 12 [from value]
+ Found item [ifLoadDebug='0'] index: 13 [from value]
+ Found item [ifLoadDebug='0'] index: 14 [from value]
+ Found item [ifLoadDebug='0'] index: 15 [from value]
+ Found item [ifLoadDebug='0'] index: 16 [from value]
+ Found item [ifLoadDebug='0'] index: 17 [from value]
+ Found item [ifLoadDebug='0'] index: 18 [from value]
+ Found item [ifLoadDebug='0'] index: 19 [from value]
+ Found item [ifLoadDebug='0'] index: 20 [from value]
+ Found item [ifLoadDebug='0'] index: 21 [from value]
+ Found item [ifLoadDebug='0'] index: 22 [from value]
+ Found item [ifLoadDebug='0'] index: 23 [from value]
+ Found item [ifLoadDebug='0'] index: 24 [from value]
....etc
I see that indexes are "rotated".

I did snmpwalk for SNR oid and the output looks like this:

Code: Select all

[root@monitoring ~]# snmpwalk -v2c -c mycommunitry 172.29.44.253 .1.3.6.1.2.1.10.127.1.1.4.1.5
SNMPv2-SMI::transmission.127.1.1.4.1.5.131609 = INTEGER: 0
SNMPv2-SMI::transmission.127.1.1.4.1.5.131610 = INTEGER: 0
SNMPv2-SMI::transmission.127.1.1.4.1.5.131617 = INTEGER: 341
SNMPv2-SMI::transmission.127.1.1.4.1.5.131618 = INTEGER: 0
SNMPv2-SMI::transmission.127.1.1.4.1.5.131625 = INTEGER: 342
SNMPv2-SMI::transmission.127.1.1.4.1.5.131626 = INTEGER: 0
So here i see oid and than index and thats all but if i do walk on utilization oid i got this:

Code: Select all

[root@monitoring ~]# snmpwalk -v2c -c mycommunity 172.29.44.253 .1.3.6.1.2.1.10.127.1.3.9.1.3
SNMPv2-SMI::transmission.127.1.3.9.1.3.131608.129.1 = INTEGER: 0
SNMPv2-SMI::transmission.127.1.3.9.1.3.131616.129.2 = INTEGER: 1
SNMPv2-SMI::transmission.127.1.3.9.1.3.131624.129.3 = INTEGER: 1
SNMPv2-SMI::transmission.127.1.3.9.1.3.131632.129.4 = INTEGER: 0
SNMPv2-SMI::transmission.127.1.3.9.1.3.131640.129.5 = INTEGER: 1
So here i see oid + index and then another part of oid. Maybe the problem is that i need to parse this somehow?

Because all other field exept "load" are showing correct values, description, name etc. When i add other filed like SNR it also shows correct values
kennyg
Posts: 3
Joined: Tue Jun 26, 2018 4:01 am

Re: XML template problem

Post by kennyg »

Somebody?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: XML template problem

Post by netniV »

That seems to be against the standard RFC specifications for 1.3.6.1.2.1.10.127.1.3.9.1.3

You may have to write a custom script server script to handle that.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests