Changing THOLD Template does not propagate

Support questions about the Threshold plugin

Moderators: Developers, Moderators

User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Changing THOLD Template does not propagate

Post by gandalf »

I created a simple Traffic In Threshold Template.
I activated it by auto-creating threshold for several devices, one by one.
As expected, the thresholds triggered, so I verified they are working fine.
As an example, I changed the upper threshold in the threshold template. But this chnage was not propagated to those threshold definitions created by the original threshold template.

Are changes on Threshold Templates not propagated? Are those templates for first time use only? Implementation issue or design issue? Am I talking about sth everyone supposes to be weird stuff?

Reinhard
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

I had the same question, and in my workings with it, i believe it is for initial creation only. This is a good thing, and a bad thing i guess. I like it because it means that i can set a general threshold for drive space of say 90%, but i have some systems, that i know generally run in the 93% range or so, and i can manually change those individual thresholds to match what i need.

It would be nice, if there was a way, say looking at the Thresholds from within the console page, that there was a dropdown that said maybe Reapply Threshold Defaults.

Just a thought.

Great programs.

app

Back to looking at my Cactid problems...

:cry:
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

This is in the works :)

You will be able to set it per threshold, so you can have the changes propagate back on some thresholds but not others you want to customize.
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

I have now added this to SVN. Enjoy!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I can confirm, thanks Jimmy!
To all: this works only for NEW thresholds
Reinhard
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Does the checkbox for propagation work for you when on an old threshold? It should be disabled and not usable.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

No, it does not work. When checked and saved, it jumps back to unchecked. I worried about this behaviour at first.
Reinhard
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

What browser are you using? The simple javascript I have works in Firefox, but I haven't tested in anything else as of yet.
tekbot
Posts: 49
Joined: Tue Jun 07, 2005 7:42 pm
Location: Venice, CA

Post by tekbot »

Guys, this thread seems pretty old, however, I'm using the very latest tholds under cacti 0.8.7b and I'm having the same issue (and a second issue i'll post about here as well).

1. I applied a Traffic_In and Traffic_Out Baseline thold to all devices in my network. I went back and changed the percentages on the BL Deviation in the template, but found that none of those changes propagated to these devices. I have a *very large* cacti infrastructure, so it's difficult for me to recreate all these tholds manually. I ended up running a mysql update command that changed the values on the tholds for the BL PCT.

2. I've found that after setting a non-NULL value to a thold template, I can not unset that value. In other words, for my BL_PCT down, I had initially set that to 30%. I then decided that I'd rather know high traffic users that might be hitting my routers too hard, and I don't really care (for these devices) if I go Below a baseline. So, I tried to unset this value, but every time I save and go back in, it shows me my old value (30%). I know that THOLD can accept a NULL Value, but it doesn't seem to be saving it. The best I can do is set it to 0, However, I'm still getting baselines for network devices that are going Below their thold (which should never happen in this configuration).

What would be the best way to set all BL_PCT Down values to NULL for all devices using this template?

(I'm sure I sound like I'm complaining, but I really love cacti and the thold plugin!)

Thanks,
tekbot.
tekbot
Posts: 49
Joined: Tue Jun 07, 2005 7:42 pm
Location: Venice, CA

Post by tekbot »

*BUMP*

Can anyone help me out with these issues with THOLD?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

I've been extending thold's template stuff for my own installation... I'm pretty sure that changes to the template get picked up by the existing thlds. In fact, my mods are to allow for multiple templates against the same DS, and I wouldn't have bothered starting it if it didn't do that!
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
tekbot
Posts: 49
Joined: Tue Jun 07, 2005 7:42 pm
Location: Venice, CA

Post by tekbot »

Howie,
I appreciate that it works well for you now that you've made your own modifications, unfortunately, that doesn't help me at all. I need to ensure that I can easily change a thold template and have those changes propagate to all of the devices it's applied to. This is for Baseline Reference, Contact groups, and high/low thresholds.

What's really strange about all of this, is, the older versions of thold seemed a lot easier to administer. The global disabling of alerting/notifications was easy, and template propagation used to work. Cigamit, is there a new version on the way that addresses any of these issues? Is there somewhere that I could download the older versions of thold since they seem to work better for my own use? If so, which would work best under the 0.8.7a and relevant PIA?

As always, any help provided is greatly appreciated.

Thanks,
tekbot
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

tekbot wrote:Howie,
I appreciate that it works well for you now that you've made your own modifications
No, I said it worked, and THEN I made modifications to make it more useful to me. My point was that I would not have bothered with my mods if the templates hadn't worked in the first place, because what I wanted was not only inheriting from templates but from a template of my choice.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
tekbot
Posts: 49
Joined: Tue Jun 07, 2005 7:42 pm
Location: Venice, CA

Post by tekbot »

Fine, we'll call it my misunderstanding.

Be that as it may, I still have the issue. My Threshold changes to existing / applied templates do not propagate. So, my question stands: Can anyone help me with this, or provide me a link to a working version of the app? cactiusers only has the newest version available.

Any help is appreciated.

Thanks,
tekbot
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Existing thresholds will not propagate back from the templates. You have to create it off the template for it to know where it came from. What version are you running as I can't seem to reproduce any of the other issues.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests