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%