More messaging

This commit is contained in:
cigamit committed 2018-09-23 22:15:14 -05:00
1 parent ec655bfb40
commit b9b2bcd4a2
2 files changed
+8 -2

No files matched your search

+5 -2
View File
@@ -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'),
+3
View File
@@ -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);