Can special fields be entered in thold?

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
sacoo
Posts: 14
Joined: Fri Mar 30, 2007 2:22 am

Can special fields be entered in thold?

Post by sacoo »

In my graphs, I use this title
|host_description| - |query_ifName| - |query_ifAlias|
that is translated to something like
server_name - eth1 - description
Can the same effect be achieved by thresholds? Whatever I set between | character just gets ignored.
Thanks,

Joan
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Can special fields be entered in thold?

Post by TheWitness »

If you setup the pattern in your Threshold Template, and you use 0.4.9++, yes.

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?
sacoo
Posts: 14
Joined: Fri Mar 30, 2007 2:22 am

Re: Can special fields be entered in thold?

Post by sacoo »

Hi, I am using 0.4.9.3 with Version 0.8.7i and at least for me it doesn't work.

I'm setting the name in the threshold template as:

Code: Select all

|host_description| - |query_ifName| - |query_ifAlias|
I create a new threshold for a interface that has a text, the graph with the same name template is:

Code: Select all

sw-giga - Gi1/0/24 - Description
In the threshold I can only see

Code: Select all

sw-giga - Traffic - Gi1/0/24 [traffic_in]
I do have "Template Propagation Enabled" checked
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Can special fields be entered in thold?

Post by TheWitness »

Apply the changes from Thold version 2036 to your environment. Then, for existing Tholds, you can Re-Apply Suggested Names. Also test on a new threshold. It appears that only one of multiple cases was covered in the prior patch. Please send feedback.

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?
sacoo
Posts: 14
Joined: Fri Mar 30, 2007 2:22 am

Re: Can special fields be entered in thold?

Post by sacoo »

TheWitness wrote:Apply the changes from Thold version 2036 to your environment. Then, for existing Tholds, you can Re-Apply Suggested Names. Also test on a new threshold. It appears that only one of multiple cases was covered in the prior patch. Please send feedback.
TheWitness
It works as expected for the new templates with r2036, but for the old templates I still don't know how to reapply the templates for the ones not working.
To reapply the template I tried enabling and disabling the "Template Propagation Enabled" and it doesn't change, there's also no difference when changin the threshold templates.
sacoo
Posts: 14
Joined: Fri Mar 30, 2007 2:22 am

Re: Can special fields be entered in thold?

Post by sacoo »

Good morning,

Were you able to reproduce the problem with existing templates? I'd rather prefer not deleting the existing templates to keep the history.
sacoo
Posts: 14
Joined: Fri Mar 30, 2007 2:22 am

Re: Can special fields be entered in thold?

Post by sacoo »

I just recreated the templates (after upgrading to r2049) and almost everything seems to work.

The only problem I found so far is that I cannot create thresholds for the aggregated graphs.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests