Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #183761
| From | Václav Ovsík <vaclav.ovsik@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: systemd & postgresql - flooding system log - SOLUTION |
| Date | 2017-07-17 09:10 +0200 |
| Message-ID | <u48ki-1R4-9@gated-at.bofh.it> (permalink) |
| References | <u3hzk-1sg-13@gated-at.bofh.it> <u3hfY-1iw-5@gated-at.bofh.it> <u3E2S-7j3-19@gated-at.bofh.it> <u3OOB-65Y-1@gated-at.bofh.it> <u3PhD-6gu-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
systemd & postgresql - flooding system log Václav Ovsík <vaclav.ovsik@gmail.com> - 2017-07-07 16:30 +0200
Re: systemd & postgresql - flooding system log Michael Biebl <biebl@debian.org> - 2017-07-07 23:00 +0200
Re: systemd & postgresql - flooding system log Václav Ovsík <vaclav.ovsik@gmail.com> - 2017-07-08 09:40 +0200
FYI: systemd session logging - no solution Václav Ovsík <vaclav.ovsik@gmail.com> - 2017-07-10 17:10 +0200
Re: FYI: systemd session logging - no solution Joel Rees <joel.rees@gmail.com> - 2017-07-11 15:30 +0200
Re: FYI: systemd session logging - no solution Reco <recoverym4n@gmail.com> - 2017-07-12 13:00 +0200
Re: systemd & postgresql - flooding system log Don Armstrong <don@debian.org> - 2017-07-15 00:30 +0200
Re: systemd & postgresql - flooding system log Michael Biebl <biebl@debian.org> - 2017-07-15 00:50 +0200
Re: systemd & postgresql - flooding system log Václav Ovsík <vaclav.ovsik@gmail.com> - 2017-07-16 00:50 +0200
Re: systemd & postgresql - flooding system log Václav Ovsík <vaclav.ovsik@gmail.com> - 2017-07-16 12:20 +0200
Re: systemd & postgresql - flooding system log Václav Ovsík <vaclav.ovsik@gmail.com> - 2017-07-16 12:50 +0200
Re: systemd & postgresql - flooding system log Don Armstrong <don@debian.org> - 2017-07-16 18:50 +0200
Re: systemd & postgresql - flooding system log Erwan David <erwan@rail.eu.org> - 2017-07-16 19:10 +0200
Re: systemd & postgresql - flooding system log Don Armstrong <don@debian.org> - 2017-07-17 21:50 +0200
Re: systemd & postgresql - flooding system log - SOLUTION Václav Ovsík <vaclav.ovsik@gmail.com> - 2017-07-17 09:10 +0200
csiph-web