On Sun, Jul 16, 2017 at 12:32:22PM +0200, Václav Ovsík wrote: >... > With su is /var/log/auth.log flooded too, I didn't noticed > before :-/ (logcheck was filtering this). So the last chance is probably > the utility setpriv mentioned in the runuser manpage. Unfortunately the > utility is in the optional package with the same name and must by > installed additionally. I will try tomorrow and write about it.
The setpriv is the final solution I hope. Replacement su by setpriv using the command: sed -r 's/su - \$DBUSER -c/setpriv --euid $DBUSER bash -c/g;' in the mk_postgres [1] quiets all log messages from pam and systemd. [1] http://git.mathias-kettner.de/git/?p=check_mk.git;a=blob;f=agents/plugins/mk_postgres;h=1de9b6de2d536b5d254888e6188fa3ec8b64c9bc;hb=HEAD Cheers -- Zito