Configure monitoring of salt minions
authorAlex Dehnert <alex@dehnerts.com>
Sun, 28 Mar 2021 16:44:02 +0000 (12:44 -0400)
committerAlex Dehnert <alex@dehnerts.com>
Sun, 28 Mar 2021 16:44:02 +0000 (12:44 -0400)
local.d/adehnert-host.cfg
local.d/bots.cfg [new file with mode: 0644]
local.d/roost-api.cfg [new file with mode: 0644]
local.d/ssh-commands.cfg [new file with mode: 0644]
local.d/virunga.cfg [new file with mode: 0644]
local.d/wieliczka.cfg [new file with mode: 0644]

index f586042ed7fbba01f31038fa02171b70a84c34f5..8d27bc44d34132d4ad19ce7378ae4e0b43ee0219 100644 (file)
@@ -8,6 +8,13 @@ define host{
 define hostgroup {
         hostgroup_name  adehnert-hosts
        members         olinda,novgorod
+        hostgroup_members   adehnert-minions
+}
+
+define hostgroup {
+        hostgroup_name  adehnert-minions
+       members         bots,roost-api
+        members         virunga,wieliczka
 }
 
 define service {
@@ -35,3 +42,10 @@ define service {
        service_description     SSH
        check_command           check_ssh
 }
+
+define service {
+    use adehnert-service
+    hostgroup_name      adehnert-minions
+    service_description SALT
+    check_command       check_byssh_service!salt-minion
+}
diff --git a/local.d/bots.cfg b/local.d/bots.cfg
new file mode 100644 (file)
index 0000000..6d9416d
--- /dev/null
@@ -0,0 +1,40 @@
+define host{
+    use                     adehnert-host            ; Name of host template to use
+    host_name               bots
+    address                 192.168.123.18
+}
+
+define service {
+    use adehnert-service
+    host_name           bots
+    service_description RUN-BRIDGE
+    check_command       check_byssh_service!bridge-zulip-hangouts.service
+}
+
+define service {
+    use adehnert-service
+    host_name           bots
+    service_description RUN-CHIRON-HANGOUTS
+    check_command       check_byssh_service!chiron-hangouts.service
+}
+
+define service {
+    use adehnert-service
+    host_name           bots
+    service_description RUN-CHIRON-ZULIP
+    check_command       check_byssh_service!chiron-zulip.service
+}
+
+define service {
+    use adehnert-service
+    host_name           bots
+    service_description RUN-FORMATIONBOT-HANGOUTS
+    check_command       check_byssh_service!formationbot-hangouts.service
+}
+
+define service {
+    use adehnert-service
+    host_name           bots
+    service_description RUN-FORMATIONBOT-ZULIP
+    check_command       check_byssh_service!formationbot-zulip.service
+}
diff --git a/local.d/roost-api.cfg b/local.d/roost-api.cfg
new file mode 100644 (file)
index 0000000..5f603d1
--- /dev/null
@@ -0,0 +1,19 @@
+define host{
+    use                     adehnert-host            ; Name of host template to use
+    host_name               roost-api
+    address                 adehnert-roost-api.mit.edu
+}
+
+define service {
+    use adehnert-service
+    host_name           roost-api
+    service_description RUN-NGINX
+    check_command       check_byssh_service!nginx.service
+}
+
+define service {
+    use adehnert-service
+    host_name           roost-api
+    service_description RUN-ROOST-NG
+    check_command       check_byssh_service!roost-ng.service
+}
diff --git a/local.d/ssh-commands.cfg b/local.d/ssh-commands.cfg
new file mode 100644 (file)
index 0000000..f2f01e2
--- /dev/null
@@ -0,0 +1,4 @@
+define command{
+    command_name       check_byssh_service
+    command_line       /usr/lib/nagios/plugins/check_by_ssh -l nagios-ssh -H '$HOSTADDRESS$' -C 'check_service $ARG1$'
+}
diff --git a/local.d/virunga.cfg b/local.d/virunga.cfg
new file mode 100644 (file)
index 0000000..d01e8c6
--- /dev/null
@@ -0,0 +1,12 @@
+define host{
+    use                     adehnert-host            ; Name of host template to use
+    host_name               virunga
+    address                 virunga.mit.edu
+}
+
+define service {
+    use adehnert-service
+    host_name           virunga
+    service_description RUN-VAULT
+    check_command       check_byssh_service!vault.service
+}
diff --git a/local.d/wieliczka.cfg b/local.d/wieliczka.cfg
new file mode 100644 (file)
index 0000000..e32c73e
--- /dev/null
@@ -0,0 +1,12 @@
+define host{
+    use                     adehnert-host            ; Name of host template to use
+    host_name               wieliczka
+    address                 wieliczka.mit.edu
+}
+
+define service {
+    use adehnert-service
+    host_name           wieliczka
+    service_description RUN-SALT-MASTER
+    check_command       check_byssh_service!salt-master.service
+}