Unable to read dynamic BWLABEL from rrd

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
npeltier
Posts: 28
Joined: Mon Aug 08, 2011 4:04 am

Unable to read dynamic BWLABEL from rrd

Post by npeltier »

Hi all !

I've been trying for a few hours now, and I can't seem to find a way to read rrd data to display a (not so often but sometimes) changing link BW as my BWlabel.

Is there a way to do it ?

I store each LINK's max BW (ifHighSpeed, in Mb/s) in the same rrd than the in/out bits with the DS name if_spd.

Among other things, I tried to reference to the LINK's TARGET, using that :

Code: Select all

TARGET /path/to/rrd/file.rrd:if_spd:if_spd
BWLABEL {link:this:invalue}
But that didn't work.

I also tried to create an other LINK to be able to reference its TARGET values and still be able to use my real TARGET in the real LINK since using 2 TARGETs in the same LINK only seems to work as if there is only the last one...

Hope that was clear or at least understandable !

Nicolas
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Unable to read dynamic BWLABEL from rrd

Post by Howie »

Your example should work... what do you get?
0?
[UNKNOWN]?
something else?

It's true that only the last TARGET line is used, so you would need to have a separate NODE to produce that label, if you also want to show traffic on the link as usual.
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!)
npeltier
Posts: 28
Joined: Mon Aug 08, 2011 4:04 am

Re: Unable to read dynamic BWLABEL from rrd

Post by npeltier »

Thanks for your quick reply !

I just tried this :

Code: Select all

NODE link1
        TARGET 1000000*/my/cacti/path/rra/133/12129.rrd:if_spd:-

LINK TEST1
        NODES TEST TEST2
        TARGET /my/cacti/path/rra/452/50538.rrd:if_spd:-
        INBWFORMAT {node:link1:invalue}
        OUTBWFORMAT {link:this:invalue}
Should that work, at least one of IN/OUT label ?
Both IN/OUT BW labels show [UNKNOWN].
Any idea why ?

Is it possible to use BWLABEL instead of IN/OUTBWFORMAT to display this kind of thing ?
Can I use something like

Code: Select all

BWLABEL 1000000*/my/cacti/path/rra/452/50538.rrd:if_spd
??

We have so many maps and links it's a real pain to change every BANDWIDTH value that changes on the network...
If you know a way to accomplish this... I would be very grateful !

Thanks for your help.

Nicolas
npeltier
Posts: 28
Joined: Mon Aug 08, 2011 4:04 am

Re: Unable to read dynamic BWLABEL from rrd

Post by npeltier »

Or would it be possible to set BANDWIDTH using the rrdfile value directly ?
npeltier
Posts: 28
Joined: Mon Aug 08, 2011 4:04 am

Re: Unable to read dynamic BWLABEL from rrd

Post by npeltier »

Hi all !

Everything I tried so far failed, I'm only getting [UNKNOWN].

Does anyone have any idea why ?
Any suggestions ?

It would be really helpful if I could manage to implement that thing...

Please help me !!

Nicolas
npeltier
Posts: 28
Joined: Mon Aug 08, 2011 4:04 am

Re: Unable to read dynamic BWLABEL from rrd

Post by npeltier »

I still can't set dynamic link bandwidth...

Is anybody doing it successfully ?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest