mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Change fping hardcoded binary to user defined fping (#13720)
This check should run using the binary which is configured by the user. Some users user a wrapper script to add/remove options or extend fping functionality.
This commit is contained in:
@@ -83,8 +83,9 @@ class PingCheck implements ShouldQueue
|
||||
$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
|
||||
$fping = Config::get('fping', 'fping'); // use user defined binary
|
||||
|
||||
$this->command = ['fping', '-f', '-', '-e', '-t', $timeout, '-r', $retries, '-O', $tos];
|
||||
$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