X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=systems%2Feldiron%2Fwebsites%2Ftools%2Fympd.nix;fp=modules%2Fprivate%2Fwebsites%2Ftools%2Ftools%2Fympd.nix;h=0d8d41dbe2513f19f5fdcdeaae7c169c080cb22c;hb=1a64deeb894dc95e2645a75771732c6cc53a79ad;hp=531b1a90d8b888330d2214a916b5fb8e995bb022;hpb=fa25ffd4583cc362075cd5e1b4130f33306103f0;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/websites/tools/tools/ympd.nix b/systems/eldiron/websites/tools/ympd.nix similarity index 70% rename from modules/private/websites/tools/tools/ympd.nix rename to systems/eldiron/websites/tools/ympd.nix index 531b1a9..0d8d41d 100644 --- a/modules/private/websites/tools/tools/ympd.nix +++ b/systems/eldiron/websites/tools/ympd.nix @@ -1,4 +1,4 @@ -{ env }: +{ env, config }: let ympd = rec { config = { @@ -37,4 +37,18 @@ let }; }; in - ympd + ympd // { + monitoringPlugins = [ "http" ]; + monitoringObjects.service = [ + { + service_description = "mpd website is running on tools.immae.eu"; + host_name = config.hostEnv.fqdn; + use = "external-web-service"; + check_command = ["check_https_auth" "tools.immae.eu" "/mpd/" "ympd"]; + + servicegroups = "webstatus-webapps"; + _webstatus_name = "MPD (YMPD)"; + _webstatus_url = "https://tools.immae.eu/mpd/"; + } + ]; + }