Thold 2.x - Thresholding/Alerting module for cacti 8.6
Moderators: Developers, Moderators
-
- Cacti User
- Posts: 52
- Joined: Fri May 06, 2005 7:39 am
- Location: france
- Contact:
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:
Running directly from thold directory:
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.
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?
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?
My thold is working now after reading through all the posts, and change following:
http://forums.cacti.net/download.php?id=2005
and replacing thold-functions.php with patched version (thold-functions.zip) from mmerelles: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.
http://forums.cacti.net/download.php?id=2005
Forum Bugs
Have today some strange problem with the forum - hope that I have not deleted this post
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
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
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
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
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
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
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
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
Embedded graph in thold alam messages
cigamit,
is this already working or has anybody else a solution for this ?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.
- 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
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..
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
| 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
Who is online
Users browsing this forum: No registered users and 3 guests