leoncx / testmigrate

0 stars 0 forks source link

Test configuration Poller when no local poller enable #4

Open leoncx opened 11 years ago

leoncx commented 11 years ago

Author Name: Sebastien GIRAUD (Sebastien GIRAUD) Original Redmine Issue: 4857, https://forge.centreon.com/issues/4857 Original Date: 2013-08-29


Hello,

when using multi-collecteur and no local poller are activate, there is a probleme when testing configuration. CLAPI can't retrieve nagios_bin binary. Is it possible ti use the same behavior than centreon-core. For exemple in core/class/centreon.Config.Poller.class.php by replacing

$DBRESULT_Servers =& $this->_DB->query("SELECT `nagios_bin` FROM `nagios_server` WHERE `ns_activate` = '1' AND `localhost` = '1' LIMIT 1");

by

$DBRESULT_Servers =& $this->_DB->query("SELECT `nagios_bin` FROM `nagios_server` WHERE `localhost` = '1' ORDER BY ns_activate DESC LIMIT 1;");

Thanks, Sebastien

leoncx commented 10 years ago

Original Redmine Comment Author Name: Julien Mathis (Julien Mathis) Original Date: 2013-12-11T15:12:37Z


Centreon is not build to run without poller on the central instance....