I've modified the host template for 150 devices, and added a new graph template. Now I want to create that graph for each device.
Is there a quick way to do it, without having to do each one manually?
Is there also a way to reapply a host template to multiple devices?
Bulk graph creation
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
The first question is to take your information and put it in CSV format and then write a quick script that reads the information and uses the two scripts:
add_device.php
add_graph.php
Then, if you modify a Host Template and add additional Graph Templates or Data Queries to it, I have recently written a script called "host_template_update.php" I think anyway. It's currently in the branch/0.8.7/cli folder and will be released with 0.8.7c.
Regards,
TheWitness
add_device.php
add_graph.php
Then, if you modify a Host Template and add additional Graph Templates or Data Queries to it, I have recently written a script called "host_template_update.php" I think anyway. It's currently in the branch/0.8.7/cli folder and will be released with 0.8.7c.
Regards,
TheWitness
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?
adding multiple devices
Hello!
I just wonder if there is a way to add multiple devices of the same type (by the same host template) instead of adding it one by one.
Thank you
I just wonder if there is a way to add multiple devices of the same type (by the same host template) instead of adding it one by one.
Thank you
Re: adding multiple devices
The super add plugin can add you host and graph fast although it doesn't support selecting host by host template. It's essentially web UI for theWitness' cli tool. However, it's not as powerful as the cli tool since it doesn't deal with data query type of graph.gunza wrote:Hello!
I just wonder if there is a way to add multiple devices of the same type (by the same host template) instead of adding it one by one.
Thank you
http://forums.cacti.net/viewtopic.php?t ... light=sadd
Super Add Plugin - http://forums.cacti.net/viewtopic.php?t=25475
Who is online
Users browsing this forum: No registered users and 1 guest