mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
more fixes for new sensor setup. more to come no doubt. also started making graphs which can 'widen'
git-svn-id: http://www.observium.org/svn/observer/trunk@1534 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -11,6 +11,7 @@ include("includes/graphs/common.inc.php");
|
||||
$device = device_by_id_cache($sensor['device_id']);
|
||||
|
||||
$sensor['sensor_descr_fixed'] = substr(str_pad($sensor['sensor_descr'], 22),0,22);
|
||||
$sensor['sensor_descr_fixed'] = str_replace(':','\:',str_replace('\*','*',$sensor['sensor_descr_fixed']));
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/temp-" . safename($sensor['sensor_type']."-".$sensor['sensor_index']) . ".rrd";
|
||||
|
||||
@@ -29,7 +30,7 @@ include("includes/graphs/common.inc.php");
|
||||
# $rrd_options .= " AREA:tempwarm#FFCCCC";
|
||||
# $rrd_options .= " AREA:tempcold#CCCCFF";
|
||||
# $rrd_options .= " LINE1:temp#cc0000:'" . str_replace(':','\:',str_replace('\*','*',quotemeta($sensor['sensor_descr_fixed'])))."'"; # Ugly hack :(
|
||||
$rrd_options .= " LINE1:temp#cc0000:'" . str_replace(':','\:',str_replace('\*','*',$sensor['sensor_descr_fixed']))."'"; # Ugly hack :(
|
||||
$rrd_options .= " LINE1:temp#cc0000:'" . $sensor['sensor_descr_fixed']."'";
|
||||
$rrd_options .= " LINE1:tempwarm#660000";
|
||||
$rrd_options .= " GPRINT:temp:LAST:%4.1lfC";
|
||||
$rrd_options .= " GPRINT:temp:MIN:%4.1lfC";
|
||||
|
||||
Reference in New Issue
Block a user