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    


Suggestion for Thold Templates

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Threshold)
Author Message
chadd
Cacti User


Joined: 24 Mar 2005
Posts: 194
Location: Ocoee, Florida

PostPosted: Mon Jan 09, 2006 2:39 pm    Post subject: Suggestion for Thold Templates Reply with quote

Is there any way to make the Thold templates independant from the data source templates?

This would be a great change if it is. My problem is that when I discover a device and create graphs for it, the default data template used for all the "interfaces" discovered is the "interface-traffic" data template. So, I create them all with that (because that is the easiest way to do it), then change all interfaces of a particular speed to their own specific template, then create a thold template, then click the "auto-create thresholds", and whalla - all my tholds are created.. The problem is that I have to do this for every interface type for every device, which is not the biggest problem. The biggest problem is changing that thold later. Say I am alerting on all DS3s at 40mbs, but I want to change all(let's say 800+) DS3 interfaces to alert at 35mbs instead. I would have to click through each one and change each one individually. This is because if I leave the data templates on the specific interface type/speed, and don't change them back to the default "interface-traffic" template, they stop graphing. I know that this is because the graph template then needs to be changed, but that just seems like a lot more work - especially if you did not start you database with the thold plugin, and had hundreds of devices already discovered before you installed the thold plugin..

What I do now, is just do a "find and replace" in the mysql database from the command line, and that works fine - but it seems like there could be a little abstraction put into the way thold templates are used, and it would be just as easy through the GUI. I would propose that adding a column to any number of tables could accomplish this, but what does every one think? Am I the only one that has this problem? Is there an easier way to go about things that I am not seeing? What do you think Cigamit? Thanks for your thoughts.

-chadd.
Back to top
cigamit
Developer


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

PostPosted: Mon Jan 09, 2006 11:52 pm    Post subject: Re: Suggestion for Thold Templates Reply with quote

chadd wrote:
Is there any way to make the Thold templates independant from the data source templates?

This would be a great change if it is. My problem is that when I discover a device and create graphs for it, the default data template used for all the "interfaces" discovered is the "interface-traffic" data template. So, I create them all with that (because that is the easiest way to do it), then change all interfaces of a particular speed to their own specific template, then create a thold template, then click the "auto-create thresholds", and whalla - all my tholds are created.. The problem is that I have to do this for every interface type for every device, which is not the biggest problem. The biggest problem is changing that thold later. Say I am alerting on all DS3s at 40mbs, but I want to change all(let's say 800+) DS3 interfaces to alert at 35mbs instead. I would have to click through each one and change each one individually. This is because if I leave the data templates on the specific interface type/speed, and don't change them back to the default "interface-traffic" template, they stop graphing. I know that this is because the graph template then needs to be changed, but that just seems like a lot more work - especially if you did not start you database with the thold plugin, and had hundreds of devices already discovered before you installed the thold plugin..

What I do now, is just do a "find and replace" in the mysql database from the command line, and that works fine - but it seems like there could be a little abstraction put into the way thold templates are used, and it would be just as easy through the GUI. I would propose that adding a column to any number of tables could accomplish this, but what does every one think? Am I the only one that has this problem? Is there an easier way to go about things that I am not seeing? What do you think Cigamit? Thanks for your thoughts.

-chadd.


I think it would be fairly simple to add a "checkbox" to the threshold template, so when you update the template, it will synch all the associated thresholds back to the template.

I have also thought of adding an option to auto-create thresholds for all devices. This way, you could easily have your 800 hosts, create a template, then after a click and a few warning messages ("Danger Will Robinson!") you would have all your threshold setup and ready to go. The coding would be simple, just takes a bit of time to draft it all out.

Why not file it as a feature request on my bug tracker?
Back to top
chadd
Cacti User


Joined: 24 Mar 2005
Posts: 194
Location: Ocoee, Florida

PostPosted: Tue Jan 10, 2006 8:55 am    Post subject: Reply with quote

Thanks for the reply. I will indeed add that to your "bug tracker" - though it's not really a bug, but a kind request .
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Threshold) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group