mum4k / tc_reader

A persistent SNMP script that exports TC Queue and Class statistics for graphing (for example to Cacti).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No data displayed in cacti

dinseto opened this issue · comments

Hi,

first thanks for your work. I tried to setup tc_reader with Cacti. The Installation and Configuration works fine without any Errors. Ping - Pong works :)

The problem is that I cant see any data of my Interface.

I added my Interface to /etc/tc_reader.conf

I checked a few SNMP queries from your XML Template File:

root@nagios-xxx:/opt/omd/sites/xxx/etc/nagios/conf.d# snmpget -v1 -c public 192.168.0.xx .1.3.6.1.4.1.2021.255.11
iso.3.6.1.4.1.2021.255.11 = STRING: "tcUserDownBytesLeaf"

root@nagios-xxx:/opt/omd/sites/xxx/etc/nagios/conf.d# snmpget -v1 -c public 192.168.0.xx .1.3.6.1.4.1.2021.255.3
iso.3.6.1.4.1.2021.255.3 = STRING: "tcNameLeaf"

root@nagios-xxx:/opt/omd/sites/xxx/etc/nagios/conf.d# snmpget -v1 -c public 192.168.0.xx .1.3.6.1.4.1.2021.255.4
iso.3.6.1.4.1.2021.255.4 = STRING: "sentBytesLeaf"

root@nagios-xxx:/opt/omd/sites/xxx/etc/nagios/conf.d# snmpget -v1 -c public 192.168.0.xx .1.3.6.1.4.1.2021.255.7
iso.3.6.1.4.1.2021.255.7 = STRING: "overLimitPktLeaf"

Hello and thanks for filing this issue. I will ask you for more details before we move on:

  1. can you please upload your configuration file tc_reader.conf?

  2. can you please provide snmpwalk outputs instead of snmpgets? Start the walk at the top of your chosen OID (defaults to .1.3.6.1.4.1.2021.255). See the docstring in tc_reader.go for details, the command should look like this:
    snmpwalk -v2c -c public localhost .1.3.6.1.4.1.2021.255

  3. tc_reader logs error messages into syslog, can you please scrape your logs on the machine that runs tc_reader and upload all the lines that contain "tc_reader"? (after anonymizing them as you see fit) Please do this after executing the snmpwalks.

  4. Can you provide the output from the following commands on the machine that runs tc_reader:
    /sbin/tc -s qdisc show dev <interface_name>
    /sbin/tc -s class show dev <interface_name>

Thanks a lot.

Hello,

thanks for your fast answer.

  1. I attached my tc_reader.conf File.

  2. is also attached

  3. no error Messages

qdisc htb 2: root refcnt 2 r2q 10 default 20 direct_packets_stat 0
Sent 47459234782 bytes 62056824 pkt (dropped 444923, overlimits 86738475 requeues 0)
backlog 0b 0p requeues 0
qdisc sfq 10: parent 2:10 limit 127p quantum 1408b divisor 1024 perturb 10sec
Sent 304383019 bytes 1006633 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc sfq 20: parent 2:20 limit 127p quantum 1408b divisor 1024 perturb 10sec
Sent 44315293822 bytes 57231139 pkt (dropped 23145, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc ingress ffff: parent ffff:fff1 ----------------
Sent 3134055033 bytes 40595524 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0

Ok, it seems that I can read the data over snmpwalk. The Problem must be @Cacti

thanks and regards

Tobias

----- Ursprüngliche Mail -----

Von: "mumak" notifications@github.com
An: "mum4k/tc_reader" tc_reader@noreply.github.com
CC: "dinseto" tobias.dinse@stegbauer.info
Gesendet: Donnerstag, 8. Mai 2014 17:09:04
Betreff: Re: [tc_reader] No data (#1)

Hello and thanks for filing this issue. I will ask you for more details before we move on:

  1. can you please upload your configuration file tc_reader.conf?

  2. can you please provide snmpwalk outputs instead of snmpgets? Start the walk at the top of your chosen OID (defaults to .1.3.6.1.4.1.2021.255). See the docstring in tc_reader.go for details, the command should look like this:
    snmpwalk -v2c -c public localhost .1.3.6.1.4.1.2021.255

  3. tc_reader logs error messages into syslog, can you please scrape your logs on the machine that runs tc_reader and upload all the lines that contain "tc_reader"? (after anonymizing them as you see fit) Please do this after executing the snmpwalks.

  4. Can you provide the output from the following commands on the machine that runs tc_reader:
    /sbin/tc -s qdisc show dev
    /sbin/tc -s class show dev

Thanks a lot.


Reply to this email directly or view it on GitHub .
sysadmin@nagios-stegbauer:~$ snmpwalk -v2c -c public 192.168.12.1 .1.3.6.1.4.1.2021.255
iso.3.6.1.4.1.2021.255.1 = STRING: "tcIndexLeaf"
iso.3.6.1.4.1.2021.255.1.1 = INTEGER: 1
iso.3.6.1.4.1.2021.255.1.2 = INTEGER: 2
iso.3.6.1.4.1.2021.255.1.3 = INTEGER: 3
iso.3.6.1.4.1.2021.255.1.4 = INTEGER: 4
iso.3.6.1.4.1.2021.255.1.5 = INTEGER: 5
iso.3.6.1.4.1.2021.255.1.6 = INTEGER: 6
iso.3.6.1.4.1.2021.255.1.7 = INTEGER: 7
iso.3.6.1.4.1.2021.255.1.8 = INTEGER: 8
iso.3.6.1.4.1.2021.255.2 = INTEGER: 8
iso.3.6.1.4.1.2021.255.3 = STRING: "tcNameLeaf"
iso.3.6.1.4.1.2021.255.3.1 = STRING: "bra2pir:2:0"
iso.3.6.1.4.1.2021.255.3.2 = STRING: "bra2pir:16:0"
iso.3.6.1.4.1.2021.255.3.3 = STRING: "bra2pir:32:0"
iso.3.6.1.4.1.2021.255.3.4 = STRING: "bra2pir:65535:0"
iso.3.6.1.4.1.2021.255.3.5 = STRING: "bra2pir:2:1"
iso.3.6.1.4.1.2021.255.3.6 = STRING: "bra2pir:2:16"
iso.3.6.1.4.1.2021.255.3.7 = STRING: "bra2pir:2:32"
iso.3.6.1.4.1.2021.255.3.8 = STRING: "bra2pir:2:48"
iso.3.6.1.4.1.2021.255.4 = STRING: "sentBytesLeaf"
iso.3.6.1.4.1.2021.255.4.1 = Counter32: 214507801
iso.3.6.1.4.1.2021.255.4.2 = Counter32: 304374691
iso.3.6.1.4.1.2021.255.4.3 = Counter32: 1365542567
iso.3.6.1.4.1.2021.255.4.4 = Counter32: 986496595
iso.3.6.1.4.1.2021.255.4.5 = Counter32: 214507801
iso.3.6.1.4.1.2021.255.4.6 = Counter32: 304374691
iso.3.6.1.4.1.2021.255.4.7 = Counter32: 1380300728
iso.3.6.1.4.1.2021.255.4.8 = Counter32: 692074190
iso.3.6.1.4.1.2021.255.5 = STRING: "sentPktLeaf"
iso.3.6.1.4.1.2021.255.5.1 = Counter32: 62056003
iso.3.6.1.4.1.2021.255.5.2 = Counter32: 1006535
iso.3.6.1.4.1.2021.255.5.3 = Counter32: 57230418
iso.3.6.1.4.1.2021.255.5.4 = Counter32: 40594749
iso.3.6.1.4.1.2021.255.5.5 = Counter32: 62056003
iso.3.6.1.4.1.2021.255.5.6 = Counter32: 1006535
iso.3.6.1.4.1.2021.255.5.7 = Counter32: 57246296
iso.3.6.1.4.1.2021.255.5.8 = Counter32: 3819050
iso.3.6.1.4.1.2021.255.6 = STRING: "droppedPktLeaf"
iso.3.6.1.4.1.2021.255.6.1 = Counter32: 444923
iso.3.6.1.4.1.2021.255.6.2 = Counter32: 0
iso.3.6.1.4.1.2021.255.6.3 = Counter32: 23145
iso.3.6.1.4.1.2021.255.6.4 = Counter32: 0
iso.3.6.1.4.1.2021.255.6.5 = Counter32: 0
iso.3.6.1.4.1.2021.255.6.6 = Counter32: 0
iso.3.6.1.4.1.2021.255.6.7 = Counter32: 9685
iso.3.6.1.4.1.2021.255.6.8 = Counter32: 435238
iso.3.6.1.4.1.2021.255.7 = STRING: "overLimitPktLeaf"
iso.3.6.1.4.1.2021.255.7.1 = Counter32: 86738475
iso.3.6.1.4.1.2021.255.7.2 = Counter32: 0
iso.3.6.1.4.1.2021.255.7.3 = Counter32: 0
iso.3.6.1.4.1.2021.255.7.4 = Counter32: 0
iso.3.6.1.4.1.2021.255.7.5 = Counter32: 0
iso.3.6.1.4.1.2021.255.7.6 = Counter32: 0
iso.3.6.1.4.1.2021.255.7.7 = Counter32: 0
iso.3.6.1.4.1.2021.255.7.8 = Counter32: 0
iso.3.6.1.4.1.2021.255.8 = STRING: "tcUserIndexLeaf"
iso.3.6.1.4.1.2021.255.10 = STRING: "tcUserNameLeaf"
iso.3.6.1.4.1.2021.255.11 = STRING: "tcUserDownBytesLeaf"
iso.3.6.1.4.1.2021.255.12 = STRING: "tcUserDownPktLeaf"
iso.3.6.1.4.1.2021.255.13 = STRING: "tcUserDownDroppedPktLeaf"
iso.3.6.1.4.1.2021.255.14 = STRING: "tcUserDownOverLimitPktLeaf"
iso.3.6.1.4.1.2021.255.15 = STRING: "tcUserUpBytesLeaf"
iso.3.6.1.4.1.2021.255.16 = STRING: "tcUserUpPktLeaf"
iso.3.6.1.4.1.2021.255.17 = STRING: "tcUserUpDroppedPktLeaf"
iso.3.6.1.4.1.2021.255.18 = STRING: "tcUserUpOverLimitPktLeaf"

Glad to hear that the snmpwalk works. If the problem is in cacti configuration it will be a bit harder to debug.

Let me know if I can help you somehow. I am going to close this issue for now, but feel free to reopen it if you have any questions.