From 9aab2d65571858e7038b7c88a9dc5bfee32c4d0e Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 9 Dec 2021 16:23:59 -0600 Subject: [PATCH] Tune the transaction limits for that check we just added --- playbooks/prod_web.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/prod_web.yml b/playbooks/prod_web.yml index 51bbe80..5b765d3 100755 --- a/playbooks/prod_web.yml +++ b/playbooks/prod_web.yml @@ -255,7 +255,7 @@ hostgroup: tag-nagios-checkpgsql # https://rhaas.blogspot.com/2020/02/useless-vacuuming.html - name: PSQL Old Xacts - command: "check_by_ssh!/usr/lib/nagios/plugins/check_pgsql -H localhost -l nagios -p {{ secret_postgresql_monitoring_password }} -w 2 -c 5 -q 'select count(*)::float from pg_prepared_xacts where age(transaction) > 5000000' -C 1-1000000" + command: "check_by_ssh!/usr/lib/nagios/plugins/check_pgsql -H localhost -l nagios -p {{ secret_postgresql_monitoring_password }} -w 2 -c 5 -q 'select count(*)::float from pg_prepared_xacts where age(transaction) > 5000000' -W 500-1000 -C 1000-1000000" hostgroup: tag-nagios-checkpgsql - name: Unit postgresql.service command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_systemd_unit postgresql.service