|Subject:||Re: Syntax for else if|
|Date:||Thu, 16 Jun 2016 12:19:21 +0100|
ELSE IF SUCCEEDED THEN
ELSE IF <test> THEN
I am configuring pagerduty integration with monit and have run into a roadblock while setting it up. As per the pagerduty documentation,
- to trigger a new incident, we need to addwhich works fine.
if does not exist for 3 cycles then exec "/etc/monit/pagerduty-trigger crond"
- to automatically mark the issue as resolved, we need to addbut this causes syntax error.
else if passed for 3 cycles then exec "/etc/monit/pagerduty-resolve crond"
So, I looked up the monit documentation at https://mmonit.com/monit/documentation/monit.html and it shows the following syntax:and this causes validation error as well.
IF <test> THEN <action> [ELSE IF SUCCEEDED THEN <action>]
I went through the changelog as well as the issue list on bitbucket but failed to find any information on the same. Has anything changed? Did I miss something here?
|[Prev in Thread]||Current Thread||[Next in Thread]|