blob: de0ce867867a791fddf1a82936b75e58706ae0c2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ lib, hostFQDN, emailCheck, ... }:
let
defaultPassiveInfo = {
filter = lib.attrsets.filterAttrs
(k: v: builtins.elem k ["service_description"] || builtins.substring 0 1 k == "_");
use = "external-passive-service";
freshness_threshold = "450";
retry_interval = "1";
servicegroups = "webstatus-resources";
host_name = hostFQDN;
};
in
{
service = [
{
passiveInfo = defaultPassiveInfo // { servicegroups = "webstatus-resources"; };
service_description = "No RAID device is degraded";
use = "local-service";
check_command = ["check_megaraid"];
}
];
}
|