diff options
Diffstat (limited to 'modules/private/monitoring/default.nix')
-rw-r--r-- | modules/private/monitoring/default.nix | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/modules/private/monitoring/default.nix b/modules/private/monitoring/default.nix index d593e55..5f8a8c9 100644 --- a/modules/private/monitoring/default.nix +++ b/modules/private/monitoring/default.nix | |||
@@ -232,7 +232,32 @@ in | |||
232 | 232 | ||
233 | config = lib.mkIf cfg.enable { | 233 | config = lib.mkIf cfg.enable { |
234 | services.nginx = lib.mkIf config.myServices.status.enable { | 234 | services.nginx = lib.mkIf config.myServices.status.enable { |
235 | virtualHosts."status.immae.eu".locations = objectsFiles; | 235 | virtualHosts."status.immae.eu".locations = objectsFiles // { |
236 | "=/common/immae.cfg" = { | ||
237 | alias = pkgs.writeText "immae.cfg" '' | ||
238 | # put me for instance in /etc/naemon/module-conf.d/immae.cfg | ||
239 | # Make sure that you have include_dir=module-conf.d in | ||
240 | # naemon.cfg | ||
241 | log_initial_states=1 | ||
242 | date_format=iso8601 | ||
243 | admin_email=${config.myEnv.monitoring.email} | ||
244 | obsess_over_services=1 | ||
245 | ocsp_command=notify-master | ||
246 | ''; | ||
247 | }; | ||
248 | "=/common/resource.cfg" = { | ||
249 | alias = pkgs.writeText "resource.cfg" '' | ||
250 | # Resource.cfg file | ||
251 | # Replace this with path to monitoring plugins | ||
252 | $USER1$=@@COMMON_PLUGINS@@ | ||
253 | # Replace this with a path to scripts from | ||
254 | # https://git.immae.eu/cgit/perso/Immae/Config/Nix.git/tree/modules/private/monitoring/plugins | ||
255 | $USER2$=@@IMMAE_PLUGINS@@ | ||
256 | $USER200$=https://status.immae.eu/ | ||
257 | $USER201$=@@TOKEN@@ | ||
258 | ''; | ||
259 | }; | ||
260 | }; | ||
236 | }; | 261 | }; |
237 | 262 | ||
238 | services.duplyBackup.profiles.monitoring = { | 263 | services.duplyBackup.profiles.monitoring = { |