mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user