[rrd-users] Help Please

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 ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-13-2006
John
 
Posts: n/a
Default [rrd-users] Help Please

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:30 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0