|
From: | SZÉPE Viktor |
Subject: | Re: Monit : unmonitor during logrotate |
Date: | Mon, 06 Nov 2017 13:07:03 +0100 |
User-agent: | Horde Application Framework 5 |
Idézem/Quoting Tino Hendricks <address@hidden>:
Hi Gaston,how about using logrotate’s „prerotate“ and „postrotate" lines for something likeprerotate monit unmonitor blah endscript https://linux.die.net/man/8/logrotate Best, Tino Am 6. November 2017 um 11:29:38, tonthon (address@hidden) schrieb: Hi,Sometimes monit check services (and in my case restart them) while they are rotating their logs.Do somebody faced the same problem ? Is there some good practice to avoid monitoring during logrotate ? Thanks in advance Regards Gaston Tjebbes
There is already one in the Debian package https://anonscm.debian.org/cgit/collab-maint/monit.git/tree/debian/monit.logrotate SZÉPE Viktor, honlap üzemeltetés https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md -- +36-20-4242498 address@hidden skype: szepe.viktor Budapest, III. kerület
[Prev in Thread] | Current Thread | [Next in Thread] |