mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Added support for logging packet loss and min/max/avg response times on fping
This commit is contained in:
@@ -58,5 +58,13 @@ if ($options['f'] === 'perf_times') {
|
||||
if ($options['f'] === 'callback') {
|
||||
require_once "callback.php";
|
||||
}
|
||||
if ($options['f'] === 'device_perf') {
|
||||
if (is_numeric($config['device_perf_purge'])) {
|
||||
if (dbDelete('device_perf', "timestamp < UNIX_TIMESTAMP(DATE_SUB(NOW(),INTERVAL ? DAY))", array($config['device_perf_purge'])) ) {
|
||||
echo 'Device performance times cleared for entries over ' . $config['device_perf_purge'] . " days\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user