Thold 2.x - Thresholding/Alerting module for cacti 8.6

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Locked
chewy009
Posts: 38
Joined: Wed Jun 15, 2005 1:18 pm
Location: Washington State, USA

Post by chewy009 »

OK, I found a workaround for both of my problems. I modified the path pointing to the thold-functions.php in the thold.php and email-test.php to look like this:

("c:/apache2/htdocs/cacti/plugins/thold/thold-functions.php");

rather than:

("plugins/thold/thold-functions.php");

Any ideas why I would have to do this???
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

chewy009 wrote:OK, I found a workaround for both of my problems. I modified the path pointing to the thold-functions.php in the thold.php and email-test.php to look like this:

("c:/apache2/htdocs/cacti/plugins/thold/thold-functions.php");

rather than:

("plugins/thold/thold-functions.php");

Any ideas why I would have to do this???
The only thing I can think of is that for some reason, its not allowing you to chdir, which the plugin does. I know if safe mode is on, this could possibly cause problems, but everything else seems to work for you but locating thold-functions.php.

I will see about putting some safe guards in to work around anyone having this issue.
kslt
Cacti User
Posts: 85
Joined: Tue Aug 02, 2005 4:12 am

Post by kslt »

hello

who knows how i can execute the autocreation action from command line ?
i mean for http://localhost/plugins/thold/thold.ph ... autocreate[/b]&hostid=64

cause if i trying to do that with WGET - i recieve that i not authorised :(

tnks
kslt
Cacti User
Posts: 85
Joined: Tue Aug 02, 2005 4:12 am

Post by kslt »

ok, for auto create i have mad the own script..
but , after adding 3000 thresholds, i got 500 Server Internal Error ..

anybody have ideas ?
kslt
Cacti User
Posts: 85
Joined: Tue Aug 02, 2005 4:12 am

Post by kslt »

my question is how i can make a few pages to display the thresholds ?
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

I CANT GET ANY ALARM
Hi
I install plug-in arch. and thold 2.6
As you see in graph, I set treshold values, Altough traffic util. exceeds the trshold values I dont see any alarm.
I try to set high thold value as 5MB and low thold value as 5K
Can anybody help me?
Last edited by TFC on Thu Dec 29, 2005 4:47 am, edited 1 time in total.
Burnout
Posts: 29
Joined: Mon Nov 28, 2005 8:06 am

Post by Burnout »

I 've got exactly the same problem.

Besides that I get this message when I update and save a treshold:
Notice: Undefined offset: 0 in .../www/.../cacti/plugins/thold/thold.php on line 72

I _never_ receive an alarm status from measured values, only when a host goes offline I receive on. :(
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

TFC wrote:I CANT GET ANY ALARM
Hi
I install plug-in arch. and thold 2.6
As you see in graph, I set treshold values, Altough traffic util. exceeds the trshold values I dont see any alarm.
I try to set high thold value as 5MB and low thold value as 5K
Can anybody help me?
Actually, this is quite easy, you are inputting the data in wrong. There is a CDEF applying to the data before it is outputted to the graph. Look where it says current value on that page, it says 929422. You should divide your 5000000 by 8 and get 625000, that is what you should put in the high threshold.

This is not a threshold issue, its exactly what the script is returning, the graph changes the data to be more readable. Later, thresholds will have the ability to apply CDEFs to the numbers before reporting, but its not the highest thing on my list.

I've thought I fixed the error
Notice: Undefined offset: 0 in .../www/.../cacti/plugins/thold/thold.php on line 72
but I guess its rearing its ugly head again, I'll take another look at it.
kelbyc
Cacti User
Posts: 52
Joined: Mon Nov 28, 2005 8:50 am

Threshold Email Problem

Post by kelbyc »

I have the latest version of thold running on cacti 0.8.6g on a Windows XP machine. Everything is working great except the notifications. It seems that I only get notifications when I have baseline monitoring enabled and baseline notifications enabled. Is it true that baseline must be enabled for high and low threshold triggers to work? My problem is with high and low thresholds. If I set a high threshold and my traffic is high enough to trigger it, it is listed as triggered on the thresholds page but I'm not getting an e-mail notification everytime. I have the trigger set at 1. Does this mean anytime the threshold is broken I will receive a notice or does it have to be above the threshold two times in a row for me to get it? What is strange is that about 25% of the time I get a notification like I should but the rest of the time the high or low threshold is triggered but no e-mail is sent. However, with baseline monitoring anytime they are triggered high or low then I get an e-mail like I should. Any ideas??

One last question, what are the suggested settings for Baseline Reference, Baseline time range and Basline Deviation when monitoring bandwidth use? I'm currently using 86400, 10800 and 25%.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Burnout wrote:Besides that I get this message when I update and save a treshold:
Notice: Undefined offset: 0 in .../www/.../cacti/plugins/thold/thold.php on line 72
Can you check and make sure that your have the table called "tholdset" imported, as the error in question is because either the table is not there, or its empty. The only way it could be empty is if the thold checking has never ran.

If its empty, try running this MySQL query to import a line.

Code: Select all

INSERT INTO tholdset VALUES (1, '2005-02-17 02:20:03');
and see if alerting starts working for you. I will put in some "safety" checks to ensure that this doesn't cause problems in the future.
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

cigamit wrote:
Burnout wrote:Besides that I get this message when I update and save a treshold:
Notice: Undefined offset: 0 in .../www/.../cacti/plugins/thold/thold.php on line 72
Can you check and make sure that your have the table called "tholdset" imported, as the error in question is because either the table is not there, or its empty. The only way it could be empty is if the thold checking has never ran.

If its empty, try running this MySQL query to import a line.

Code: Select all

INSERT INTO tholdset VALUES (1, '2005-02-17 02:20:03');
and see if alerting starts working for you. I will put in some "safety" checks to ensure that this doesn't cause problems in the future.
After this line add, I get mails :)
Thold works now properly.
Now, as a one of the Thold users, I have to say something in the name of others, WE NEED A DOCUMENTATION :)
Burnout
Posts: 29
Joined: Mon Nov 28, 2005 8:06 am

Post by Burnout »

The same story here, it works great now. Where do we have to search the fault? The table was made, but no inserts... maybe that's the fault.
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

I have to clarify in my mind:
1. We have to set thold values as Byte? (I mean I have to divide by 8 my values.)
2. Graphs in the mails and thold management page getting blocky sometimes. Why? (u can see graph below)
My RRD files goes back 2 months for 5 min average. I mean, 5 min average rows 17280 and Timespan 86400. Is this caused the blocy graph? How can we fix?
Attachments
blocky.JPG
blocky.JPG (51.87 KiB) Viewed 6353 times
kanada
Cacti User
Posts: 137
Joined: Sun Aug 28, 2005 12:51 pm

Post by kanada »

I install thold ver. thold2.1a_cacti-0.8.6g and thold2.1-cacti-0.8.6f.. but still have that same problem... when i click to Data Sources -> Template Name / Click for THold on some Source, system show me a error: Fatal error: Cannot redeclare rrd_last() in /var/www/html/cacti/lib/thold-functions.php on line 19


I use cacti0.8.6.g.. test first with thold0.8.6.g, next clean installation with thold0.8.6.f..

Mdk 10.2
php4.8.3
RRDtool 1.0.49

Somebody can help me?
Thanks..

Kanada
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

I have now released v0.2.7 of the Thold Plugin. Here is the changelog.
  • * Fixes for "are you sure you meant month 899" errors
    * Fixes for table tholdset being empty causes poller to not function
    * Resolved issue with Base URL auto generation pointing to the plugin directory
    * Code Cleanup of Threshold Management Page
    * "Instructions" rewording on Threshold Management Page
    * Can now select multiple Thresholds to delete
    * Orphan thresholds are now cleaned up automatically
    * Fixed Guest account access to View Thresholds
Please submit any problems to the Bug Tracker and any new Feature Requests to the forums. You can see the current TODO List to see whether I am already working on something.
Locked

Who is online

Users browsing this forum: No registered users and 0 guests