File: //usr/share/doc/check-mk-agent-locaweb-plugins/pgsql.yaml
application-name: shared-pgsql
provides: shared-pgsql
sla-metric: 99.6
monitoring:
- service: tcp_port_5432
interval: 1
attempts: 2
port: 5432
check: active
item: tcp
sla: true
sla-group: shared-pgsql
- service: PostgreSQL_Check
doc: Check if PostgreSQL is responding internally
check: local
item: pgsql
dbname: postgres
user: postgres
pgpassfile: /etc/locaweb/monitoring/pgpass
host: localhost
port: 5432
# number of connections thresholds
thresholds: "{'warning': 80, 'critical': 100}"
sla: true
sla-group: shared-pgsql