Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Jun 29, 2017 9:23 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Alias |host_description| in graph template items
PostPosted: Mon Sep 30, 2013 12:08 pm 
Offline
Cacti User
User avatar

Joined: Mon Jul 21, 2008 5:45 am
Posts: 55
Location: Paris suburbs, France
We massively use aggregated (stacked) graphs gathering together data sources from different devices.
Ex.:
- Switch aggregated link / port channels
- Clusters or groups of nodes' global traffic (bandwidth, requests, sessions...) or CPU overview

We already use the |query_ifName| alias for interfaces but we are however and unfortunately unable to display the datasources' hostnames using a kind of alias |query_host_description| in the graph's legends.
This is a big limitation and induce us to release the graphs from their original templates to provide manually the hostnames in the graph items, what is of course not a good practice...

_________________
Cacti 0.8.8b + spine 0.8.8b
on Debian / Apache 2.2 / PHP 5.2 / MySQL 5.0


Last edited by GLR on Tue Oct 01, 2013 3:39 pm, edited 3 times in total.

Top
 Profile  
 
 Post subject: Re: Alias |query_host_description| in graph template items
PostPosted: Mon Sep 30, 2013 2:50 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
Are you using AGGREGATE? WHich version, then?
Are you able to provide a faked screenshot of what exactly you are trying to achive?
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Alias |query_host_description| in graph template items
PostPosted: Mon Sep 30, 2013 3:59 pm 
Offline
Cacti User
User avatar

Joined: Mon Jul 21, 2008 5:45 am
Posts: 55
Location: Paris suburbs, France
Hello,

No, I only use manually created graph templates.

Here are some examples of graphs :

Image

Image

Image

Image

Image

Image

And a 3 aggregated link port-channel graph template :

Image

_________________
Cacti 0.8.8b + spine 0.8.8b
on Debian / Apache 2.2 / PHP 5.2 / MySQL 5.0


Top
 Profile  
 
 Post subject: Re: Alias |query_host_description| in graph template items
PostPosted: Mon Sep 30, 2013 4:21 pm 
Offline
Cacti User
User avatar

Joined: Mon Jul 21, 2008 5:45 am
Posts: 55
Location: Paris suburbs, France
Hum... reading your Aggregate plugin documentation, I see the alias |host_description| is simply supported. Always RTFM !
I don't know why, I missed it... :-?
In my mind, this alias didn't work, but actually I didn't tested it recently... (Was it added in a recent release ?)

And it indeed works fine, so great !
Thanks !

PS: This topic can be deleted

_________________
Cacti 0.8.8b + spine 0.8.8b
on Debian / Apache 2.2 / PHP 5.2 / MySQL 5.0


Top
 Profile  
 
 Post subject: Re: Alias |query_host_description| in graph template items
PostPosted: Tue Oct 01, 2013 3:12 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
GLR wrote:
(Was it added in a recent release ?)
I don't remember

Quote:
PS: This topic can be deleted
No. Your graphs look too pretty
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Alias |query_host_description| in graph template items
PostPosted: Fri Apr 04, 2014 11:17 am 
Offline

Joined: Tue Mar 11, 2014 3:08 pm
Posts: 7
GLR wrote:
Hello,

No, I only use manually created graph templates.

Here are some examples of graphs :


And a 3 aggregated link port-channel graph template :

Image



could you send me a copy of your graph template, i working on something similarand getting problems at it and it seems you have the answer


Top
 Profile  
 
 Post subject: Re: Alias |host_description| in graph template items
PostPosted: Fri Apr 04, 2014 11:50 am 
Offline
Cacti User
User avatar

Joined: Mon Jul 21, 2008 5:45 am
Posts: 55
Location: Paris suburbs, France
Here it is : Graph template "Aggregated link traffic - 3 interfaces"


Attachments:
cacti_graph_template__aggregated_link_traffic_-_3_interfaces.zip [6.24 KiB]
Downloaded 130 times

_________________
Cacti 0.8.8b + spine 0.8.8b
on Debian / Apache 2.2 / PHP 5.2 / MySQL 5.0
Top
 Profile  
 
 Post subject: Re: Alias |host_description| in graph template items
PostPosted: Mon Apr 07, 2014 10:21 am 
Offline

Joined: Tue Mar 11, 2014 3:08 pm
Posts: 7
GLR wrote:
Here it is : Graph template "Aggregated link traffic - 3 interfaces"



Great! worked flawlessly!!

Much appreciated



i was wondering however if you could assist in making a few tweaks to it.
I'm trying to display for another graph, just the total in and total out but using the same or similar template but with minor changes.
in theory i think i know what i should do but could use a new set of eyes..


Top
 Profile  
 
 Post subject: Re: Alias |host_description| in graph template items
PostPosted: Tue Apr 14, 2015 12:34 am 
Offline

Joined: Tue Apr 14, 2015 12:26 am
Posts: 1
In my mind, this alias didn't work, but actually I didn't tested it recently... (Was it added in a recent release ?)??

_________________
GuL


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group