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    


Host multi-template

 
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests
Author Message
IlPini



Joined: 05 Jun 2008
Posts: 25
Location: Rome, Italy

PostPosted: Sat Jul 05, 2008 11:33 am    Post subject: Host multi-template Reply with quote

I'd like a way to apply multiple host templates to a single device.

Say...
a Dell PowerEdge 2850 with Linux
the same Dell PowerEdge 2850 with Linux *and* Squid
the same Dell PowerEdge 2850 with Windows Server 2003
the same Dell PowerEdge 2850 with Windows Server 2003 *and* net-snmp
the same Dell PowerEdge 2850 with Windows Server 2003 *and* net-snmp *and* Java
the same Dell PowerEdge 2850 with AmigaOS

Apply the basic hardware template, then apply whichever OS template you need, then apply whichever application template you need, maybe multiple times... Something like that.

That way, if you later update the PE 2850 template, you don't need to update your six other templates based on the same hardware.

If you move your entire software system to different hardware, you keep the software template and swap the hardware template.

If you install an SNMP-enabled application on an existing device, you just have to add the application's template.
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Sat Jul 05, 2008 12:10 pm    Post subject: Reply with quote

Why not just make your own custom Host Templates and add in the templates that you need?

You're not locked into the host templates that are provided, they're more of guidelines to get you started.
Back to top
IlPini



Joined: 05 Jun 2008
Posts: 25
Location: Rome, Italy

PostPosted: Sat Jul 05, 2008 5:00 pm    Post subject: Reply with quote

streaker69 wrote:
Why not just make your own custom Host Templates and add in the templates that you need?


Indeed.
But I'm lazy. And sloppy. And slow. Hey, don't tell my boss, please.
Suppose you have devices built from 27 different kinds of hardware, 6 operating systems (10 if you count different versions) and 13 SNMP-enabled applications. Worst-case scenario math gets you 27 times 10, times 13, that is 3510 combinations. Of course real life is much better (not all applications work on every OS etc.), but I've already had to cope with a couple dozen combinations (and counting), so I had to put together a partial template with another partial template with yet another partial template several times... and of course different partial templates apply each time... Tiresome! And I've managed to include three or four creative mistakes of mine. I'm still learning here, so that's been difficult to debug. With hindsight, they were silly mistakes, but hindsight is an exact science. Things got worse when I finally made an upgrade to the basic hardware template: I also had to upgrade all the other templates based on that same basic hardware. And another mistake got in the next-to-last template, too! Argh!
Lazy, sloppy and slow are my guiding parameters for automation: anything that can relieve work, avoid human mistake and get the job done earlier is welcome.

Of course this is not a life-or-death priority, I can manage without it. Lazily.
Back to top
gandalf
Developer


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

PostPosted: Sun Jul 06, 2008 5:59 am    Post subject: Reply with quote

I do agree with this request (in fact, I suggested to create it). E.g. if you use a apache set of templates and copy it to half a dozen different host templates, you won't be happy if adding a new graph template becomes pressing or if "Suggested Names" have to be tweaked or the like.
E.g. we defined a Host Template called "Basic RHEL4 Host". It's part of "RHEL4 Apache Host", "RHEL4 DNS Host", "RHEL4 Radius Host", "RHEL4 ..."
I can tell you, it's ugly
Reinhard
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group