Add monitoring of backups master
authorAlex Dehnert <alex@dehnerts.com>
Sun, 11 Jun 2023 19:06:51 +0000 (15:06 -0400)
committerAlex Dehnert <alex@dehnerts.com>
Sun, 11 Jun 2023 19:06:51 +0000 (15:06 -0400)
local.d/ssh-commands.cfg
local.d/xidi.cfg

index 3d68e32f717762fc25e563b362e00c8885aaf493..1157aef2c62f50b0c8bce71d69821e05b0dd1397 100644 (file)
@@ -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$'
index ff8fd72b3a75e95110c0a9a64c85e189cbc25968..78aa888dd442c22bf409053aed11902c8d835792 100644 (file)
@@ -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
+}