From 8391a39f8f996d381677f501293f18c6e4a2391a Mon Sep 17 00:00:00 2001 From: laf Date: Sat, 9 May 2015 10:34:55 +0100 Subject: [PATCH] Updated addhost.php to use distributed_poller_group if set --- addhost.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addhost.php b/addhost.php index c69668bc7f..d61cccf3d0 100755 --- a/addhost.php +++ b/addhost.php @@ -28,7 +28,10 @@ if (isset($options['g']) && $options['g'] >= 0) { array_shift($argv); array_unshift($argv, $cmd); $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) { $cmd = array_shift($argv); array_shift($argv);