SURVIVOR: @{ECHO $title}

@{IF NOTDEFINED STRING norefresh} @{ENDIF} @{INCLUDE style.html} @{SET encoded=@[URI]} @{SET instance=@[INSTANCE]} @{IF DEFINED FLAG sort} @{SET sort=@[FLAG sort]} @{SET sort=SORT $sort} @{ENDIF}

SURVIVOR

Auth Status | Status As Of @{IF STRING NOTEMPTY $instance} | Scheduler Status @{ENDIF}
--- | --- | ---
@{IF AUTHENTICATED} Logged in as @{USERNAME} (@{AUTHLEVEL}) (logout) @{ELSE} Not logged in (login) @{ENDIF} | @{TIME} @{IF STRING NOTEMPTY $instance} | @{SET asched=@[RUNNINGSTATE lastrun=alert]} @{SET csched=@[RUNNINGSTATE lastrun=check]} @{IF NUMBER $asched < 0} Failed to verify scheduler state @{ELSE} @{IF NUMBER $asched < 10} @{IF NUMBER $csched < 10} Schedulers are running @{ELSE} Check scheduler has not run in @{ECHO $csched} minutes @{ENDIF} @{ELSE} @{IF NUMBER $csched < 10} Alert scheduler has not run in @{ECHO $asched} minutes @{ELSE} Alert scheduler has not run in @{ECHO $asched} minutes Check scheduler has not run in @{ECHO $csched} minutes @{ENDIF} @{ENDIF} @{ENDIF} @{ENDIF}

@{IF DEFINED FLAG error}

Error
@{FLAG error}

@{ENDIF} @{IF DEFINED FLAG info}

Information
@{FLAG info}

@{ENDIF}