From 82af9a5b2b2c4def3e8e794d2b0fed6468198228 Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Fri, 7 Jun 2024 05:45:51 +0000 Subject: [PATCH] evora: Set up monitoring --- local.d/adehnert-host.cfg | 6 ++++-- local.d/evora.cfg | 12 ++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 local.d/evora.cfg diff --git a/local.d/adehnert-host.cfg b/local.d/adehnert-host.cfg index 75c0286..d742185 100644 --- a/local.d/adehnert-host.cfg +++ b/local.d/adehnert-host.cfg @@ -16,7 +16,7 @@ define hostgroup { define hostgroup { hostgroup_name adehnert-minions members bots,roost-api - members virunga,wieliczka,xidi,augsburg,chankillo + members virunga,wieliczka,xidi,augsburg,chankillo,evora } define service { @@ -48,13 +48,15 @@ define service { define service { use adehnert-service hostgroup_name adehnert-hosts - host_name !xidi + host_name !xidi,!evora service_description PING check_command check_ping!500.0,30%!3000.0,80% } define service { use adehnert-service hostgroup_name adehnert-hosts + # evora is connected to using port forwarding, so the basic ssh check doesn't work + host_name !evora service_description SSH check_command check_ssh } diff --git a/local.d/evora.cfg b/local.d/evora.cfg new file mode 100644 index 0000000..fb24a8d --- /dev/null +++ b/local.d/evora.cfg @@ -0,0 +1,12 @@ +define host{ + use adehnert-host ; Name of host template to use + host_name evora + address evora.dehnerts.com + # Unpingable, so check using ssh instead + check_command check_ssh_dd_port!35522 +} + +define command{ + command_name check_ssh_dd_port + command_line /usr/lib/nagios/plugins/check_ssh -p '$ARG1$' duck-dacha.dehnerts.com +} -- 2.34.1