Displaying different data with links

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
rs1
Posts: 27
Joined: Fri Sep 06, 2013 4:35 am

Displaying different data with links

Post by rs1 »

Hello,

Been searching the forum for an answer but cannot find it. Probably searching the wrong thing!

Trying to display power from UPS to L1(rack) and to PDU. I have the data sources and they are displaying correctly as graphs. However the links are designed for bandwidth. Is there a way to display it for different data and to set a max percentage.

Sorry if there is docs on this, couldn't find it!
rs1
Posts: 27
Joined: Fri Sep 06, 2013 4:35 am

Re: Displaying different data with links

Post by rs1 »

No ideas? Did I not ask the question very well?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Displaying different data with links

Post by Howie »

Hmm, I posted a reply, but it disappeared...

You should look at:

[*] Use "linkstyle oneway" to show only one arrow (power is one direction)

[*] Use "TARGET gauge:myrrdfile.rrd" to stop weathermap from multiplying by 8 when it reads the data

[*] Use BANDWIDTH to specify the maximum current/power in the same units that will be read from the rrd file.
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!)
rs1
Posts: 27
Joined: Fri Sep 06, 2013 4:35 am

Re: Displaying different data with links

Post by rs1 »

Just tried it but it's displaying 0, cannot find anything in the logs? I have:

LINK node99999-node88888
LINKSTYLE oneway
INFOURL /cacti/graph.php?rra_id=all&local_graph_id=001
OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=001&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
TARGET gauge:/var/www/html/cacti/rra/myrrdfile.rrd
NODES node09797 node23424
BANDWIDTH 100

By the way, thank you for all your help so far. :)
rs1
Posts: 27
Joined: Fri Sep 06, 2013 4:35 am

Re: Displaying different data with links

Post by rs1 »

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

Re: Displaying different data with links

Post by Howie »

Run with DEBUG logging for one poller cycle, then check the logs. You'll see a bunch of lines mark WEATHERMAP and also "ReadData" which are the logging from the data-collection part of weathermap. That will show you what is being fetched from the RRD file. My guess is that you need to specify DS names on the end of the target, but you would be getting warnings in the cacti.log for that (even without DEBUG logging).
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!)
rs1
Posts: 27
Joined: Fri Sep 06, 2013 4:35 am

Re: Displaying different data with links

Post by rs1 »

Can't find anything, a lot of info to sort through and I don't really know what I'm looking for. Is there anything else I could try?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Displaying different data with links

Post by Howie »

You could guess I suppose... :-) The logs tell you exactly what is going on, though.

You are looking for the lines like

Code: Select all

RRD ReadData: Headings are:
RRD ReadDataFromRealRRD: Returning
All lines have the map name in them, and for ReadData it will have the link/node name 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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests