Interface Queue Traffic monitoring with Cacti using new Data Query

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

Moderators: Developers, Moderators

Post Reply
niranga1127
Posts: 26
Joined: Mon Apr 03, 2023 6:10 am

Interface Queue Traffic monitoring with Cacti using new Data Query

Post by niranga1127 »

Hi,
i'm trying to add Interface Queue traffic using a new data query template
Im using Cacti-1.2.23
My issue is that i'm not getting all the rows of indexes under Associated Data queries under Device ( online 9 rows available( Actual count - 855)
Screenshot_401.png
Screenshot_401.png (13.94 KiB) Viewed 3802 times
Here is the data query xml file
dataquryxml.txt
(1.33 KiB) Downloaded 84 times
Here is my output when i run the snmpwalk commnad in linux terminall Here
snmp output.txt
(6.42 KiB) Downloaded 88 times
As you can see i'm getting 855 indexes . but in cacti is only adding 9 rows (last 9 rows)
Screenshot_1.png
Screenshot_1.png (11.24 KiB) Viewed 3799 times
Here i have attached the verbose output of data query as well
verbose output data query.txt
(3.07 KiB) Downloaded 100 times
Could you please help me with this .. What can be the issue here ?
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Interface Queue Traffic monitoring with Cacti using new Data Query

Post by macan »

You need correct index. It couldn't be only last number. It is the reason why you have only 9 lines.
Index must be last three numbers.

Try to add this line to your xml file
<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})$</oid_index_parse>

More information is in your documentation
https://docs.cacti.net/How-To-Data-Queries.md
Let the Cacti grow!
niranga1127
Posts: 26
Joined: Mon Apr 03, 2023 6:10 am

Re: Interface Queue Traffic monitoring with Cacti using new Data Query

Post by niranga1127 »

Hi @macan,

Thank you very for the reply and solution. It works like a charm.

I have one question related to this . Is it possible to add another column of interface name as the input using default interface.xml OID for interface name . The issue here is one interface has multiple queues .


Regards
N
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest