diff --git a/html/pages/device/port.inc.php b/html/pages/device/port.inc.php index b5693dd8ca..f26b0d6dc7 100644 --- a/html/pages/device/port.inc.php +++ b/html/pages/device/port.inc.php @@ -76,6 +76,10 @@ $menu_options['fdb'] = 'FDB Table'; $menu_options['events'] = 'Eventlog'; $menu_options['notes'] = 'Notes'; +if (dbFetchCell("SELECT COUNT(*) FROM `sensors` WHERE `device_id` = ? AND `entPhysicalIndex` = ? AND entPhysicalIndex_measured = 'ports'", array($device['device_id'],$port['ifIndex']))) { + $menu_options['sensors'] = 'Health'; +} + if (dbFetchCell("SELECT COUNT(*) FROM `ports_adsl` WHERE `port_id` = '".$port['port_id']."'")) { $menu_options['adsl'] = 'ADSL'; } diff --git a/html/pages/device/port/sensors.inc.php b/html/pages/device/port/sensors.inc.php new file mode 100644 index 0000000000..24b9ec5242 --- /dev/null +++ b/html/pages/device/port/sensors.inc.php @@ -0,0 +1,36 @@ + +