File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 9595if (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 );
110110 */
111111if ($ 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
You can’t perform that action at this time.
0 commit comments