check device opt with path /opt
if space usage > 99% then
  exec "/bin/bash -c '/usr/bin/monit stop database'"
if space usage > 99% then
  alert

It would be cleaner to write

check device opt with path /opt
if space usage > 99% then
  exec "/bin/bash -c '/usr/bin/monit stop database'"
  alert

but that is rejected     Error: syntax error 'if'

-- 
Nick Upson, Telensa Ltd
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to