monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

can I combine these


From: Nick Upson
Subject: can I combine these
Date: Thu, 24 Jan 2013 10:43:39 +0000


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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]