thold: Alert on nan values

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
ralfk
Posts: 26
Joined: Sun Nov 13, 2005 6:51 am
Location: Germany

thold: Alert on nan values

Post by ralfk »

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
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: thold: Alert on nan values

Post by cigamit »

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
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
Posts: 26
Joined: Sun Nov 13, 2005 6:51 am
Location: Germany

Post by ralfk »

An option would be fine per threshold, but how can I disable this behaviour permanently now for all thresholds ? Any quick fix suggested ?

Thanks in advance
Ralf
opornik
Posts: 15
Joined: Thu Apr 13, 2006 8:00 am
Location: Poland/Warsaw

Re: thold: Alert on nan values

Post by opornik »

cigamit wrote:
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
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.
Hi,
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.
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Still in the works, I will try to roll the option in the rewrite I am doing. No promises as other payed projects take priority.
briang
Posts: 17
Joined: Wed Dec 13, 2006 6:44 am
Location: Princeton NJ

Also requesting nan alert filtering...

Post by briang »

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.
Lazybones
Posts: 40
Joined: Wed Aug 23, 2006 9:47 am

Post by Lazybones »

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.
gameone
Posts: 1
Joined: Thu Mar 01, 2007 11:27 pm

Post by gameone »

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
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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 3 guests