Printing user specified HRULE value in legend.
Moderators: Developers, Moderators
Printing user specified HRULE value in legend.
Hello,
How does one print a user specified value of a HRULE line to the legend?
Similar to a GPRINT, the value should appear after the color code box and description (e.g. threshold, baseline), etc.
[color] Threshold: [value]
NOTE! The HRULE value is "user specified" when an instance of the graph is created or edited via Graph Management---the value of the HRULE is not stored in the RRD or collected by a script or SNMP query.
This is killing me; so, please save me =).
Thank You!
gm20175
How does one print a user specified value of a HRULE line to the legend?
Similar to a GPRINT, the value should appear after the color code box and description (e.g. threshold, baseline), etc.
[color] Threshold: [value]
NOTE! The HRULE value is "user specified" when an instance of the graph is created or edited via Graph Management---the value of the HRULE is not stored in the RRD or collected by a script or SNMP query.
This is killing me; so, please save me =).
Thank You!
gm20175
Can you please explain how this works?
The 95th Percentile graph is using input from a variable not from a "user specified" value; so, its input can be modified with the || statements. How do you reference the HRULE value in the comment field---with the || statement?
Where is the documentation for |[statements]|?
The 95th Percentile graph is using input from a variable not from a "user specified" value; so, its input can be modified with the || statements. How do you reference the HRULE value in the comment field---with the || statement?
Where is the documentation for |[statements]|?
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Printing user specified HRULE value in legend.
Are you looking to add something like a 'bandwidth paid for' static line to graphs? I'm looking for something like this too...gm20175 wrote:NOTE! The HRULE value is "user specified" when an instance of the graph is created or edited via Graph Management---the value of the HRULE is not stored in the RRD or collected by a script or SNMP query.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
We are graphing IPSLA probes and the thresholds for the probes are specified by the user for each graph (using Graph Management) because we were not able to query the thresholds from the router using SNMP.
We just wish to print the value of the threshold's HRULE to the legend---so, people can know what the threshold is without having to look at the y-axis.
Thought this was a simple task, but the "good" features of Cacti are still hidden?
Sorry, I cannot help.
We just wish to print the value of the threshold's HRULE to the legend---so, people can know what the threshold is without having to look at the y-axis.
Thought this was a simple task, but the "good" features of Cacti are still hidden?
Sorry, I cannot help.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
If you are looking to display Thold specific information, I would suggest addressing this issue in the Plugin section of the Forums.
[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]
All other talking points aside, the simple question is:
How do you print a HRULE's value in the legend, if the value is
"user specified"?
See the initial post.
Thank You,
gm20175
How do you print a HRULE's value in the legend, if the value is
"user specified"?
See the initial post.
Thank You,
gm20175
Last edited by gm20175 on Mon Nov 27, 2006 7:51 pm, edited 1 time in total.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Create a graph item with a type of HRULE, set the "Value" field the value you would like to see. In the case of traffic graphs, this value would be the number of bits or bytes, however the graph is configured.
If auto scaling is turned on and the values of data elements do not cause the scale to be within the value of the HRULE, the HRULE will not appear. HRULE's do not cause graph scale changes.
If auto scaling is turned on and the values of data elements do not cause the scale to be within the value of the HRULE, the HRULE will not appear. HRULE's do not cause graph scale changes.
[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:
You add a comment graph item to the graph.
[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]
If there are, let us say, 150 instantiations of a graph template, you cannot edit the comment field for each graph using Graph Management, you can only edit the user specified inputs, which cannot? input to comment fields; so, how does one connect comment fields to user specified input editable via Graph Management?
With the information provided so far in this post, one would have to create 150 templates, for example, and add the unique comment data before creating each graph.
It is easy to connect user specified inputs to HRULEs, VRULEs, etc. for a graph template's instantiation via Graph Management because such procedures are documented.
How does one connect user specified input editable via Graph Management to a comment field's value text? Thanks!
With the information provided so far in this post, one would have to create 150 templates, for example, and add the unique comment data before creating each graph.
It is easy to connect user specified inputs to HRULEs, VRULEs, etc. for a graph template's instantiation via Graph Management because such procedures are documented.
How does one connect user specified input editable via Graph Management to a comment field's value text? Thanks!
Who is online
Users browsing this forum: No registered users and 9 guests