Hello,
This is still for Cacti 0.8.8h (will update to 1.25 in about a month... ).
I have a working graph template which is fed by a script/command data input method: script_name <hostname>. (The script makes a ssh request to <hostname> and collects memory HugePages usage.
But so far I could only have it working if I create host-specifics Data and Graph Templates. Data templates are looking like the attached screenshot...
Is there a way I could create the same graph template so it could be "generic", like the SNMP ones, and would not have to hard-code the server name to the Data Template?
Creating these graphs for a few servers is fine, but when it comes to build it for 50 - 80 servers it becomes unmanageable...
Thanks a lot for any hint,
Alex
Generic custom Data Template - Linux HugePages
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Generic custom Data Template - Linux HugePages
You have to use the "Special Type Code" of hostname in the Data Input Method for the script.
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?
Re: Generic custom Data Template - Linux HugePages
Hello,
Thanks a lot for helping, it's working...! (As I'm sure you know it would... )
Just an extra piece of information for others facing the same "issue":
Besides doing what it was mentioned by The Witness, you also need to leave the "Custom Data" field blank and check "Use Per-Data Source Value" on your custom Data Template.
All the best,
Alex
Thanks a lot for helping, it's working...! (As I'm sure you know it would... )
Just an extra piece of information for others facing the same "issue":
Besides doing what it was mentioned by The Witness, you also need to leave the "Custom Data" field blank and check "Use Per-Data Source Value" on your custom Data Template.
All the best,
Alex
Who is online
Users browsing this forum: No registered users and 4 guests