Thold 0.4.9 doesn't work correctly in my install

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
User avatar
GLR
Cacti User
Posts: 55
Joined: Mon Jul 21, 2008 5:45 am
Location: Paris suburbs, France
Contact:

Thold 0.4.9 doesn't work correctly in my install

Post by GLR »

Thold 0.4.9 doesn't work correctly in my install : The alerts are triggered too early reporting much higher values than the ones displayed in the graphs :

Image
fr-ns2 - IB DNS stats - SUCCESS [IBdnsSUCCESS] 2012-02-02 09:36:16 280 291 Alarm High/Low ALERT: fr-ns2 - IB DNS stats - SUCCESS[IBdnsSUCCESS] went above threshold of 280 with 291
Image
FR-PI1 - Client HTTP Requests [snmp_oid1] 2012-02-02 10:26:21 480 701 Re-Trigger High/Low ALERT: FR-PI1 - Client HTTP Requests [snmp_oid1] is still above threshold of 480 with 701
FR-PI1 - Client HTTP Requests [snmp_oid1] 2012-02-02 09:26:15 480 666 Re-Trigger High/Low ALERT: FR-PI1 - Client HTTP Requests [snmp_oid1] is still above threshold of 480 with 666
FR-PI1 - Client HTTP Requests [snmp_oid1] 2012-02-02 08:36:18 480 604 Alarm High/Low ALERT: FR-PI1 - Client HTTP Requests [snmp_oid1] went above threshold of 480 with 604
I had to revert back to 0.4.4
Cacti 0.8.8b + spine 0.8.8b
on Debian / Apache 2.2 / PHP 5.2 / MySQL 5.0
Sadus
Posts: 4
Joined: Wed May 24, 2006 7:51 am

Re: Thold 0.4.9 doesn't work correctly in my install

Post by Sadus »

Thanks for the tip, I will try 0.4.4. In 0.4.9 I am getting very weird results too.

In thold_functions.php, in function thold_calculate_expression, with these debug lines..
cacti_log("\$thold[expression] = [" . $thold['expression'] . "]");
cacti_log("\$data_sources keys: " . implode(",", array_keys($data_sources)));
cacti_log("\$data_sources: " . implode(",", $data_sources));
cacti_log("expression: " . implode(",", $expression));

I'm seeing data like:
05/11/2012 03:05:17 PM - CMDPHP: Poller[0] $thold[expression] = [|ds:traffic_in|,800,*,|ds:ifSpeed|,/]
05/11/2012 03:05:17 PM - CMDPHP: Poller[0] $data_sources keys: traffic_out,traffic_in,ifspeed
05/11/2012 03:05:17 PM - CMDPHP: Poller[0] $data_sources: 2349243366,6755347151,1000000000
05/11/2012 03:05:17 PM - CMDPHP: Poller[0] expression: 14.411371237458,800,*,12.1979,/

traffic_in and traffic_out are counters, so that might be why the first number seems weird (not sure how it came up with a fraction though). But ifSpeed is definitely set to Gauge so I have no idea why it's turning 1000000000 into 12.1979. Digging into this a bit more before giving up because I'm not sure if 0.4.4 will work with Cacti 0.8.8a
Sadus
Posts: 4
Joined: Wed May 24, 2006 7:51 am

Re: Thold 0.4.9 doesn't work correctly in my install

Post by Sadus »

On second thought, I'm going to just go back to using Nagios for these alerts for now, until thold is a bit less buggy and better supported.. Seem to be an awful lot of failed upgrades and unresolved bugs in this subforum with very few developer replies and fixes. This is a great project though, I am looking forward to the day it works as advertised.

Cheers
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests