Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)
OMD[crlcmk]:~$ cmk --debug -vvn hostname value store: loading from disk Checkmk version 2.4.0p20
Hi, I’ve tried everything I can think of to resolve this including starting from scratch. The log file is there, the mk_logwatch.py runs as root, but all servers this is deployed to are unable to see the file. I’m probably missing something, but I’ve been through all the settings and nothing seems to work.
Yeah, one of the first things I tried was disabling selinux, but it didn’t make any difference. Though with it being a splunk server, it runs in permissive mode anyway.
Hi, Yup, I have full access to the file and the regex works as expected. The agent is running via systemd socket and as the root user. Getfacl returns the expected results:
edit - Ran some further tests and it seems to do this for any file regardless of location or permissions.
edit - Obliterated the entire checkmk installation and redeployed. Now it doesn’t complain about the log file missing, it just doesn’t read it One step closer I guess.
Hi, Yup, I have full access to the file and the regex works as expected. The agent is running via systemd socket and as the root user. Getfacl returns the expected results:
After trying to reproduce your problem I probably first did the same error as you did:
I think you added the pattern, you want to check the content of the logfile for, into the field “Regular expression for logfile filtering” instead in “Regular expressions for message classification”. So you filter the log file names against the regex instead of the content.