Multicast map
Moderators: Developers, Moderators
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
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.
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Multicast map
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: 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}?
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.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.
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!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Yes, that would work. Or as you know, you can use the comments, which can take {link:this:...} stuff.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
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.
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!)
Re: Multicast map
I have solved this with a very simple patch to the weathermap classes..ok more of a hack than a solution, but here goes..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}?
Edit "Weathermap.class.php". Near the top add:
Code: Select all
define('FMT_PACKETS_IN',"{link:this:bandwidth_in:%d}");
define('FMT_PACKETS_OUT',"{link:this:bandwidth_out:%d}");
Code: Select all
if($style=='unformatted')
{
$format_in = FMT_UNFORM_IN;
$format_out = FMT_UNFORM_OUT;
}
Code: Select all
if($style=='packets')
{
$format_in = FMT_PACKETS_IN;
$format_out = FMT_PACKETS_OUT;
}
Code: Select all
if($this->labelstyle=='--' && $this->bwlabelformats[IN] == FMT_UNFORM_IN && $this->bwlabelformats[OUT] == FMT_UNFORM_OUT)
{
$this->labelstyle = 'unformatted';
}
Add this:
Code: Select all
if($this->labelstyle=='--' && $this->bwlabelformats[IN] == FMT_PACKETS_IN && $this->bwlabelformats[OUT] == FMT_PACKETS_OUT)
{
$this->labelstyle = 'packets';
}
Code: Select all
LINK DEFAULT
BWLABEL packets
Code: Select all
INBWFORMAT {link:this:bandwidth_in} pps
OUTBWFORMAT {link:this:bandwidth_out} pps
So..definitely a hack The screenshot shows both situations.
-----------------------------------
By the way, I am trying to achieve the same thing - a multicast weathermap, so I would definitely vote for this feature to be added to Weathermap. Among the many whole number values I want to put on weathermaps:
- unicast packets
non-unicast packets
active multicast groups
connected wireless access points
wireless users
vpn users
- Attachments
-
- decimals.ugh.png (349.58 KiB) Viewed 8841 times
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Multicast map
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.niobe wrote:Code: Select all
define('FMT_PACKETS_IN',"{link:this:bandwidth_in:%d}"); define('FMT_PACKETS_OUT',"{link:this:bandwidth_out:%d}");
...then unfortunately this undoes the new formatting and bandwidth labels are back to decimal.Code: Select all
INBWFORMAT {link:this:bandwidth_in} pps OUTBWFORMAT {link:this:bandwidth_out} pps
You can do this without changing code just by adding this to either the DEFAULT LINK or any LINKs where you want it.
Code: Select all
INBWFORMAT {link:this:bandwidth_in:%d} pps
OUTBWFORMAT {link:this:bandwidth_out:%d} pps
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!)
Sorry dude, I just couldn't find this documented anywhere. Ideally should be here: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.
http://www.network-weathermap.com/manua ... anced.html
http://www.network-weathermap.com/manua ... ODE_TARGET
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Wow, I thought it was. It should be in the advanced section under the special tokens stuff. Wierd.niobe wrote:Sorry dude, I just couldn't find this documented anywhere. Ideally should be here: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.
http://www.network-weathermap.com/manua ... anced.html
http://www.network-weathermap.com/manua ... ODE_TARGET
My actual confusion was how you had it one place, but didn't in the other, but you're right - it's not documented
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!)
This topic saved my life
Thanks Howie for making this great tool.
Share my usage of Weather Map with this picture.
The small pieces next to the node label (sub node) display temperature and CPU usage. (I use %d formatting to keep it tiny (7% instead of 6.802333333%(a very ugly one))
Thanks Howie for making this great tool.
Share my usage of Weather Map with this picture.
The small pieces next to the node label (sub node) display temperature and CPU usage. (I use %d formatting to keep it tiny (7% instead of 6.802333333%(a very ugly one))
- Attachments
-
- weathermap_7.png (22.13 KiB) Viewed 8357 times
-
- Posts: 1
- Joined: Sat Feb 22, 2014 7:18 pm
Re: Multicast map
hi
edited files, but does not draw the map, changes are outdated?
edited files, but does not draw the map, changes are outdated?
Re: Multicast map
hi niobe!
I also did steps as your guide, but weathermap can not display packets number as your picture (it always 0). I need more do some step?
pls respond asap. thank you very much!
P/S: i'm using weathermap 0.97a
iluv8250
I also did steps as your guide, but weathermap can not display packets number as your picture (it always 0). I need more do some step?
pls respond asap. thank you very much!
P/S: i'm using weathermap 0.97a
iluv8250
Who is online
Users browsing this forum: No registered users and 0 guests