Added health->load page and added it to the list of tabs on /health/

This commit is contained in:
Mike Rostermund
2015-06-11 20:52:12 +02:00
parent cd3c56863b
commit 4536bd24fb
2 changed files with 11 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ if ($used_sensors['frequency']) $datas[] = 'frequency';
if ($used_sensors['current']) $datas[] = 'current';
if ($used_sensors['power']) $datas[] = 'power';
if ($used_sensors['dbm']) $datas[] = 'dbm';
if ($used_sensors['load']) $datas[] = 'load';
// FIXME generalize -> static-config ?
$type_text['overview'] = "Overview";
@@ -27,6 +28,7 @@ $type_text['current'] = "Current";
$type_text['power'] = "Power";
$type_text['toner'] = "Toner";
$type_text['dbm'] = "dBm";
$type_text['load'] = "Load";
if (!$vars['metric']) { $vars['metric'] = "processor"; }
if (!$vars['view']) { $vars['view'] = "detail"; }

View File

@@ -0,0 +1,9 @@
<?php
$graph_type = "sensor_load";
$unit = "%";
$class = "load";
include("pages/health/sensors.inc.php");
?>