Thold Behavior Question

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
yousillygoose
Cacti User
Posts: 62
Joined: Fri Sep 23, 2011 2:48 pm

Thold Behavior Question

Post by yousillygoose »

Hey All,

I have a question for how Thold will handle something. Assume you are monitoring a volume 'D' and want to alert if it breaches 90% capacity (Hi/lo threshold).

All is well and good and the device doesn't breach the threshold. Let's assume D is unmounted (for whatever reason). To my knowledge, the datasource will fill with NaNs. When this happens, the threshold may or may not have been breached. Does thold assume all is healthy or will it alert in this situation (it seems that from experience it doesn't alert).

The problem we have is that datasources break occasionally that we assume we are alerting on. We have a very large cacti environment so it isn't possible to manually monitor the datasources.

So, long story short: if a datasource is storing NaN's and thold is doing a Hi/Low threshold- will it alert?

If not, is there a solution? I imagine a script would need to be written that goes through all datasources that have an associated threshold that is enabled to ensure that in the past 'x' time period the datasource had a value.

Thanks for the help.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Thold Behavior Question

Post by TheWitness »

I would first look at the HMIB plugin, and then write some extension to perform some key checks. The problem is that volumes come and go, especially NFS. So its a bit tricky to do things en mass.

Second option is to have thold option to alarm on nan.
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?
yousillygoose
Cacti User
Posts: 62
Joined: Fri Sep 23, 2011 2:48 pm

Re: Thold Behavior Question

Post by yousillygoose »

Hmm- I was unaware that you can make 2 different thresholds for the same datasource. How do you alert if the value is NaN? Is there an exactly value you can compare against (I imagine using "NaN" probably doesn't work) or is there an RPN perhaps?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Thold Behavior Question

Post by TheWitness »

Boy, Androids auto correct can slaughter a typed message. You might want to read my message again. Have to stop using Android....
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?
Hanseat
Posts: 17
Joined: Thu Sep 27, 2012 5:24 am

Re: Thold Behavior Question

Post by Hanseat »

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests