From: Alex Dehnert Date: Sun, 11 Jun 2023 19:06:51 +0000 (-0400) Subject: Add monitoring of backups X-Git-Url: https://dehnerts.com/gitweb/?a=commitdiff_plain;h=acd09e41958016a79363386ffe45cb490d47ffcf;p=sysconfig%2Fnagios3.git Add monitoring of backups --- diff --git a/local.d/ssh-commands.cfg b/local.d/ssh-commands.cfg index 3d68e32..1157aef 100644 --- a/local.d/ssh-commands.cfg +++ b/local.d/ssh-commands.cfg @@ -13,6 +13,11 @@ define command{ command_line /usr/lib/nagios/plugins/check_by_ssh -l nagios-ssh -H '$HOSTADDRESS$' -C '$ARG1$' } +define command{ + command_name check_byssh_1arg + command_line /usr/lib/nagios/plugins/check_by_ssh -l nagios-ssh -H '$HOSTADDRESS$' -C '$ARG1$ $ARG2$' +} + define command{ command_name check_byssh_generic_slow command_line /usr/lib/nagios/plugins/check_by_ssh --timeout=30 -l nagios-ssh -H '$HOSTADDRESS$' -C '$ARG1$' diff --git a/local.d/xidi.cfg b/local.d/xidi.cfg index ff8fd72..78aa888 100644 --- a/local.d/xidi.cfg +++ b/local.d/xidi.cfg @@ -5,3 +5,10 @@ define host{ # Unpingable, so check using ssh instead check_command check_ssh } + +define service { + use adehnert-service + host_name xidi + service_description BACKUP-AGE + check_command check_byssh_generic!check_file_age borg +}