mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02:00
Merge pull request #944 from laf/issue-laf-926
Updated addhost.php to use distributed_poller_group if set
This commit is contained in:
@@ -28,7 +28,10 @@ if (isset($options['g']) && $options['g'] >= 0) {
|
|||||||
array_shift($argv);
|
array_shift($argv);
|
||||||
array_unshift($argv, $cmd);
|
array_unshift($argv, $cmd);
|
||||||
$poller_group = $options['g'];
|
$poller_group = $options['g'];
|
||||||
|
} elseif ($config['distributed_poller_group'] > 0 && $config['distributed_poller'] === TRUE) {
|
||||||
|
$poller_group = $config['distributed_poller_group'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($options['f']) && $options['f'] == 0) {
|
if (isset($options['f']) && $options['f'] == 0) {
|
||||||
$cmd = array_shift($argv);
|
$cmd = array_shift($argv);
|
||||||
array_shift($argv);
|
array_shift($argv);
|
||||||
|
|||||||
Reference in New Issue
Block a user