plugin_thold icon indicating copy to clipboard operation
plugin_thold copied to clipboard

Creating threshold from template

Open chris-y opened this issue 5 years ago • 8 comments

Describe the bug Since upgrading Cacti from 1.1 to 1.2.10 and Thold to 1.4/latest HEAD it does not appear to be possible to create a threshold from a template.

To Reproduce Steps to reproduce the behavior:

  1. Go to the graph trees and locate a graph to create a threshold against
  2. Click on "create threshold"
  3. The screen only gives an option of creating a non-templated threshold. Fiddling with the top option can force it to create a threshold template but this then tries to create graphs as well so doesn't allow to create a new threshold against an existing graph.

Expected behavior The "create threshold" screen should give an option of selecting a threshold template for the current graph.

Screenshots This is the screen which appears: image It only allows to create a non-templated threshold.

Plugin (please complete the following information):

  • Version: 1.4/HEAD
  • Source: github
  • Identifer: efe24be

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Edge Chromium
  • Version: 85.0.564.68

Additional context It's quite likely I'm doing something wrong! I have not tried creating a new template, because it doesn't appear to allow that either without creating a graph along with it.

To clarify, I'm trying to create a threshold from an existing template which was created against that graph type. I'm not (currently) trying to create a new template.

chris-y avatar Oct 14 '20 09:10 chris-y

"Auto-create thresholds" doesn't find anything to create either. Either No Templates or Threshold(s) Already Exists - No Thresholds were created.

chris-y avatar Oct 19 '20 15:10 chris-y

First, this is not the way to create a threshold from a Template, unless the graph does not exist.

image

The right way is by highlighting the existing graphs and then create from Template as below.

image

I'm pretty sure it's working just fine.

TheWitness avatar Oct 28 '20 14:10 TheWitness

I was clicking on the icon to the right of an already-created graph (recently changed to a spanner). This is how I have been creating thresholds from templates for many years! image

Your method is working fine and is arguably easier, thank you.

What is the purpose of the button next to the graph, as it no longer appears to do anything useful?

chris-y avatar Oct 28 '20 15:10 chris-y

Well, that is a good point. It was really designed for non-templated thresholds. Let me give it some thought. I'm trying to get 1.5 ready to go out the door today.

TheWitness avatar Oct 28 '20 15:10 TheWitness

I'm going to make this an enhancement request. I know technically it's kind of not in a sense. When we added the ability to create from a threshold template options, we never expected this path to be taken. But due to the other constraints, timing chief among them, I'm going to hold off on a 1.5 fix for this.

TheWitness avatar Oct 28 '20 15:10 TheWitness

https://github.com/Cacti/plugin_thold/issues/451#issuecomment-717965313 This is not work 1.2.15 Altough I have graph , when I select graph and create thold from template I get popup: Sorry, we could not process your last action. No Threshold(s) Created. Threshold(s) Template not found.

tceydeliler avatar Dec 10 '20 08:12 tceydeliler

I have the same problem here with latest plugin and latest cacti.

anarkia1976 avatar Dec 11 '20 08:12 anarkia1976

Create the Graph first, then you can create the Thold from the Graph interface from the Dropdown area. I'm not going to be fixing this any time soon. If you want it fixed, you will have to write a pull request.

TheWitness avatar Dec 12 '20 17:12 TheWitness

This is resolved now.

TheWitness avatar Jul 22 '23 18:07 TheWitness