From: Alex Dehnert Date: Sun, 28 Mar 2021 16:44:02 +0000 (-0400) Subject: Configure monitoring of salt minions X-Git-Url: https://dehnerts.com/gitweb/?a=commitdiff_plain;h=6e373969a5fbba6f08205b4a0662a668c2eaff62;p=sysconfig%2Fnagios3.git Configure monitoring of salt minions --- diff --git a/local.d/adehnert-host.cfg b/local.d/adehnert-host.cfg index f586042..8d27bc4 100644 --- a/local.d/adehnert-host.cfg +++ b/local.d/adehnert-host.cfg @@ -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 index 0000000..6d9416d --- /dev/null +++ b/local.d/bots.cfg @@ -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 index 0000000..5f603d1 --- /dev/null +++ b/local.d/roost-api.cfg @@ -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 index 0000000..f2f01e2 --- /dev/null +++ b/local.d/ssh-commands.cfg @@ -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 index 0000000..d01e8c6 --- /dev/null +++ b/local.d/virunga.cfg @@ -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 index 0000000..e32c73e --- /dev/null +++ b/local.d/wieliczka.cfg @@ -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 +}