Add Zabbix Agent to logviewer

- Configure Zabbix Agent to log to syslog instead of its own logs.
- Remove old zabbix log-dir and logrotate settings from rootfile, lfs
  and install-script.
- Update log.dat to view Zabbix Agent logging from syslog.

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
This commit is contained in:
Robin Roevens
2023-04-18 20:45:12 +02:00
committed by Peter Müller
parent ce195c328e
commit 957b6f92b9
6 changed files with 7 additions and 28 deletions

View File

@@ -1,4 +1,3 @@
etc/logrotate.d/zabbix_agentd
etc/rc.d/init.d/zabbix_agentd
etc/sudoers.d/zabbix_agentd
etc/sudoers.d/zabbix_agentd_user
@@ -21,4 +20,3 @@ var/ipfire/zabbix_agentd/zabbix_agentd_ipfire_mandatory.conf
var/ipfire/zabbix_agentd/userparameters
var/ipfire/zabbix_agentd/userparameters/userparameter_pakfire.conf
var/ipfire/zabbix_agentd/userparameters/userparameter_ipfire.conf
#var/log/zabbix

View File

@@ -1,9 +0,0 @@
/var/log/zabbix/zabbix_agentd.log {
monthly
rotate 12
compress
delaycompress
missingok
notifempty
create 0640 zabbix zabbix
}

View File

@@ -1,8 +1,7 @@
PidFile=/var/run/zabbix/zabbix_agentd.pid
# Log rotation is managed by logrotate
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
# Logs go to syslog so it can be viewed in WUI logviewer
LogType=system
# These paths are included in the IPFire backups. Do not put user modules
# or configuration files in other locations if you want them included in the