diff --git a/app/Jobs/PingCheck.php b/app/Jobs/PingCheck.php index 82492f058c..139b2be571 100644 --- a/app/Jobs/PingCheck.php +++ b/app/Jobs/PingCheck.php @@ -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; }