mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added health->load page and added it to the list of tabs on /health/
This commit is contained in:
@@ -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"; }
|
||||
|
||||
9
html/pages/health/load.inc.php
Normal file
9
html/pages/health/load.inc.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
$graph_type = "sensor_load";
|
||||
$unit = "%";
|
||||
$class = "load";
|
||||
|
||||
include("pages/health/sensors.inc.php");
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user