diff --git a/includes/html/pages/device/overview.inc.php b/includes/html/pages/device/overview.inc.php index 97b0c9295e..95a2f0d224 100644 --- a/includes/html/pages/device/overview.inc.php +++ b/includes/html/pages/device/overview.inc.php @@ -30,6 +30,10 @@ if ($device['os'] == 'cimc') { require 'overview/cimc.inc.php'; } +if ($device['os'] == 'ping') { + require 'overview/ping.inc.php'; +} + echo '
diff --git a/includes/html/pages/device/overview/ping.inc.php b/includes/html/pages/device/overview/ping.inc.php new file mode 100644 index 0000000000..2a2b7a0afa --- /dev/null +++ b/includes/html/pages/device/overview/ping.inc.php @@ -0,0 +1,34 @@ +perf; + +if ($perf->isNotEmpty()) { + $perf_url = Url('device') . '/device=' . DeviceCache::getPrimary()->device_id . '/tab=graphs/group=poller/'; + echo ' +
+
+
+ + + + + +
'; + + $graph = \App\Http\Controllers\Device\Tabs\OverviewController::setGraphWidth([ + 'device' => DeviceCache::getPrimary()->device_id, + 'type' => 'device_ping_perf', + 'from' => \LibreNMS\Config::get('time.day'), + 'legend' => 'yes', + 'popup_title' => DeviceCache::getPrimary()->hostname . ' - Ping Response', + ]); + + echo \LibreNMS\Util\Url::graphPopup($graph, \LibreNMS\Util\Url::lazyGraphTag($graph), $perf_url); + echo '
+
+
+
'; +}//end if