Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Changing THOLD Template does not propagate
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Threshold)
Author Message
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Fri May 18, 2007 11:18 am    Post subject: Changing THOLD Template does not propagate Reply with quote

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
Back to top
apperrault
Cacti User


Joined: 16 Feb 2007
Posts: 354
Location: Emeryville, CA

PostPosted: Fri May 18, 2007 11:23 am    Post subject: Reply with quote

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...

Back to top
cigamit
Developer


Joined: 07 Apr 2005
Posts: 946
Location: B/CS Texas

PostPosted: Fri Jun 01, 2007 7:11 pm    Post subject: Reply with quote

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.
Back to top
cigamit
Developer


Joined: 07 Apr 2005
Posts: 946
Location: B/CS Texas

PostPosted: Fri Jun 01, 2007 9:08 pm    Post subject: Reply with quote

I have now added this to SVN. Enjoy!
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Sun Jun 03, 2007 5:16 pm    Post subject: Reply with quote

I can confirm, thanks Jimmy!
To all: this works only for NEW thresholds
Reinhard
Back to top
cigamit
Developer


Joined: 07 Apr 2005
Posts: 946
Location: B/CS Texas

PostPosted: Mon Jun 04, 2007 12:18 am    Post subject: Reply with quote

Does the checkbox for propagation work for you when on an old threshold? It should be disabled and not usable.
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Mon Jun 04, 2007 11:48 am    Post subject: Reply with quote

No, it does not work. When checked and saved, it jumps back to unchecked. I worried about this behaviour at first.
Reinhard
Back to top
cigamit
Developer


Joined: 07 Apr 2005
Posts: 946
Location: B/CS Texas

PostPosted: Mon Jun 04, 2007 1:14 pm    Post subject: Reply with quote

What browser are you using? The simple javascript I have works in Firefox, but I haven't tested in anything else as of yet.
Back to top
tekbot



Joined: 07 Jun 2005
Posts: 45
Location: Venice, CA

PostPosted: Wed Feb 27, 2008 8:42 am    Post subject: Reply with quote

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.
Back to top
tekbot



Joined: 07 Jun 2005
Posts: 45
Location: Venice, CA

PostPosted: Wed Mar 05, 2008 1:22 pm    Post subject: Reply with quote

*BUMP*

Can anyone help me out with these issues with THOLD?
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Wed Mar 05, 2008 6:21 pm    Post subject: Reply with quote

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!
Back to top
tekbot



Joined: 07 Jun 2005
Posts: 45
Location: Venice, CA

PostPosted: Mon Mar 10, 2008 12:21 pm    Post subject: Reply with quote

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
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Mon Mar 10, 2008 12:33 pm    Post subject: Reply with quote

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.
Back to top
tekbot



Joined: 07 Jun 2005
Posts: 45
Location: Venice, CA

PostPosted: Mon Mar 10, 2008 2:32 pm    Post subject: Reply with quote

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
Back to top
cigamit
Developer


Joined: 07 Apr 2005
Posts: 946
Location: B/CS Texas

PostPosted: Mon May 26, 2008 9:37 pm    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Threshold) All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group