mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Change rfc1628 'state' (est. runtime and on battery) to runtime (#6158)
* fix: Change rfc1628 'state' (est. runtime and on battery) to runtime * Fix up the graph error ( : in ds name). Change seconds on battery to minutes so the value is in minutes * wrong scale for limits * Don't use snmp_walk
This commit is contained in:
committed by
Neil Lathwood
parent
9c43fbd76b
commit
4ae4847a60
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
$scale_min = '0';
|
||||
require 'includes/graphs/common.inc.php';
|
||||
$rrd_options .= " COMMENT:' Last Max\\n'";
|
||||
$sensor['sensor_descr_fixed'] = substr(str_pad($sensor['sensor_descr'], 28), 0, 28);
|
||||
$rrd_options .= " COMMENT:' Last Max\\n'";
|
||||
$sensor['sensor_descr_fixed'] = rrdtool_escape($sensor['sensor_descr'], 32);
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename:sensor:AVERAGE";
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'".$sensor['sensor_descr_fixed']."'";
|
||||
$rrd_options .= ' GPRINT:sensor:LAST:%3.0lfMin';
|
||||
|
||||
Reference in New Issue
Block a user