Added TOS support for fping (#13496)

* TOS support for fping in LibreNMS/Data/Source/Fping.php

* TOS support for fping in app/Jobs/PingCheck.php

* Doc

* Improve doc
This commit is contained in:
PipoCanaja
2021-11-11 22:33:01 +01:00
committed by GitHub
parent 18992df7b0
commit 29f1cb53ab
3 changed files with 7 additions and 1 deletions

View File

@@ -82,8 +82,9 @@ class PingCheck implements ShouldQueue
// set up fping process
$timeout = Config::get('fping_options.timeout', 500); // must be smaller than period
$retries = Config::get('fping_options.retries', 2); // how many retries on failure
$tos = Config::get('fping_options.tos', 0); // TOS marking
$this->command = ['fping', '-f', '-', '-e', '-t', $timeout, '-r', $retries];
$this->command = ['fping', '-f', '-', '-e', '-t', $timeout, '-r', $retries, '-O', $tos];
$this->wait = Config::get('rrd.step', 300) * 2;
}