From 3cf9b94cead8725bfcedf052329462f89c368a7a Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 7 Sep 2021 15:29:26 -0500 Subject: [PATCH] Add a quick service check for postgresql --- playbooks/tasks/web/nagios.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playbooks/tasks/web/nagios.yml b/playbooks/tasks/web/nagios.yml index 0ae5ea8..98f4d05 100644 --- a/playbooks/tasks/web/nagios.yml +++ b/playbooks/tasks/web/nagios.yml @@ -64,6 +64,9 @@ - name: PostgreSQL command: "check_by_ssh!/usr/lib/nagios/plugins/check_pgsql -H localhost -l nagios -p {{ secret_postgresql_monitoring_password }} -w 2 -c 5" hostgroup: nagios-checkpgsql + - name: Unit postgresql.service + command: check_by_postgresql!/usr/local/bin/monitoring-scripts/check_systemd_unit postgresql.service + hostgroup: nagios-checkpgsql # nagios-nrpeswap - name: Swap Usage command: check_by_ssh!/usr/lib/nagios/plugins/check_swap -w 20% -c 10%