diff options
Diffstat (limited to 'systems/monitoring-1/monitoring/phare.nix')
-rw-r--r-- | systems/monitoring-1/monitoring/phare.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/systems/monitoring-1/monitoring/phare.nix b/systems/monitoring-1/monitoring/phare.nix new file mode 100644 index 0000000..0ce9ffe --- /dev/null +++ b/systems/monitoring-1/monitoring/phare.nix | |||
@@ -0,0 +1,20 @@ | |||
1 | { monitoring, config, ... }: | ||
2 | let | ||
3 | emailCheck = monitoring.lib.emailCheck config.myEnv.monitoring.email_check; | ||
4 | in | ||
5 | { | ||
6 | config.myServices.monitoring.activatedPlugins = [ "emails" ]; | ||
7 | config.myServices.monitoring.objects.host = { | ||
8 | "phare.normalesup.org" = { | ||
9 | alias = "phare.normalesup.org"; | ||
10 | address = "phare.normalesup.org"; | ||
11 | use = "linux-server"; | ||
12 | hostgroups = "webstatus-hosts"; | ||
13 | _webstatus_name = "phare"; | ||
14 | _webstatus_vhost = "status.immae.eu"; | ||
15 | }; | ||
16 | }; | ||
17 | config.myServices.monitoring.objects.service = [ | ||
18 | (emailCheck "phare" "phare.normalesup.org") | ||
19 | ]; | ||
20 | } | ||