Threshold plugin-Threshold for interfaces rate

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

linux83
Cacti User
Posts: 70
Joined: Tue Oct 11, 2011 1:40 am

Re: Threshold plugin-Threshold for interfaces rate

Post by linux83 »

Hi,

i have 4 interfaces two are 100 others are 1000, i pick "randomly" the last file :

cacti@cacti:/var/www/cacti/rra$ rrdtool info 3560_traffic_in_22.rrd
filename = "3560_traffic_in_22.rrd"
rrd_version = "0003"
step = 300
last_update = 1318978204
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 1.0000000000e+07
ds[traffic_in].last_ds = "3526008595"
ds[traffic_in].value = 0.0000000000e+00
ds[traffic_in].unknown_sec = 0
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 600
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = 1.0000000000e+07
ds[traffic_out].last_ds = "3238244425"
ds[traffic_out].value = 0.0000000000e+00
ds[traffic_out].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 600
rra[0].cur_row = 276
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 700
rra[1].cur_row = 168
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 0.0000000000e+00
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[1].cdp_prep[1].value = 0.0000000000e+00
rra[1].cdp_prep[1].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 775
rra[2].cur_row = 748
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 0.0000000000e+00
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[2].cdp_prep[1].value = 0.0000000000e+00
rra[2].cdp_prep[1].unknown_datapoints = 0
rra[3].cf = "AVERAGE"
rra[3].rows = 797
rra[3].cur_row = 62
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 1.1683392286e+07
rra[3].cdp_prep[0].unknown_datapoints = 218
rra[3].cdp_prep[1].value = 3.2916659930e+06
rra[3].cdp_prep[1].unknown_datapoints = 251
rra[4].cf = "MAX"
rra[4].rows = 600
rra[4].cur_row = 34
rra[4].pdp_per_row = 1
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[4].cdp_prep[1].value = NaN
rra[4].cdp_prep[1].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 700
rra[5].cur_row = 462
rra[5].pdp_per_row = 6
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = 0.0000000000e+00
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[5].cdp_prep[1].value = 0.0000000000e+00
rra[5].cdp_prep[1].unknown_datapoints = 0
rra[6].cf = "MAX"
rra[6].rows = 775
rra[6].cur_row = 425
rra[6].pdp_per_row = 24
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = 0.0000000000e+00
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[6].cdp_prep[1].value = 0.0000000000e+00
rra[6].cdp_prep[1].unknown_datapoints = 0
rra[7].cf = "MAX"
rra[7].rows = 797
rra[7].cur_row = 338
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = 3.5240345470e+05
rra[7].cdp_prep[0].unknown_datapoints = 218
rra[7].cdp_prep[1].value = 2.1531852267e+06
rra[7].cdp_prep[1].unknown_datapoints = 251
cacti@cacti:/var/www/cacti/rra$


linux83
Cisco Networking
*LeArN To KnOw*
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Threshold plugin-Threshold for interfaces rate

Post by TheWitness »

Your max values are set incorrectly in the rrdfiles. Likely using ifSpeed instead of ifHighSpeed. I have published a patch. You might want to seek it out, or pull the latest resource/snmp_queries/interfaces.xml and lib/rrd.php from SVN and SVN for PIA, then rerun the Data Queries and Delete the Affected RRDfiles.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
linux83
Cacti User
Posts: 70
Joined: Tue Oct 11, 2011 1:40 am

Re: Threshold plugin-Threshold for interfaces rate

Post by linux83 »

Hi,

i download interface.xml and rrd.php from SVN,
i rename and paste these files in proper folders:

resource/snmp_queries/interfaces.xml
lib/rrd.php

move old rrd files related to this switch to temp folder and
then i update the poller:
php -q rebuild_poller_cache.php -d.

but still the issue is there.

help please.

linux83.
Attachments
updated-svn-files.png
updated-svn-files.png (18.11 KiB) Viewed 1035 times
Cisco Networking
*LeArN To KnOw*
linux83
Cacti User
Posts: 70
Joined: Tue Oct 11, 2011 1:40 am

Re: Threshold plugin-Threshold for interfaces rate

Post by linux83 »

TheWitness wrote:You need to make sure your limits are correct on your graphs and that they are properly using 64bit counters.
Yep, this is the trick, just to recap base on your old post:

1) 10G Interfaces can be tracked, but not without changes to the Standard Interface Data Template
2) You must use SNMPv2 and 64-bit Counters
3) You MUST adjust the max value in the Data Template.
4) If you already have graphs you want to keep, you can use the RRDtool tune command to increase the Max value in the RRDfile.

i change Interface template to use bit in out/64bit insted of normal in/out bit counters.

this fix both, graph reading and threshold alerting.

thanks alot, it's fixed.

linux83.
Cisco Networking
*LeArN To KnOw*
linux83
Cacti User
Posts: 70
Joined: Tue Oct 11, 2011 1:40 am

Re: Threshold plugin-Threshold for interfaces rate

Post by linux83 »

This is the result, All Gig interfaces under monitor with perfect and accurate reading:
Thanks alot.

Linux83.
Attachments
snmp-64bit-counters0.png
snmp-64bit-counters0.png (20 KiB) Viewed 1031 times
Cisco Networking
*LeArN To KnOw*
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests