diff --git a/include/global_arrays.php b/include/global_arrays.php index ef97d4192..98059f4ad 100644 --- a/include/global_arrays.php +++ b/include/global_arrays.php @@ -299,11 +299,14 @@ $messages = array( 'poller_nosync' => array( 'message' => __('Data Collector synchronization must be initiated from the main Cacti server.'), 'level' => MESSAGE_LEVEL_ERROR), + 'poller_nomain' => array( + 'message' => __('Synchronization does not include the Central Cacti Database server.'), + 'level' => MESSAGE_LEVEL_ERROR), 'poller_nodupe' => array( - 'message' => __('When saving a Remote Data Collector, the DB Hostname must be unique from all others.'), + 'message' => __('When saving a Remote Data Collector, the Database Hostname must be unique from all others.'), 'level' => MESSAGE_LEVEL_ERROR), 'poller_dbhost' => array( - 'message' => __('Your Remote Database Hostname must be something other than \'localhost\' for each Remote Data Collector..'), + 'message' => __('Your Remote Database Hostname must be something other than \'localhost\' for each Remote Data Collector.'), 'level' => MESSAGE_LEVEL_ERROR), 'reports_save' => array( 'message' => __('Report Saved'), diff --git a/pollers.php b/pollers.php index 2a4f21db0..c0e010429 100644 --- a/pollers.php +++ b/pollers.php @@ -316,6 +316,9 @@ function form_actions() { if ($poller['dbhost'] == 'localhost') { raise_message('poller_dbhost'); continue; + } elseif ($item == 1) { + raise_message('poller_nomain'); + continue; } else { replicate_out($item);