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

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Locked
Wunk
Posts: 37
Joined: Fri Mar 05, 2004 8:34 am
Contact:

Post by Wunk »

I have the same issue, the 'Current' value in the thresholds menu stays 0 on various datasources no matter what..

Can this have something to do with the fact that it takes a while for cactid to finish the polling ?, it creates a total of 1900+ graphs on our server..

(btw, this is a Linux server with net-snmp and php 4.3.11)
Jeroen Wunnink
Easyhosting.nl Sysadmin
kslt
Cacti User
Posts: 85
Joined: Tue Aug 02, 2005 4:12 am

Duplicating

Post by kslt »

hello,

after installing the "new" version of thold, i got duplicate menu items (look a attachment).
how i can change it ?
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Duplicating

Post by cigamit »

kslt wrote:hello,

after installing the "new" version of thold, i got duplicate menu items (look a attachment).
how i can change it ?
I assume you are talking about that you have just installed the plugin version, and that originally you had the original modular version? You would need to remove the old version before installing the plugin version, otherwise you basically have 2 versions running at the same time.
kslt
Cacti User
Posts: 85
Joined: Tue Aug 02, 2005 4:12 am

Post by kslt »

how i can do that ?
right for now i have that :
Attachments
1.JPG
1.JPG (6.71 KiB) Viewed 7988 times
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

kslt wrote:how i can do that ?
right for now i have that :
The threshold module has an uninstall script called uninstall.sh. But if you just want to get rid of the menu item, just open up your include/config_array.php and look for this code

Code: Select all

$menu = array(
	"Create" => array(
		"graphs_new.php" => "New Graphs"
		),
	"Management" => array(
		"graphs.php" => array(
			"graphs.php" => "Graph Management",
			"cdef.php" => "CDEFs",
			"color.php" => "Colors",
			"gprint_presets.php" => "GPRINT Presets"
			),
		"tree.php" => "Graph Trees",
		"data_sources.php" => array(
			"data_sources.php" => "Data Sources",
			"rra.php" => "RRAs"
			),
		"host.php" => 'Devices',
		"listthold.php" => 'Thresholds'
		),
	"Collection Methods" => array(
		"data_queries.php" => "Data Queries",
		"data_input.php" => "Data Input Methods"
		),
you will want to remove the line that shows this.

Code: Select all

		"listthold.php" => 'Thresholds'
and save it. That will remove the menu item. The other "Threshold" menu item is added by the plugin and it does so dynamically, so there is no code modifications to remove it.

It is fairly likely that you will run into other problems if you have both versions (new and old) running on the same installation.
crinago
Posts: 17
Joined: Mon Feb 21, 2005 1:36 am

Post by crinago »

Hi,

I've succesfully installed threshold add-on, and I am now able to receive alerts on my e-mail and syslog. I want to be able to send the alarm to another server, which in turn will send an sms message.
How will I accomplish this?? Thanks...
ajl
Posts: 1
Joined: Fri Sep 23, 2005 3:08 am

Post by ajl »

I've succesfully installed threshold add-on, and I am now able to receive alerts on my e-mail and syslog. I want to be able to send the alarm to another server, which in turn will send an sms message.
How will I accomplish this?? Thanks...
We've built this kind of system using a linux box as an email-to-sms gateway. In our case we send the alert as an email which is then converted to an sms message using gnokii (www.gnokii.org). A mobile phone is hooked to the serial port of the server. We use postfix (www.postfix.org) as the email server. From there you'll be able to pipe the incoming mail straight to gnokii. It's simple and works well for our purposes.
edvargas81
Posts: 1
Joined: Fri Sep 23, 2005 12:41 pm
Contact:

Problems with thold2.1a_cacti-0.8.6g

Post by edvargas81 »

Hi

I have installed thold2.1a_cacti-0.8.6g but I have problem with it, when the cron is executed my log shows this:

09-23-05.12:33:25 element: BAQ - COBAQPOP7206x1 - 5 Minute CPU[5min_cpu] alertstat: 0 graph_id: 54 thold_low: 0 thold_hi: 5 rra: 65 trigger: 2 triggerct: 0 current: logset:
09-23-05.12:36:29 element: BAQ - COBAQPOP7206x1 - 5 Minute CPU[5min_cpu] alertstat: 0 graph_id: 54 thold_low: 0 thold_hi: 5 rra: 65 trigger: 2 triggerct: 0 current: logset:
09-23-05.12:36:57 element: BAQ - COBAQPOP7206x1 - 5 Minute CPU[5min_cpu] alertstat: 0 graph_id: 54 thold_low: 0 thold_hi: 5 rra: 65 trigger: 2 triggerct: 0 current: logset:
09-23-05.12:38:24 element: BAQ - COBAQPOP7206x1 - 5 Minute CPU[5min_cpu] alertstat: 0 graph_id: 54 thold_low: 0 thold_hi: 5 rra: 65 trigger: 2 triggerct: 0 current: logset:
09-23-05.12:43:23 element: BAQ - COBAQPOP7206x1 - 5 Minute CPU[5min_cpu] alertstat: 0 graph_id: 54 thold_low: 0 thold_hi: 5 rra: 65 trigger: 2 triggerct: 0 current: logset:

The current value don't show nothing and the thresold don't work because don't have nothing from where take info

who can help me....?

Thnxs
crinago
Posts: 17
Joined: Mon Feb 21, 2005 1:36 am

Post by crinago »

ajl wrote:
I've succesfully installed threshold add-on, and I am now able to receive alerts on my e-mail and syslog. I want to be able to send the alarm to another server, which in turn will send an sms message.
How will I accomplish this?? Thanks...
We've built this kind of system using a linux box as an email-to-sms gateway. In our case we send the alert as an email which is then converted to an sms message using gnokii (www.gnokii.org). A mobile phone is hooked to the serial port of the server. We use postfix (www.postfix.org) as the email server. From there you'll be able to pipe the incoming mail straight to gnokii. It's simple and works well for our purposes.

Hi,

That's great. It's just what I need. Problem is we already have an existing sms gateway running on windows. I don't know if I can use gnokii for that. I am already able to send thru e-mail. Is there a way to use our existing gateway??? Thanks
Hardinxcore
Posts: 7
Joined: Fri Mar 11, 2005 7:11 am

Completely remove thold

Post by Hardinxcore »

I've some problems with my cacti installation with the thold plugin.

(first: Sorry for my bad English)

My server specifications:
Windows server 2003 with IIS 6.0
Cacti version 0.8.6g (upgraded)

Some months ago i've installed the thold plugin but it didn't work good.
I have removed the install (I placed the cacti-backup back) and the Thold tab has removed.

But I want to configure Thold again in my cacti install.

I install it with the Plugin Architecture (http://cactiusers.org/downloads) this finished succesfully. The thold the tab is presented.

Now the problem:
I see some thold's configured (what i month's ago have installed) but i want to completly remove the old install.
If I configure some things in the thold plugin, my graphs didn't be created afther that. And some services on my server crashed.

How can I solve this? How can i completly remove the old Thold settings? Must I clean the MySQL database? How did I do that?

Please help!!
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Completely remove thold

Post by cigamit »

Hardinxcore wrote:I've some problems with my cacti installation with the thold plugin.

(first: Sorry for my bad English)

My server specifications:
Windows server 2003 with IIS 6.0
Cacti version 0.8.6g (upgraded)

Some months ago i've installed the thold plugin but it didn't work good.
I have removed the install (I placed the cacti-backup back) and the Thold tab has removed.

But I want to configure Thold again in my cacti install.

I install it with the Plugin Architecture (http://cactiusers.org/downloads) this finished succesfully. The thold the tab is presented.

Now the problem:
I see some thold's configured (what i month's ago have installed) but i want to completly remove the old install.
If I configure some things in the thold plugin, my graphs didn't be created afther that. And some services on my server crashed.

How can I solve this? How can i completly remove the old Thold settings? Must I clean the MySQL database? How did I do that?

Please help!!
You should remove the appropriate tables in your database.

thold, thold_data, and thold_template

That will remove all the old thold settings.
rik
Posts: 38
Joined: Mon Nov 22, 2004 5:15 am
Location: Zuerich; Switzerland
Contact:

Post by rik »

warnesj wrote:
Current get_current_value() function code in [cacti-root]/lib/thold-fuctions.php,

Code: Select all

function get_current_value($rra, $ds) 

{ 
        global $config; 
        $last_time_entry = rrd_last($rra, "MAX"); 
        $last_needed = $last_time_entry + 900; 

        $result = rrdtool_function_fetch($rra, $last_time_entry, $last_needed); 

        $idx = array_search($ds, $result["data_source_names"]); 
        return 
} 
And changed it to,Code:

Code: Select all

function get_current_value($rra, $ds) 
{ 
        global $config; 
        $last_time_entry = rrd_last($rra, "MAX"); 
        $last_time_entry = $last_time_entry - 100; 
        $last_needed = $last_time_entry + 900; 

        $result = rrdtool_function_fetch($rra, $last_time_entry, $last_needed); 

        $idx = array_search($ds, $result["data_source_names"]); 
        return 
} 
Basically I added $last_time_entry = $last_time_entry - 100; after the rrd_last() function call to decrement the last time the RRA had data stored in it by 100 seconds. This seemed to fix my problem.
This solved my problem showing only "0" in the current value and now everything works...

freebsd in a jail
apache2
mysql4
cacti 0.8.6f
thold for 0.8.6c

thank you
rik
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Re: Completely remove thold

Post by pepj »

Try this scipt or a part of this

regards :P
pepj
Hardinxcore wrote:I've some problems with my cacti installation with the thold plugin.

(first: Sorry for my bad English)

My server specifications:
Windows server 2003 with IIS 6.0
Cacti version 0.8.6g (upgraded)

Some months ago i've installed the thold plugin but it didn't work good.
I have removed the install (I placed the cacti-backup back) and the Thold tab has removed.

But I want to configure Thold again in my cacti install.

I install it with the Plugin Architecture (http://cactiusers.org/downloads) this finished succesfully. The thold the tab is presented.

Now the problem:
I see some thold's configured (what i month's ago have installed) but i want to completly remove the old install.
If I configure some things in the thold plugin, my graphs didn't be created afther that. And some services on my server crashed.

How can I solve this? How can i completly remove the old Thold settings? Must I clean the MySQL database? How did I do that?

Please help!!
Attachments
uninstall-Thold.zip
(1.04 KiB) Downloaded 311 times
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Re: THold 2.1a for Cacti 0.8.6g

Post by torstentfk »

Hello thold-users
cmarsot wrote: ...
You will find as attachement, treshold addon for cacti 0.8.6g.
This archive is only for cacti 0.8.6g under Unix. I have not tested under Win32.

Also include on this archive treshold-sorting patch.
...
Have fun !
as updating my cacti version and thold (cacti 08e to 08g) the thold install.sh told me that the new version does not use the old thold tables and all tholds must be recreated. I have 500 tholds!
----Is there any way to migrate the tables?-------

Greetings
Torsten
routermech
Posts: 2
Joined: Mon Aug 29, 2005 4:39 pm
Location: Colorado
Contact:

Dead Hosts notifications

Post by routermech »

Dead Hosts notifications email’s

When I get the Dead Hosts notification, the email list the IP Address of the dead host. Is it possible to change this to display the Description field? I don’t have a fully qualified domain names in my hostname field, just an IP.

I have 200+- nodes in Cacti and don't have all the IP's memorized... :’(

Host[303]: 66.x.x.x ERROR: HOST EVENT: Host is DOWN Message: Host did not respond to SNMP, Host is Alive

Host[300]: 66.x.x.x ERROR: HOST EVENT: Host is DOWN Message: SNMP not performed due to setting or ping result., UDP ping timed out

-Mike
Locked

Who is online

Users browsing this forum: No registered users and 2 guests