@{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}