Thold and bandwidthgraphs?

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
kyosanim
Posts: 37
Joined: Thu Apr 05, 2007 5:33 am

Thold and bandwidthgraphs?

Post by kyosanim »

Hello guys,
i'am using cacti for about 6 month with serveral plugins. most times i can solve my cacti-problems with help of the forum or docu-page. but this time i couldn'd find a post that match with my problem.

I want to monitor the internetconnection to our ISP. i have a cisco router with an 155mbit connection. and i want to get an alert if the usage of the bandwidth went above 130mbit.
I am using the cacti template/data query 'SNMP - Interface Statistics' to gather the data from the router.
Gathering data an graphing works fine (i am using a cdef-function to convert from bytes into bits).
now my problem. the 'current' value in thold is completly different to the value in the graph. and it's is not just a wrong convertion of bytes into bits. i tried serveral cdef-functions without success.
anybody an idea?
is thold able to handle 'counters' or just 'gauge' values?

Using - Cacti 0.8.6j on SLES 10
- cactid
- PluginArch 1.1
- 1Minute Polling
- Thold 3.4
- Syslog-Plugin
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Thold and bandwidthgraphs?

Post by Howie »

kyosanim wrote:Hello guys,
i'am using cacti for about 6 month with serveral plugins. most times i can solve my cacti-problems with help of the forum or docu-page. but this time i couldn'd find a post that match with my problem.

I want to monitor the internetconnection to our ISP. i have a cisco router with an 155mbit connection. and i want to get an alert if the usage of the bandwidth went above 130mbit.
I am using the cacti template/data query 'SNMP - Interface Statistics' to gather the data from the router.
Gathering data an graphing works fine (i am using a cdef-function to convert from bytes into bits).
now my problem. the 'current' value in thold is completly different to the value in the graph. and it's is not just a wrong convertion of bytes into bits. i tried serveral cdef-functions without success.
anybody an idea?
is thold able to handle 'counters' or just 'gauge' values?

Using - Cacti 0.8.6j on SLES 10
- cactid
- PluginArch 1.1
- 1Minute Polling
- Thold 3.4
- Syslog-Plugin
Last time I looked, Thold assumes you have a 5 minute polling cycle. It doesn't use the data from the RRD files but directly from the poller, so it's certainly possible for there to be differences (it effectively does the same calculations internally that rrdtool would have done to figure out the rate).

[yep - in 0.3.4's setup.php, there are several hard-coded '/300' references. Possibly changing those to /60 would resolve it? Are the values out by a factor of 5-ish? ]

Howie
(not actually a thold expert)
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
kyosanim
Posts: 37
Joined: Thu Apr 05, 2007 5:33 am

Post by kyosanim »

that's it.
now it's working!
i created a cdef-function that make '$wrong-value * 5'...
thanks a lot!

@feature request: make thold working with 1MinutePolling Patch
elpiako
Cacti User
Posts: 85
Joined: Tue Jul 01, 2008 10:02 am
Location: Lille (FRANCE)

Post by elpiako »

Hi, i currently have the same problem.
But i have some questions : even if I multiply the "wrong" value by 5, it's still wrong :/

Can someone help me ?

edit : after studying the current value of my traffic_in thrshold, it corresponds to nothing !!! What's the hell is this value ?

I actually have 12944042.0933 for traffic_out instead of 104,14 Mbits/second (on the graph)
and 19702522.06 for traffic_in instead of 158,36 Mbits/second (on the graph)
Server1
Cacti : 0.8.7h | Architecture : 3.0
autom8 : 0.35 | aggregate : 0.75 | settings : 0.71 | thold : 0.4.7 | weathermap : 0.97a

Server2
Cacti : 0.8.7g | Architecture : 2.8
autom8 : 0.35 | aggregate : 0.75 | settings : 0.7 | thold : 0.4.3 | weathermap : 0.97a | flowview : 0.6
elpiako
Cacti User
Posts: 85
Joined: Tue Jul 01, 2008 10:02 am
Location: Lille (FRANCE)

Post by elpiako »

Server1
Cacti : 0.8.7h | Architecture : 3.0
autom8 : 0.35 | aggregate : 0.75 | settings : 0.71 | thold : 0.4.7 | weathermap : 0.97a

Server2
Cacti : 0.8.7g | Architecture : 2.8
autom8 : 0.35 | aggregate : 0.75 | settings : 0.7 | thold : 0.4.3 | weathermap : 0.97a | flowview : 0.6
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests