mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
add script for writing to the pipe
This commit is contained in:
parent
10e79d6827
commit
191839d30f
12 changed files with 223 additions and 158 deletions
|
|
@ -79,6 +79,7 @@ package:
|
|||
|
||||
ups = with cfg.checks.ups; {
|
||||
ups_to_check = upsToCheck;
|
||||
upsmon_group = upsmonGroup;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -97,5 +98,8 @@ package:
|
|||
StartLimitBurst = 3;
|
||||
};
|
||||
};
|
||||
power.ups.upsmon.settings = lib.mkIf (builtins.elem "ups" cfg.enabledCheckSets) {
|
||||
NOTIFYCMD = "${package}/bin/write-ups-status";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue