This is a discussion on [rrd-users] Help Please within the RRD Users forums, part of the Networking and Network Related category; I am getting a error Error in RRD::graph for /var/log/rrd/bmm_cable.rrd: unknown variable 'dpl' when I ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am getting a error
Error in RRD::graph for /var/log/rrd/bmm_cable.rrd: unknown variable 'dpl' when I run this script what did i do wrong ? sub updatebmmgraph { my $period = $_[0]; RRDs::graph ("$graphs/bmm-$period.png", "--start", "-1$period", "-aPNG", "-i", "-z", "--alt-y-grid", "-w 600", "-h 100", "-l 0", "-u 30", "-r", "--color", "SHADEA#EAE9EE", "--color", "SHADEB#EAE9EE", "--color", "BACK#EAE9EE", "-t $tr{'Power Level per'} $tr{$period}", "-v$tr{'dBmV'}", "DEF:dpl=/var/log/rrd/bmm_cable.rrd:dpl:AVERAGE", "DEF:upl=/var/log/rrd/bmm_cable.rrd:upl:AVERAGE", "LINE1:dpl#00FF00:$tr{'Downstream Power Level'}\\j", "LINE2:upl#00FF00:$tr{'Upstream Power Level'}\\j", "GPRINT:dpl:MAX:$tr{'maximal'} $tr{'in'}\\:%3.01f %sdBmV", "GPRINT:dpl:AVERAGE:$tr{'average'} $tr{'in'}\\:%3.01f %sdBmV", "GPRINT:dpl:LAST:$tr{'current'} $tr{'in'}\\:%3.01f %sdBmV\\j", "GPRINT:upl:MAX:$tr{'maximal'} $tr{'out'}\\:%3.01f %sdBmV", "GPRINT:upl:AVERAGE:$tr{'average'} $tr{'out'}\\:%3.01f %sdBmV", "GPRINT:upl:LAST:$tr{'current'} $tr{'out'}\\:%3.01f %sdBmV\\j"); $ERROR = RRDs::error; print "Error in RRD::graph for $rrd: $ERROR\n" if $ERROR; } sub updatebmmdata { if (! -e "$rrd") { RRDs::create ("$rrd", "-s 300", "DS:dsn:GAUGE:600:-1:100", "DS:usn:GAUGE:600:-1:100", "DS:dpl:GAUGE:600:-100:100", "DS:upl:GAUGE:600:-1:200", "DS:dfr:GAUGE:600:-1:U", "DS:ufr:GAUGE:600:-1:U", "RRA:AVERAGE:0.5:1:576", "RRA:AVERAGE:0.5:6:672", "RRA:AVERAGE:0.5:24:732", "RRA:AVERAGE:0.5:144:1460"); $ERROR = RRDs::error; print "Error in RRD::create for BMM: $ERROR\n" if $ERROR; } ### ### BMM graphs ### updatebmmdata(); updatebmmgraph ("day"); updatebmmgraph ("week"); updatebmmgraph ("month"); updatebmmgraph ("year"); -- Unsubscribe mailto:rrd-users-request@list.ee.ethz.ch?subject=unsubscribe Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help Archive http://lists.ee.ethz.ch/rrd-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi |