I'm currently trying to use monit to purge my /var/log
partition from specific files whenever the partition runs out of free disk space.
I created a file named toto
and tried this test after reading the doc:
check filesystem log path /var/log
if space usage > 1% for 3 cycles then exec "/usr/bin/find /var/log/ -iname 'toto' -type f -exec rm -f {} \;"
When I start monit, it prints 'log' start skipped -- method not defined
and I haven't found yet what it means?