zxtm installed on a virtual Linux machine (RHEL 6.9)
Got the following error in the event log:
Return code of 2 from periodic-logs command: '/opt/zeus/zxtm/bin/zsadc "$LOGCURRENT/sadc-data" >>"/opt/zeus/log/periodic-logs/current/sadc-log" 2>&1'
SELinux is set up with enforcing enabled and after some investigation that is causing the error.
Solution:
SELinux type enforcement file (zsadc.te):
policy_module(zsadc, 1.0) require { type sysstat_t; } #============= sysstat_t ============== files_delete_usr_dirs(sysstat_t) files_manage_usr_files(sysstat_t) files_rw_usr_dirs(sysstat_t)
Put the zsadc.te file in an empty folder and as root:
$ make -f /usr/share/selinux/devel/Makefile zsadc.pp $ semodule -i zsadc.pp
Thanks - We think this is related to locale issues, and has been fixed in versions 17.3 onwards - also fixed in LTS releases such as 9.9r3 and 10.4r2
It looks like you have solved already, but if you have support then you could raise a case and attach a TSR, and we can check for you.
P, ...