Re: Directory size monitoring

2017-07-11 Thread Lutz Mader
Hello Martin, this was the reason I ask for the enhancement status. > the directory size check was not implemented yet, you can observe the related > task via bitbucket to get notified when it is implemented: > https://bitbucket.org/tildeslash/monit/issues/191/check-directory-should-be-able-to-t

Re: Check file and match behavior

2017-07-11 Thread Lutz Mader
Hello Martin, this is a nice idea, but doesn't work, I think, because it is necessary to correlate the message and the timestamp check. > check file myapp_log with path /var/log/myapp.log > if timestamp is older than 1 hour then exec "/usr/bin/monit restart > myapp" Something like the foll

[M/monit 3.7.1] https configuration issue

2017-07-11 Thread LACROIX Jean Marc
Dear all, I am trying to use https on M/monit, but whithout success, probably for a stupid raeson, but i dont see where ?. My platform ansible@srv-mmonit-1:~$ uname -a Linux srv-mmonit-1 4.11.6-sunxi #6 SMP Fri Jun 23 19:56:18 CEST 2017 armv7l GNU/Linux ansible@srv-mmonit-1:~$ cat /etc/deb

Re: Check file and match behavior

2017-07-11 Thread mart...@tildeslash.com
Hi Lutz, if your application log is set to a standalone file, you can test a modification timestamp if it logs some messages while it is running. For example (syntax for Monit >= 5.22.0): check file myapp_log with path /var/log/myapp.log if timestamp is older than 1 hour

Re: Directory size monitoring

2017-07-11 Thread mart...@tildeslash.com
Hi Lutz, the directory size check was not implemented yet, you can observe the related task via bitbucket to get notified when it is implemented: https://bitbucket.org/tildeslash/monit/issues/191/check-directory-should-be-able-to-test-the Best regards, Martin > On 10 Jul 2017, at 14:19, Lutz