Thold on externally updated graph

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
erictioh
Posts: 2
Joined: Tue Oct 11, 2011 4:42 am

Thold on externally updated graph

Post by erictioh »

Hi i have an externally update data source (rrd) and i have import it to graph using cacti, everything works good (where graph can be updated nicely.

However when i try to create a threshold using thold, it can be created but it just doesn't work, i mean it doesn't being triggered (Because it depends on polling interval, but you know externally updated data source doesn't have polling activated). Anyone have same scenario as mine but get it work properly ?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Thold on externally updated graph

Post by TheWitness »

This is not presently supported.
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?
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Thold on externally updated graph

Post by noname »

Just considering..

(I guess) Its mechanisms:

1) If you added threshold for your external RRD, given datasource will be registered into poller's table (poller_item) and array ($rrd_update_array[])

2) But Cacti poller doesn't update such a (external) datasource
- http://forums.cacti.net/viewtopic.php?f=17&t=32438

3) So the datasource won't be registered to the list of candidate ($rrd_update_array_reindexed[]) for verifying by thold plugin
(See thold_poller_output() in 'plugins/thold/includes/polling.php')

4) Current status of the threshold won't be updated unless the datasource is not registered to the candidate list

So, if we could force to register the external datasource into $rrd_update_array_reindexed[] array, perhaps we can use threshold triggering for external RRD..
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Thold on externally updated graph

Post by TheWitness »

noname wrote:Just considering..

(I guess) Its mechanisms:

1) If you added threshold for your external RRD, given datasource will be registered into poller's table (poller_item) and array ($rrd_update_array[])

2) But Cacti poller doesn't update such a (external) datasource
- http://forums.cacti.net/viewtopic.php?f=17&t=32438

3) So the datasource won't be registered to the list of candidate ($rrd_update_array_reindexed[]) for verifying by thold plugin
(See thold_poller_output() in 'plugins/thold/includes/polling.php')

4) Current status of the threshold won't be updated unless the datasource is not registered to the candidate list

So, if we could force to register the external datasource into $rrd_update_array_reindexed[] array, perhaps we can use threshold triggering for external RRD..
Noname, we have to discuss you obsession with the source code. I'm going to make you a dev I think :)
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?
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Thold on externally updated graph

Post by noname »

>> Noname, we have to discuss you obsession with the source code. I'm going to make you a dev I think :)

Oh! that's a bad joke! :D
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Thold on externally updated graph

Post by TheWitness »

Ah, you got it then. Keep up the good work! :)
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 2 guests