thold: Alert on nan values
Moderators: Developers, Moderators
thold: Alert on nan values
Hi,
I have setup a Low Threshold in thold, let's say to 100. It works so far. But the alarm does also occur if recent data in RRDtool is a nan value. How can I fix thold not to create alerts if nan values are fetched from RRDtool ?
I have installed Cacti 0.8.6g, thold 0.2.6 and RRDtool 1.2.11.
Cheers
Ralf
I have setup a Low Threshold in thold, let's say to 100. It works so far. But the alarm does also occur if recent data in RRDtool is a nan value. How can I fix thold not to create alerts if nan values are fetched from RRDtool ?
I have installed Cacti 0.8.6g, thold 0.2.6 and RRDtool 1.2.11.
Cheers
Ralf
Re: thold: Alert on nan values
I have noticed this also, and will probably add an option to disable it per threshold. There are certain times when you want it to alert, for instance, I found that the windows services return NAN when they are stopped, instead of 0.ralfk wrote:Hi,
I have setup a Low Threshold in thold, let's say to 100. It works so far. But the alarm does also occur if recent data in RRDtool is a nan value. How can I fix thold not to create alerts if nan values are fetched from RRDtool ?
I have installed Cacti 0.8.6g, thold 0.2.6 and RRDtool 1.2.11.
Cheers
Ralf
Re: thold: Alert on nan values
Hi,cigamit wrote:I have noticed this also, and will probably add an option to disable it per threshold. There are certain times when you want it to alert, for instance, I found that the windows services return NAN when they are stopped, instead of 0.ralfk wrote:Hi,
I have setup a Low Threshold in thold, let's say to 100. It works so far. But the alarm does also occur if recent data in RRDtool is a nan value. How can I fix thold not to create alerts if nan values are fetched from RRDtool ?
I have installed Cacti 0.8.6g, thold 0.2.6 and RRDtool 1.2.11.
Cheers
Ralf
Does anyone have solution for this? I started using thold v 3 and it still doesn't have the option to disable alerting in case of NAN values.
Also requesting nan alert filtering...
I'm also eagerly awaiting the ability to supress the alerts generated by nan values....
A few times our cacti server has had a problem with utilization which in turn effects the poller. As a result we get a number of nan entries resulting in false alerts.
A few times our cacti server has had a problem with utilization which in turn effects the poller. As a result we get a number of nan entries resulting in false alerts.
Lazybones wrote:Hmm maybe a simple solution would be to convert all Nan values (in threshold only) to -1.
Then setting a low threshold of 0 WOULD alert you of Nan where as setting no low threshold would not.
This would be a problem however if you needed a low threshold value and you didn't want to count Nan.
how to convert the NAN to -1?
I am facing this nan problem for low thershold alert
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
In poller.php or lib/poller.php when you encounter a "U", change to "-1" prior to transferring the contents to the THold plugin.
In the current version of THold, that takes place at the very end. However, this may not be a good solution. I would still recommend waiting on Jimmy. However, if you don't have any graphs that go negative, it should be a quick hack.
If that's not comfortable, then you might want to consider modifying cmd.php or cactid. However, this will break spike prevention in Cacti for counters.
TheWitness
In the current version of THold, that takes place at the very end. However, this may not be a good solution. I would still recommend waiting on Jimmy. However, if you don't have any graphs that go negative, it should be a quick hack.
If that's not comfortable, then you might want to consider modifying cmd.php or cactid. However, this will break spike prevention in Cacti for counters.
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 2 guests