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.
Host multi-template
Moderators: Developers, Moderators
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
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.
You're not locked into the host templates that are provided, they're more of guidelines to get you started.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
Indeed.streaker69 wrote:Why not just make your own custom Host Templates and add in the templates that you need?
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.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
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
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
I've often thought about posting this exact feature request, but I see them more as "Graph Packs" or "Roles".
This is more or less the way I've got mine setup now.
When I add a host (say an HP DL 380, running Windows with IIS, MSSQL), I have to create the device, assign it the 'HP Server' host template and save. Then I go back into the device, change the host template to 'Windows General' and save it again, repeating this process for each "graph pack" that applies to this device (Windows on HP, IIS, MSSQL, etc...).
It would much easier if there was a multi-select combo box where were could just select the Packs/Roles that apply to a given device and it would iterate through each one and add the graphs/data queries automatically.
This is more or less the way I've got mine setup now.
When I add a host (say an HP DL 380, running Windows with IIS, MSSQL), I have to create the device, assign it the 'HP Server' host template and save. Then I go back into the device, change the host template to 'Windows General' and save it again, repeating this process for each "graph pack" that applies to this device (Windows on HP, IIS, MSSQL, etc...).
It would much easier if there was a multi-select combo box where were could just select the Packs/Roles that apply to a given device and it would iterate through each one and add the graphs/data queries automatically.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Me too... The work was all done in my head, just cant fine the cycles to code.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 0 guests