The space usage test must be within a "check device" statement.
such as:
check device tmpfs path /dev/mfid0s1e
if space usage > 80% then alert
On 10/5/2012 1:18 PM, Alexandre Carlos Vilarinho de Oliveira wrote:
Hello all,
Currently I´m using monit 5.5 to check if the hd space, using the command below:
if space usage > 80% then exec "/etc/init.d/scriptlimpeza.sh"
After we start monit it shows the following error:
proxy:~# /etc/init.d/monit restart
Stopping daemon monitor: monit.
Starting daemon monitor: monit/usr/local/monit-5.5/etc/monitrc:96: Error: syntax error 'space'
failed!
proxy:~#
I´ve checked the monit website and the command above is correct, can someone help please.
Atenciosamente
Alexandre Vilarinho
Gerente de Engenharia de Rede IP/TI
Tel.: (55 11) 3017-4683
Cel.: (55 11) 7757-8388
Fax: (55 11) 3017-4464
address@hidden
www.neovia.com.br
----------------------------
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general