From acd09e41958016a79363386ffe45cb490d47ffcf Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Sun, 11 Jun 2023 15:06:51 -0400 Subject: [PATCH] Add monitoring of backups --- local.d/ssh-commands.cfg | 5 +++++ local.d/xidi.cfg | 7 +++++++ 2 files changed, 12 insertions(+) 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 +} -- 2.34.1