l 3 monit: implement alarm interval
This commit is contained in:
parent
fe46163e58
commit
045fe83273
@ -73,7 +73,7 @@ let
|
|||||||
|
|
||||||
${concatStringsSep "\n" (mapAttrsToList (name: alarm: ''
|
${concatStringsSep "\n" (mapAttrsToList (name: alarm: ''
|
||||||
check program ${name} with path "${alarm.test}"
|
check program ${name} with path "${alarm.test}"
|
||||||
every 10 cycles
|
every ${alarm.interval} cycles
|
||||||
if status != 0 then exec "${alarm.alarm}"
|
if status != 0 then exec "${alarm.alarm}"
|
||||||
'') cfg.alarms)}
|
'') cfg.alarms)}
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user