Printing user specified HRULE value in legend.

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

Moderators: Developers, Moderators

Post Reply
gm20175
Posts: 14
Joined: Wed Nov 15, 2006 8:07 pm
Location: Tokyo, Japan

Printing user specified HRULE value in legend.

Post by gm20175 »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please have a look at the Traffic Graph Template using 95th Percentile. This uses the trick you're asking for
Reinhard
gm20175
Posts: 14
Joined: Wed Nov 15, 2006 8:07 pm
Location: Tokyo, Japan

Post by 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]|?
User avatar
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.

Post by Howie »

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.
Are you looking to add something like a 'bandwidth paid for' static line to graphs? I'm looking for something like this too...
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!)
gm20175
Posts: 14
Joined: Wed Nov 15, 2006 8:07 pm
Location: Tokyo, Japan

Post by gm20175 »

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.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

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]
gm20175
Posts: 14
Joined: Wed Nov 15, 2006 8:07 pm
Location: Tokyo, Japan

Post by gm20175 »

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
Last edited by gm20175 on Mon Nov 27, 2006 7:51 pm, edited 1 time in total.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

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.
[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]
gm20175
Posts: 14
Joined: Wed Nov 15, 2006 8:07 pm
Location: Tokyo, Japan

Post by gm20175 »

But the legend item for the HRULE doesn't display the HRULE's numerical value (just shows its color)...

How does one show a HRULE's numerical value next to its color swatch in the legend?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

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]
gm20175
Posts: 14
Joined: Wed Nov 15, 2006 8:07 pm
Location: Tokyo, Japan

Post by gm20175 »

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

Who is online

Users browsing this forum: No registered users and 9 guests