Display Static content with graphs?
Moderators: Developers, Moderators
Display Static content with graphs?
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
Many thanks,
Dan
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
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>
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
- DataTemplate.png (15.73 KiB) Viewed 3169 times
-
- my graph template
- graph-template-items.png (19.33 KiB) Viewed 3169 times
-
- my suMAC template item details
- graph-template-items-suMAC.png (10.22 KiB) Viewed 3169 times
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
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.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>
Reinhard
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
In a Data Query, anything that is of the Output variety must be a "Numeric" value. Otherwise, Cacti is not happy.
TheWitness
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?
Who is online
Users browsing this forum: No registered users and 1 guest