evora: Set up monitoring
authorAlex Dehnert <alex@dehnerts.com>
Fri, 7 Jun 2024 05:45:51 +0000 (05:45 +0000)
committerAlex Dehnert <alex@dehnerts.com>
Fri, 7 Jun 2024 05:45:51 +0000 (05:45 +0000)
local.d/adehnert-host.cfg
local.d/evora.cfg [new file with mode: 0644]

index 75c02868fab6968026c49c4eebcd0256780c46b7..d74218516cc8561dbe9172a132c2ebc000ae3e04 100644 (file)
@@ -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 (file)
index 0000000..fb24a8d
--- /dev/null
@@ -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
+}