diff --git a/html/includes/graphs/device/load.inc.php b/html/includes/graphs/device/load.inc.php
new file mode 100644
index 000000000..a8b27356c
--- /dev/null
+++ b/html/includes/graphs/device/load.inc.php
@@ -0,0 +1,9 @@
+
diff --git a/html/includes/graphs/sensor/load.inc.php b/html/includes/graphs/sensor/load.inc.php
new file mode 100644
index 000000000..095f0eb2e
--- /dev/null
+++ b/html/includes/graphs/sensor/load.inc.php
@@ -0,0 +1,22 @@
+
diff --git a/html/pages/device/health.inc.php b/html/pages/device/health.inc.php
index ec31f0d73..2ad89eb6d 100644
--- a/html/pages/device/health.inc.php
+++ b/html/pages/device/health.inc.php
@@ -13,8 +13,9 @@ $volts = dbFetchCell("select count(*) from sensors WHERE sensor_class='vo
$current = dbFetchCell("select count(*) from sensors WHERE sensor_class='current' AND device_id = ?", array($device['device_id']));
$freqs = dbFetchCell("select count(*) from sensors WHERE sensor_class='frequency' AND device_id = ?", array($device['device_id']));
$power = dbFetchCell("select count(*) from sensors WHERE sensor_class='power' AND device_id = ?", array($device['device_id']));
-$dBm = dbFetchCell("select count(*) from sensors WHERE sensor_class='dBm' AND device_id = ?", array($device['device_id']));
+$dBm = dbFetchCell("select count(*) from sensors WHERE sensor_class='dBm' AND device_id = ?", array($device['device_id']));
$states = dbFetchCell("select count(*) from sensors WHERE sensor_class='state' AND device_id = ?", array($device['device_id']));
+$load = dbFetchCell("select count(*) from sensors WHERE sensor_class='load' AND device_id = ?", array($device['device_id']));
unset($datas);
$datas[] = 'overview';
@@ -32,6 +33,7 @@ if ($current) { $datas[] = 'current'; }
if ($power) { $datas[] = 'power'; }
if ($dBm) { $datas[] = 'dbm'; }
if ($states) { $datas[] = 'state'; }
+if ($load) { $datas[] = 'load'; }
$type_text['overview'] = "Overview";
$type_text['charge'] = "Battery Charge";
@@ -48,6 +50,7 @@ $type_text['current'] = "Current";
$type_text['power'] = "Power";
$type_text['dbm'] = "dBm";
$type_text['state'] = "State";
+$type_text['load'] = "Load";
$link_array = array('page' => 'device',
'device' => $device['device_id'],
diff --git a/html/pages/device/health/load.inc.php b/html/pages/device/health/load.inc.php
new file mode 100644
index 000000000..399237aae
--- /dev/null
+++ b/html/pages/device/health/load.inc.php
@@ -0,0 +1,9 @@
+
diff --git a/html/pages/health.inc.php b/html/pages/health.inc.php
index 6d4427fb3..3b06d4db6 100644
--- a/html/pages/health.inc.php
+++ b/html/pages/health.inc.php
@@ -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"; }
diff --git a/html/pages/health/load.inc.php b/html/pages/health/load.inc.php
new file mode 100644
index 000000000..d9257519d
--- /dev/null
+++ b/html/pages/health/load.inc.php
@@ -0,0 +1,9 @@
+
diff --git a/includes/discovery/load.inc.php b/includes/discovery/load.inc.php
index 234d75c93..f9f22eb5f 100644
--- a/includes/discovery/load.inc.php
+++ b/includes/discovery/load.inc.php
@@ -8,7 +8,7 @@ include("includes/include-dir.inc.php");
if ($debug) { print_r($valid['sensor']['load']); }
-check_valid_sensors($device, 'load', $valid['load']);
+check_valid_sensors($device, 'load', $valid['sensor']);
echo("\n");