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

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Locked
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

Hello john le lardon,

I have just deleted all thold file, but no problem to install thold again. :roll:

What about
Plugin Architecture for Cacti and Monitoring Module
from cigamit.

Is this the "better"solution without installing thold ? What solution have you implemented ?
john le lardon
Cacti User
Posts: 52
Joined: Fri May 06, 2005 7:39 am
Location: france
Contact:

Post by john le lardon »

isn't the same view , thold want to alert by email a person , and acrh module want to make easy the implementation of module of cacti.
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

Ok I try it again and use the orginal version of thold 2.1a from adesimone with my Cacti 0.8.6d (just updated to php-4.3.11)

Perhaps I integrate also cigamit plugin addon.....


Now again with thold 2.1a and I still get no Current data's:

cron job output:

Code: Select all

Output from command /usr/local/bin/php /usr/local/httpd/htdocs/cacti/poller.php >/dev/null 2>&1 && /usr/local/bin/php /usr/local/httpd/htdocs/cacti/thold/check-thold.php > /dev/null 2>&1 ..
No output generated


Running directly from thold directory:

Code: Select all

PHP Notice:  Undefined offset:  0 in /usr/local/httpd/htdocs/cacti/lib/thold-functions.php on line 36
PHP Notice:  Undefined offset:  0 in /usr/local/httpd/htdocs/cacti/lib/thold-functions.php on line 36
Last edited by Pumpi on Mon Jun 06, 2005 8:47 am, edited 1 time in total.
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

I have FC3 Cacti0.8.6d and cactid
As a result, how can find latest and stable version of THOLD?
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

Hi TFC,

I've the same problem with thold 2.1a and the version from asm for 0.8.6d on my FC3 server. See my post above.

Perhaps anybody can help us.
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Additionally,
Have you any idea when counter type treshold can be use?
zardoz
Posts: 7
Joined: Fri Jun 03, 2005 9:52 am

Post by zardoz »

What would be REALLY nice, is a user-defined action instead of sending an email.

I would like to be able to run a shell script that sends the Subject of the normal email as an SMS message to my mobile.

I have my linux system set up to be able to send SMS from command line but lack a way to call that command line from the thold code.

Could this please be considered as a future enhancement?
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

My thold is working now after reading through all the posts, and change following:
You are not the only one who sends warnings for HD, I do believe that the particular problem you have is because of the column in thold_data
Code:
thold_hi int(50)

changing this to something like
Code:
thold_hi varchar(100)

should do the trick.

I personally do not have this problem, as I have rewritten the templates and script to also return the HD% as a data source (and to not return floppies, cd-roms, ect...), which allows me to set a threshold on the % of used space. So whenever we hit 90%, it alerts me no matter what size the drive is.
and replacing thold-functions.php with patched version (thold-functions.zip) from mmerelles:

http://forums.cacti.net/download.php?id=2005
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Forum Bugs

Post by Pumpi »

Have today some strange problem with the forum - hope that I have not deleted this post :oops:
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Pumpi hi,
I have fedora core 3
and 0.8.6d
I think we have sam platform.
Can u describe me how to install thold? and if you have latest files, can u send me?
I can give my e-mail, if you accept private message...
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

Hello TFC,

i used the orginal file and installation decription from adesimone

thold2.1a.zip
http://forums.cacti.net/download.php?id=1352

Before this i have patched my Cacti Server with the three official patches for 0.8.6d:
http://www.cacti.net/download_patches.php

Backup your Cacti dir and database first :wink:

After this I have changed the cacti database table thold_data the value
thold_hi int(50) to thold_hi varchar(100) (not sure if really needed)

and finally I changed the thold-functions.php file with the patched version from mmerelles

http://forums.cacti.net/download.php?id=2005

I have also verified my crontab ( I have already added the full path to my php executable).

----------------------------------------------------------------------------------------
I'm using PHP 4.3.11, MSQL 4.1.10 running on a FC3 with kernel version
2.6.10-1.766_FC3smp (SMP), RRDTool 1.2.8, Perl 5.8.5, NET-SNMP 5.2.1
and finaly cmd.php as poller and not cactid - which will be next step

All files/patches can you found in this post, otherwise I can mail you the necessary files.

Pumpi
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

Hello TFC,

i used the orginal file and installation decription from adesimone

thold2.1a.zip
http://forums.cacti.net/download.php?id=1352

Before this i have patched my Cacti Server with the three official patches for 0.8.6d:
http://www.cacti.net/download_patches.php

Backup your Cacti dir and database first :wink:

After this I have changed the cacti database table thold_data the value
thold_hi int(50) to thold_hi varchar(100) (not sure if really needed)

and finally I changed the thold-functions.php file with the patched version from mmerelles

http://forums.cacti.net/download.php?id=2005

I have also verified my crontab ( I have already added the full path to my php executable).

----------------------------------------------------------------------------------------
I'm using PHP 4.3.11, MSQL 4.1.10 running on a FC3 with kernel version
2.6.10-1.766_FC3smp (SMP), RRDTool 1.2.8, Perl 5.8.5, NET-SNMP 5.2.1
and finaly cmd.php as poller and not cactid - which will be next step

All files/patches can you found in this post, otherwise I can mail you the necessary files.

Pumpi
magnetyk
Posts: 34
Joined: Tue May 10, 2005 10:04 am

Post by magnetyk »

Hi,

This is my own graph_thold.php translated in french with some new features (very simples !)

Cya
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Embedded graph in thold alam messages

Post by Pumpi »

cigamit,
Using the class.phpmailer.php, now all graphs are emailed as HTML and have the image embedded into the message, so that you see the actual graph, instead of the current (with the old way, they were genereated on the fly, so if you looked at the email 2 days later, you were not seeing the current data). I am currently working on Custom messages with each threshold, since I would rather I was not paged by our NOC if certain thresholds are breached.
is this already working or has anybody else a solution for this ?
User avatar
mpdsville1
Cacti User
Posts: 71
Joined: Wed Mar 16, 2005 12:11 pm
Location: Albany , NY , USA

Note : Thold 2.1a on 0.8.6d

Post by mpdsville1 »

Note : Thold 2.1a module replaces config_arrays.php with one that
does not contain version information on 0.8.6d.. It only goes up
to 0.8.6c Everything works fine until the NEXT time you need to
import another module you will get an "XML: Cacti version does not exist."
error.. adding "0.8.6d" => "0007" to the new config_arrays.php
clears this up

Actually the install script overwrote several key files. It hurt 0.8.6d
to the point that I backed it out. Patching the files would be a better
way of making changes..
Last edited by mpdsville1 on Thu Jun 09, 2005 12:06 pm, edited 1 time in total.
Mike Donnelly , Albany , NY
| Cacti 0.8.7g | Spine 0.8.7g | MySQL 5.0.77 | Net-SNMP 5.3.2.2 | Apache 2.2.3 | PHP 5.3.3 | RRDtool 1.2.27 | Rhel6 | Dual Xeon E5410@2.33ghz | Sunfire x4150
Locked

Who is online

Users browsing this forum: No registered users and 3 guests