Add a quick service check for postgresql

This commit is contained in:
Salt 2021-09-07 15:29:26 -05:00
parent b349015913
commit 3cf9b94cea

View File

@ -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%