Skip to content

Commit 970a93e

Browse files
committed
Better offline messaging
Provide better messaging if the Data Collector is in offline mode
1 parent 117354d commit 970a93e

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
* issue#196: Undefined variable $ignore
1414

15+
* feature: Provide better messaging if the Data Collector is in offline mode
16+
1517
--- 4.0 ---
1618

1719
* issue: Removal of partition issues incorrect message

syslog_process.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
if (read_config_option('syslog_enabled') == '') {
9696
$message = 'WARNING: Syslog record transferral and alerting/reporting is disabled.';
9797

98-
cacti_log($warning, false, 'SYSLOG');
98+
cacti_log($message, false, 'SYSLOG');
9999
print $message . PHP_EOL;
100100

101101
exit(1);
@@ -110,6 +110,11 @@
110110
*/
111111
if ($config['poller_id'] > 1) {
112112
if (read_config_option('syslog_remote_enabled') !== 'on') {
113+
$message = 'WARNING: Syslog is offline and Remote Data Collector Message Processing is disabled!';
114+
115+
cacti_log($message, false, 'SYSLOG');
116+
print $message . PHP_EOL;
117+
113118
exit(1);
114119
}
115120

0 commit comments

Comments
 (0)