Thold alerting on an external RRD graph in Cacti

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
ilabt
Posts: 2
Joined: Wed May 06, 2009 7:59 am

Thold alerting on an external RRD graph in Cacti

Post by ilabt »

We are running Cacti 0.8.6j & Thold 0.3.5 on RedHat ES 4. Is it possible to alert on threshold vioaltions for an external RRD graph in Cacti?

THOLD alerts are working fine for all the graphs being polled by CACTI directly.

I have 1 graph that CACTI doesn't poll but is based on an external RRD file. Cacti is graphing the values correctly & I've set up THOLD HI threshold for this data. The current value for this graph alone under thold is always empty. Is it possible to alert in THOLD for a non-CACTI polled graph?
istein001
Cacti User
Posts: 54
Joined: Fri Feb 22, 2008 4:44 pm
Location: Houston

Post by istein001 »

subscribing... currently building external RRD data source for the same reason.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Not, Thold does not work with external RRDs. Thold does things the Cacti way. You could hack something up fairly easily (populate new current value in the table, include and call the check function) but thats not something I ever plan on supporting.
galco
Cacti User
Posts: 63
Joined: Fri Aug 03, 2007 3:09 am
Location: Barcelona, Catalunya

Post by galco »

Same problem. I also would be interested in this feature. Is there any hack to solve that?

Thanks!
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Likely a feature request. If I did not have like 15 different things on my plate, I would do it in a NY Minute. However, I constantly have multiple Monkey's on my back.

TheWitness
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?
galco
Cacti User
Posts: 63
Joined: Fri Aug 03, 2007 3:09 am
Location: Barcelona, Catalunya

Post by galco »

Hi,

I'm sorry because you decided to spend your minute sending this message instead of doing this quickly change in the source code... Anyway, I tried to understand where and what to modify but I couldn't. I think I've been near the solution but I didn't do anything because I only have the production environment.

I've tried to modify the function thold_poller_output ($rrd_update_array) from thold/includes/polling.php because I thought that this function only was called one time every polling. But then I discovered I was wrong and this function was called more than one time, why?

If this function was called just one time then I only would modify the:
function thold_check_threshold ($rra_id, $data_id, $name, $currentval, $cdef) {

just allowing to evaluate all the host that aren't disabled (3) and my disabled host.

// if ($h['status'] != 3) { /*original */
if ($h['status'] != 3 AND $h['id'] != 15) { //Custom version
return;
}
But if the function thold_poller_output is called more than one time I'm going to check the thresholds from this host more than one time in every polling and I'm going to receive more than one mail isn't it?

Do you know why is evaluate more than one time after one polling?
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Each poller process / thread will call that function for particular hosts it is polling.
I'm sorry because you decided to spend your minute sending this message instead of doing this quickly change in the source code...
I'm sorry that you decided to spend your minute sending this message asking for help on something that I said I will not change.
galco
Cacti User
Posts: 63
Joined: Fri Aug 03, 2007 3:09 am
Location: Barcelona, Catalunya

Post by galco »

Yes, I was looking for some kind of help... Thank you for your short explanation.

Now I understand why you decided to do things at the Cacti way... break the rules is not easy.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Where's that ruler or mine? In wait, now I remember, I had to hide it from my wife. :)

TheWitness
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 0 guests