|
|
| Author |
Message |
MSBS
Joined: 09 Jul 2007 Posts: 4
|
Posted: Tue Aug 07, 2007 1:00 am Post subject: Multicast map |
|
|
Hi Howie,
I'm working on a multicast map and I want to graph bandwith labels as packets/second instead of bits/s. I have a link like this:
LINK CORE-1-XBEAM
BWLABEL unformatted
TARGET gauge:/path/to/rra/core1_multicast_out_666.rrd:multicast_in:multicast_out
NODES CORE-1 XBEAM
The problem is that I am getting decimal numbers. Is there a way to define exact number in a bandiwth label like you can do in a LABEL or COMMENT sections with sentence like this: {link:this:bandwidth_out:%d}?
PS.:Maybe is not a bug, but using "SET link_bulge 1" only takes the percentage utilisation of traffic in and not traffic out to change the link width. IMHO will be great to take the greater percentage.
Thanks!
MSBS
Last edited by MSBS on Tue Aug 07, 2007 8:09 pm; edited 1 time in total |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1989 Location: United Kingdom
|
Posted: Tue Aug 07, 2007 7:35 am Post subject: Re: Multicast map |
|
|
| MSBS wrote: |
The problem is that I am getting decimal numbers. Is there a way to define extact number in a bandiwth label like you can do in a LABEL or COMMENT sections with sentence like this: {link:this:bandwidth_out:%d}?
|
It's not possible right now, but this is already in my todo list. I want to be able to have millisecond labels for latency and jitter maps. I think someone else wanted dB for S/N ratio.
| MSBS wrote: |
PS.:Maybe is not a bug, but using "SET link_bulge 1" only takes the percentage utilisation of traffic in and not traffic out to change the link width. IMHO will be great to take the greater percentage.
|
I'd forgotten about that. Someone pointed it out a while ago. I'll see if I can change it to make a little more sense. I think my plan was actually to bulge each half of the link individually, since they're drawn seperately anyway.
|
|
| Back to top |
|
 |
MSBS
Joined: 09 Jul 2007 Posts: 4
|
Posted: Tue Aug 07, 2007 11:14 am Post subject: |
|
|
Ok, uhmm...so set BWLABEL as none and make a NODE instead will do the trick.
Thanks Howie, your tool is awesome!
MSBS
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1989 Location: United Kingdom
|
Posted: Tue Aug 07, 2007 11:20 am Post subject: |
|
|
| MSBS wrote: | Ok, uhmm...so set BWLABEL as none and make a NODE instead will do the trick.
Thanks Howie, your tool is awesome!
MSBS |
Yes, that would work. Or as you know, you can use the comments, which can take {link:this:...} stuff.
INBWLABELFORMAT (or whatever better name I come up with ) should be in either 0.93 or 0.94. I'm having fun with the new editor at the moment, so 0.93 is a little delayed.
|
|
| Back to top |
|
 |
niobe Cacti User
Joined: 10 Mar 2008 Posts: 94 Location: Australia
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1989 Location: United Kingdom
|
Posted: Fri Apr 11, 2008 2:42 am Post subject: Re: Multicast map |
|
|
| niobe wrote: |
| Code: | define('FMT_PACKETS_IN',"{link:this:bandwidth_in:%d}");
define('FMT_PACKETS_OUT',"{link:this:bandwidth_out:%d}");
|
| Code: | INBWFORMAT {link:this:bandwidth_in} pps
OUTBWFORMAT {link:this:bandwidth_out} pps
|
...then unfortunately this undoes the new formatting and bandwidth labels are back to decimal. |
Why wouldn't it? You changed the format to not include the %d, then you won't get integers. That's what the %d does.
You can do this without changing code just by adding this to either the DEFAULT LINK or any LINKs where you want it.
| Code: |
INBWFORMAT {link:this:bandwidth_in:%d} pps
OUTBWFORMAT {link:this:bandwidth_out:%d} pps
|
There is no 'new feature', aside possibly from the ability to make new named formats. Next release has templates for nodes and links so even if you wanted only half of the links to have this, it's still only one line in each link, and a link template with the formatting in it (and any other formatting fonts etc too), so I don't think it's worthwhile.
|
|
| Back to top |
|
 |
niobe Cacti User
Joined: 10 Mar 2008 Posts: 94 Location: Australia
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1989 Location: United Kingdom
|
Posted: Fri Apr 11, 2008 3:24 am Post subject: |
|
|
Wow, I thought it was. It should be in the advanced section under the special tokens stuff. Wierd.
My actual confusion was how you had it one place, but didn't in the other, but you're right - it's not documented
|
|
| Back to top |
|
 |
niobe Cacti User
Joined: 10 Mar 2008 Posts: 94 Location: Australia
|
Posted: Fri Apr 11, 2008 3:37 am Post subject: |
|
|
No dramas
Honestly it's just great to have such a tool where most things have already been thought of
|
|
| Back to top |
|
 |
rujipars
Joined: 02 Nov 2007 Posts: 15
|
|
| Back to top |
|
 |
|