Thold alerting on an external RRD graph in Cacti
Moderators: Developers, Moderators
Thold alerting on an external RRD graph in Cacti
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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
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.
Do you know why is evaluate more than one time after one polling?
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.
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?// if ($h['status'] != 3) { /*original */
if ($h['status'] != 3 AND $h['id'] != 15) { //Custom version
return;
}
Do you know why is evaluate more than one time after one polling?
Each poller process / thread will call that function for particular hosts it is polling.
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.I'm sorry because you decided to spend your minute sending this message instead of doing this quickly change in the source code...
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Where's that ruler or mine? In wait, now I remember, I had to hide it from my wife.
TheWitness
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?
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?
Who is online
Users browsing this forum: No registered users and 0 guests