thold plugin 0.4.6 screenshots

Support questions about the Threshold plugin

Moderators: Developers, Moderators

skatter
Cacti User
Posts: 153
Joined: Fri Oct 22, 2004 2:55 am
Contact:

Re: thold plugin 0.4.6 screenshots

Post by skatter »

TheWitness wrote:Update to 0.4.8-2. There was a conflict with weathermap.
Downloaded http://docs.cacti.net/_media/plugin:thold-v0.4.8-2.tgz, deinstalled 0.4.8-1, re-installed 0.4.8-2 with the same results as before. No MySQL tables are created, and the same errors are generated in my apache error log.

I can confirm that installing/uninstalling Mac Track from PIA adds/deletes tables to the cacti DB, so I'm not sure what is being done differently in thold.

Code: Select all

| mac_track_aggregated_ports   |
| mac_track_approved_macs      |
| mac_track_device_types       |
| mac_track_devices            |
| mac_track_interfaces         |
| mac_track_ip_ranges          |
| mac_track_ips                |
| mac_track_macauth            |
| mac_track_macwatch           |
| mac_track_oui_database       |
| mac_track_ports              |
| mac_track_processes          |
| mac_track_scan_dates         |
| mac_track_scanning_functions |
| mac_track_sites              |
| mac_track_snmp               |
| mac_track_snmp_items         |
| mac_track_temp_ports         |
| mac_track_vlans              |
skatter
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: thold plugin 0.4.6 screenshots

Post by TheWitness »

Weird. Dump you db and pm it to me.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
pmacct
Posts: 20
Joined: Fri Apr 08, 2011 9:37 am

Re: thold plugin 0.4.6 screenshots

Post by pmacct »

Same issue here with 0.4.8-3 on cacti 0.8.7g with all official patches running on php 5.3.6 and mysql 5.5.15. Did you successfully isolated the issue ?
skatter
Cacti User
Posts: 153
Joined: Fri Oct 22, 2004 2:55 am
Contact:

Re: thold plugin 0.4.6 screenshots

Post by skatter »

pmacct wrote:Same issue here with 0.4.8-3 on cacti 0.8.7g with all official patches running on php 5.3.6 and mysql 5.5.15. Did you successfully isolated the issue ?
No, the issue remains.
skatter
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: thold plugin 0.4.6 screenshots

Post by TheWitness »

There is something definitely wrong with your install then. I can't help you I guess.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
uhtred
Cacti User
Posts: 121
Joined: Fri Oct 09, 2009 8:59 am
Location: Germany

Re: thold plugin 0.4.6 screenshots

Post by uhtred »

Hi,

1. i got an error in my apache log, if i click 'View Graph' of a Threshold at Thresholds Tab
[Thu Oct 27 13:03:00 2011] [error] [client 172.20.254.225] PHP Notice: Uninitialized string offset: 1 in /var/www/cacti/lib/functions.php on line 1806, referer: http://172.20.1.95/cacti/plugins/thold/ ... 30&filter=
2. Triggering doesn't work for High/Low Type
value is at 2 & alert setting is 2 --> not Triggered
Bug or wrong settings?
Attachments
--> 2. problem - my settings
--> 2. problem - my settings
bug2.png (43.99 KiB) Viewed 3674 times
--> 2.problem
--> 2.problem
bug1.png (22.05 KiB) Viewed 3674 times
System: Ubuntu 10.04lts@64bit, 2*X5650, 12GB, Cacti 0.8.7g, Spine 0.8.7g, PA2.9, Weathermap 0.97a, CAMM 1.6.75, monitor 1.3.1, realtime 0.43, thold 0.4.9.3, manage 0.6.2, mactrack 2.9(.1) ---- 508 devices, 6741 items, 4263 ds, time 7.01s, intervall 60, proc. 12, threads 14, php server 8
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: thold plugin 0.4.6 screenshots

Post by TheWitness »

It has to be above '2'.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
skatter
Cacti User
Posts: 153
Joined: Fri Oct 22, 2004 2:55 am
Contact:

Re: thold plugin 0.4.6 screenshots

Post by skatter »

TheWitness wrote:There is something definitely wrong with your install then. I can't help you I guess.
Well, if I could manually create the thold tables (thold.sql), or debug why the tables aren't being created through the PIA install method, that would be a start.

Are the above options not possible?
skatter
uhtred
Cacti User
Posts: 121
Joined: Fri Oct 09, 2009 8:59 am
Location: Germany

Re: thold plugin 0.4.6 screenshots

Post by uhtred »

Hi,

with my settings i dont get any restoral events via mail.
Attachments
bug1.png
bug1.png (46.41 KiB) Viewed 3639 times
System: Ubuntu 10.04lts@64bit, 2*X5650, 12GB, Cacti 0.8.7g, Spine 0.8.7g, PA2.9, Weathermap 0.97a, CAMM 1.6.75, monitor 1.3.1, realtime 0.43, thold 0.4.9.3, manage 0.6.2, mactrack 2.9(.1) ---- 508 devices, 6741 items, 4263 ds, time 7.01s, intervall 60, proc. 12, threads 14, php server 8
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: thold plugin 0.4.6 screenshots

Post by TheWitness »

What does the log look like for the thold in question?
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
uhtred
Cacti User
Posts: 121
Joined: Fri Oct 09, 2009 8:59 am
Location: Germany

Re: thold plugin 0.4.6 screenshots

Post by uhtred »

log i.e.:
11/02/2011 03:13:18 PM - THOLD: Threshold Breached ID: 379 DataTemplate: Interface - Status DataSource: intf_1min_status Type: Time Based Enabled: on Current: 2 High: 1.9 Low: Trigger: 1 Time: 10 Minutes Warning High: 1.9 Warning Low: Warning Trigger: 1 Warning Time: 10 Minutes SentTo: me@you.com

11/02/2011 03:24:07 PM - THOLD: Threshold Breached ID: 379 DataTemplate: Interface - Status DataSource: intf_1min_status Type: Time Based Enabled: on Current: 1 High: 1.9 Low: Trigger: 1 Time: 10 Minutes Warning High: 1.9 Warning Low: Warning Trigger: 1 Warning Time: 10 Minutes SentTo:
System: Ubuntu 10.04lts@64bit, 2*X5650, 12GB, Cacti 0.8.7g, Spine 0.8.7g, PA2.9, Weathermap 0.97a, CAMM 1.6.75, monitor 1.3.1, realtime 0.43, thold 0.4.9.3, manage 0.6.2, mactrack 2.9(.1) ---- 508 devices, 6741 items, 4263 ds, time 7.01s, intervall 60, proc. 12, threads 14, php server 8
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: thold plugin 0.4.6 screenshots

Post by TheWitness »

Thold log, not Cacti log.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
uhtred
Cacti User
Posts: 121
Joined: Fri Oct 09, 2009 8:59 am
Location: Germany

Re: thold plugin 0.4.6 screenshots

Post by uhtred »

sry
Attachments
bug1.png
bug1.png (5.47 KiB) Viewed 3632 times
System: Ubuntu 10.04lts@64bit, 2*X5650, 12GB, Cacti 0.8.7g, Spine 0.8.7g, PA2.9, Weathermap 0.97a, CAMM 1.6.75, monitor 1.3.1, realtime 0.43, thold 0.4.9.3, manage 0.6.2, mactrack 2.9(.1) ---- 508 devices, 6741 items, 4263 ds, time 7.01s, intervall 60, proc. 12, threads 14, php server 8
pmacct
Posts: 20
Joined: Fri Apr 08, 2011 9:37 am

Re: thold plugin 0.4.6 screenshots

Post by pmacct »

TheWitness wrote:There is something definitely wrong with your install then. I can't help you I guess.
The issue was caused because the use of TYPE = MyISAM is deprecated and obsolete in mysql 5.5.15. Instead the ENGINE keyword should be used. Thold was using the api_plugin_db_table_create function, which is declared in lib/plugins.php. I had to replace line 181 from lib/plugins.php :

$sql .= ') TYPE = ' . $data['type'];

with

$sql .= ') ENGINE = ' . $data['type'];


It seems to work fine now. Thanks for this wonderfull plugin.

This issue is affecting all the plugins that use the api_plugin_db_table_create function, maybe there should be a patch applied for this. I'm using version 0.8.7g with all official patches, I don't know if this was changed in the latest 0.8.7h.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: thold plugin 0.4.6 screenshots

Post by TheWitness »

It's more of MySQL issue by deprecating something for no good reason ;)
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests