Display Static content with graphs?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
dpoulsen
Posts: 17
Joined: Fri Aug 26, 2005 10:46 am

Display Static content with graphs?

Post by dpoulsen »

I have generated traffic graphs for a number of our wireless devices. Along with the dynamicly changing traffic stats I would like to display some static data that my script returns (frequencey, polarization, etc.) below each graph. How can I do this? My only option for data source items are COUNTER GAUGE DERIVE and ABSOLUTE. I want to display it as text in or along side the graph. Any tips?

Many thanks,
Dan
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

To display values like that on graphs, you have to use data queries.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
dpoulsen
Posts: 17
Joined: Fri Aug 26, 2005 10:46 am

Post by dpoulsen »

Hi. Thanks for the quick reply.

I am just glancing at documentation here. Am I mistaken in thinking my "script/command" could likely be converted into a XML script query and then added as a data query to make use of these static values?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

There will be a little more work involved in it, but it can be done.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
dpoulsen
Posts: 17
Joined: Fri Aug 26, 2005 10:46 am

Post by dpoulsen »

rony wrote:To display values like that on graphs, you have to use data queries.
Hi,

I've converted to a data query, but I do not see how to add values like these to my graphs. How does one go about this?

Thanks again,
Dan
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Comment field, then use a data query variable. For example, if you data query field is "wigetcount" the variable you would use is "|query_wigetcount|".
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
dpoulsen
Posts: 17
Joined: Fri Aug 26, 2005 10:46 am

Post by dpoulsen »

Thank you. I know I am very close, but I still need a little clarification.

Here is what I've done. Maybe you can tell me what I missed.

1. I have verified that my trango_fox.xml file includes the correct OID for the suMAC (Mac address of the subscriber unit I am querying):
SNMPv2-SMI::enterprises.5454.1.20.3.6.1.2.1 = Hex-STRING: 00 01 DE 10 DC 22

2. In 'Data Templates' I added suMAC and selected 'Use Per-Data Source Value' for Data Source Type.

3. In 'Graph Templates' I added suMAC as a Graph Template Item Comment.

Please see attached screenshots and configs.

Dan


From trango_fox.xml:
<suMAC>
<name>SU MAC Address</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.5454.1.20.3.6.1.2</oid>
</suMAC>
Attachments
My data template
My data template
DataTemplate.png (15.73 KiB) Viewed 3170 times
my graph template
my graph template
graph-template-items.png (19.33 KiB) Viewed 3170 times
my suMAC template item details
my suMAC template item details
graph-template-items-suMAC.png (10.22 KiB) Viewed 3170 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

dpoulsen wrote:1. I have verified that my trango_fox.xml file includes the correct OID for the suMAC (Mac address of the subscriber unit I am querying):
SNMPv2-SMI::enterprises.5454.1.20.3.6.1.2.1 = Hex-STRING: 00 01 DE 10 DC 22

2. In 'Data Templates' I added suMAC and selected 'Use Per-Data Source Value' for Data Source Type.

3. In 'Graph Templates' I added suMAC as a Graph Template Item Comment.

Please see attached screenshots and configs.

Dan


From trango_fox.xml:
<suMAC>
<name>SU MAC Address</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.5454.1.20.3.6.1.2</oid>
</suMAC>
It's not supposed to work this way. As the MAC address should not vary from time to time, it is supposed to be a <direction>input</direction> type of data. You won't need a data source for that. And the Graph Template should reference the MAC as a |query_suMAC| variable.
Reinhard
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

In a Data Query, anything that is of the Output variety must be a "Numeric" value. Otherwise, Cacti is not happy.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest