[rrd-users] Probleme using several dbs and unknown values

Simon Hobson linux at thehobsons.co.uk
Wed Jan 30 17:04:26 CET 2013


unicsonline wrote:
> It seems better but I have now to find how build this formula for any cases, between one db source to x dbsources

Iteratively would seem to be the way to do it. In shell I'd do it like :

rpn="data${x}"
i = $(( $x - 1 )
while $i > 0
do
  rpn="data$i,UN,${rpn},data$i,IF"
  i=$(( $i - 1 ))
done



More information about the rrd-users mailing list