From: Alex Dehnert Date: Tue, 1 Jul 2025 21:15:14 +0000 (+0000) Subject: wieliczka: Alert on age of vault-secrets.conf X-Git-Url: https://www.dehnerts.com/gitweb/?a=commitdiff_plain;h=f7aec8c980687d15beebe51353b6795eb92f579d;p=sysconfig%2Fnagios3.git wieliczka: Alert on age of vault-secrets.conf This depends on adehnert-sysconfig/salt commit 6ce2078ddb3a2e, and adds the check proposed in https://gitlab.com/adehnert-sysconfig/salt/-/issues/28#note_2457313345 --- diff --git a/local.d/wieliczka.cfg b/local.d/wieliczka.cfg index 3b1e240..d278e8f 100644 --- a/local.d/wieliczka.cfg +++ b/local.d/wieliczka.cfg @@ -23,3 +23,14 @@ define service { # Often takes more than 10 seconds to run check_command check_byssh_generic_slow!check_salt_vault } + +define service { + # Check infrequently, because this is really for expiry checking + # But catch the recovery quickly ish + use adehnert-rare-service + retry_interval 15 + host_name wieliczka + service_description SALT-VAULT-SECRET + check_command check_byssh_generic!check_file_age salt-vault-secrets + contact_groups adehnert-priv +}