mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Improved Latency graph Store loss+jitter info in rrd instead of database New graph icmp_perf (legacy ping_perf still valid referencing part of the newer data) Delete device_perf table * Change loss to an area so it is more visible * Style fixes * Cleanups from phpstan & tests * exit_code fix * Remove alert usage of device_perf * Don't use magic __get * Add test for bulkPing Add host to previous tests * style fixes * Fix issue fping error responses
33 lines
1.2 KiB
PHP
33 lines
1.2 KiB
PHP
<?php
|
|
|
|
if (Rrd::checkRrdExists(Rrd::name(DeviceCache::getPrimary()->hostname, 'icmp-perf'))) {
|
|
$perf_url = Url('device') . '/device=' . DeviceCache::getPrimary()->device_id . '/tab=graphs/group=poller/';
|
|
echo '
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="panel panel-default panel-condensed">
|
|
<div class="panel-heading">
|
|
<a href="' . $perf_url . '">
|
|
<i class="fas fa-area-chart fa-lg icon-theme" aria-hidden="true"></i><strong>Ping Response</strong></a>
|
|
</div>
|
|
<table class="table table-hover table-condensed table-striped">
|
|
<tr>
|
|
<td colspan="4">';
|
|
|
|
$graph = \App\Http\Controllers\Device\Tabs\OverviewController::setGraphWidth([
|
|
'device' => DeviceCache::getPrimary()->device_id,
|
|
'type' => 'device_icmp_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 ' </td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>';
|
|
}//end if
|