git-svn-id: http://www.observium.org/svn/observer/trunk@2230 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-03 20:13:15 +00:00
parent 5d5c04b236
commit c5bac776db
4 changed files with 25 additions and 5 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ while ($toner = mysql_fetch_assoc($sql))
$hostname = gethostbyid($toner['device_id']);
$descr = substr(str_pad($toner['toner_descr'], 16),0,16);
$rrd_filename = $config['rrd_dir'] . "/".$device['hostname']."/" . safename("toner-" . $toner['toner_descr'] . ".rrd");
$rrd_filename = $config['rrd_dir'] . "/".$device['hostname']."/" . safename("toner-" . $toner['toner_index'] . ".rrd");
$toner_id = $toner['toner_id'];
$rrd_options .= " DEF:toner$toner_id=$rrd_filename:toner:AVERAGE";
@@ -58,4 +58,4 @@ while ($toner = mysql_fetch_assoc($sql))
$iter++;
}
?>
?>