EL6/CentOS6:
In /etc/syslog-ng/syslog-ng.conf comment out the include part like this:
#include "conf.d/*.conf";
Then reload syslog-ng
service syslog-ng reload
Note this fix will stop syslog-ng from using all filters in conf.d. This is only a problem if you have custom filters that you wish to use.
In a default OP5 Monitor system there are only this file op5-syslog-ng.conf present in conf.d
ls -l /etc/syslog-ng/conf.d/*
Now you can optionally disable postgres.
chkconfig postgresql off service postgresql stop
EL7/CentOS7:
Disable custom rsyslog configuration:
for file in /etc/rsyslog.d/op5-rsyslog{,-pgsql,-file}.conf; do mv "$file" "${file}.disabled"; done
Restart:
systemctl try-restart rsyslog
Now you can optionally disable PostgreSQL:
systemctl stop postgresql && systemctl mask postgresql
For feature see: MON-7236 - Getting issue details... STATUS
Logrotate
You may also want to disable the daily log rotation to stop error messages from being sent out when it fails, since it will attempt to connect to the database:
sed -i 's/^/#/' /etc/cron.d/op5-logger-logrotate
-
Tags:
- logger
- disable logger
- syslog-ng
- rsyslog
Comments
0 comments
Please sign in to leave a comment.