Create Graph names for a specific device

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Create Graph names for a specific device

Post by bmfmancini »

Hey Guys

I am trying to create a device template within cacti for a specific device

I am trying to edit the naming of the graphs as this particular device only has IF-NAME and not IF-ALIAS
so I am left with just the port number and not the name

I made a duplicate of the interface traffic template and re-named it I added |query_ifAlias| to the graph title
I made a graph with this template but the naming didn't work I was able to edit the data source but that applies to all devices instead of this one

How can I make this a template only for a particular device?


Attached is the graph template I have
graph template.JPG
graph template.JPG (220.19 KiB) Viewed 1072 times
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Create Graph names for a specific device

Post by netniV »

You need to have a duplicate device template as well as a duplicate graph template. Associate the duplicate graph template, with your customisations to the duplicate device template.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Create Graph names for a specific device

Post by bmfmancini »

ok thanks

So I have duplicated the device template
and I duplicated the graph template

Now on the duplicate device template Im not able to associate the duplicate graph template to the duplicate device template


here is the duplicate device
duplicate device.png
duplicate device.png (3.76 KiB) Viewed 1068 times
no option to select the graph template
duplicate device.png
duplicate device.png (3.76 KiB) Viewed 1068 times
Attachments
no graph template.png
no graph template.png (43.08 KiB) Viewed 1068 times
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Create Graph names for a specific device

Post by netniV »

Well, I may be wrong but your picture shows you trying to add a duplicate data query, not graph template. :)
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Create Graph names for a specific device

Post by bmfmancini »

ah man i wish it was that easy but no :( the graph template doesnt appear
no-graph-template.JPG
no-graph-template.JPG (78.51 KiB) Viewed 1049 times
graph-template-name.JPG
graph-template-name.JPG (34.54 KiB) Viewed 1049 times
template.JPG
template.JPG (142.1 KiB) Viewed 1049 times
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest