Context is: I’ve got a core node with multiple links connected to it, and in top of that I want to put a node to show total BW in / Out.
Question is: is there any special token I could use to get the TARGETs?
I know I could do it manually but to give you an idea how the links look like, this is my config:
LINK DEFAULT
TARGET {node:linkend:loc}/{node:linkstart:name}.com-if_{node:linkend:name}-up-d.rrd:42:- {node:linkend:loc}/{node:linkstart:name}.com-if_{node:linkend:name}-down-d.rrd:-:42
I guess at the end, the map has already processed all links, so it may not be neccesary to process the TARGETs again.
So what I would like to achieve is:
NODE totals
LABEL Total {node:this:bandwidth_in:%k} In {node:this:bandwidth_out:%k} Out
TARGET ??????????
Something like {link:linkname:bw_in} {link:linkname:bw_out}?
An aggregate graph wouldn’t help weathermap either - there’s no “total” rrd file created, it just makes a really huge rrdtool graph command.
At one point, I was going to extend the data written to the ‘.results.txt’ file so that it included totals, averages, min/max etc. It wouldn’t be too hard to add, and also have available in variables like {map:stats_total_in}. The original plan was that you could also tag a node or link, and get totals for each tag (like ‘all internet ports’ or ‘all server disks’) also.
But there’s nothing to do that at the moment, back to your question. I will add it as a feature request for 1.1.0 though, because I think it’s pretty simple to to do.