library/roles/nagios: Add a check for the postgresql wal files.

This commit is contained in:
Andrea Dell'Amico 2017-02-15 15:55:48 +01:00
parent c148463d95
commit a46a338bf8
2 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,8 @@ nagios_psql_query_time_w: 40
nagios_psql_query_time_c: 60 nagios_psql_query_time_c: 60
nagios_psql_db_size_w: 150000000 nagios_psql_db_size_w: 150000000
nagios_psql_db_size_c: 170000000 nagios_psql_db_size_c: 170000000
nagios_psql_wal_files_w: 20
nagios_psql_wal_files_c: 40
nrpe_command_timeout: 420 nrpe_command_timeout: 420
nrpe_include_dir: /etc/nagios/nrpe.d/ nrpe_include_dir: /etc/nagios/nrpe.d/

View File

@ -5,6 +5,8 @@ command[{{ monitoring_group_name }}_check_postgresql_connection]=/usr/bin/sudo -
command[{{ monitoring_group_name }}_check_postgresql_timesync]=/usr/bin/sudo -u postgres /usr/bin/check_postgres_timesync -db template1 command[{{ monitoring_group_name }}_check_postgresql_timesync]=/usr/bin/sudo -u postgres /usr/bin/check_postgres_timesync -db template1
command[{{ monitoring_group_name }}_check_postgresql_wal_files]=/usr/bin/sudo -u postgres /usr/bin/check_postgres_wal_files -w {{ nagios_psql_wal_files_w }} -c {{ nagios_psql_wal_files_c }}
command[{{ monitoring_group_name }}_check_postgresql_backends]=/usr/bin/sudo -u postgres /usr/bin/check_postgres_backends -db template1 command[{{ monitoring_group_name }}_check_postgresql_backends]=/usr/bin/sudo -u postgres /usr/bin/check_postgres_backends -db template1
command[{{ monitoring_group_name }}_check_postgresql_commitratio]=/usr/bin/sudo -u postgres /usr/bin/check_postgres_commitratio -db template1 command[{{ monitoring_group_name }}_check_postgresql_commitratio]=/usr/bin/sudo -u postgres /usr/bin/check_postgres_commitratio -db template1