dbWatch engine alert


Job details

Name: dbWatch engine alert
Platform: Postgres
Category: Internal
Description: Collects database uptime statistics.
Long description:
Version: 1
Default schedule: 15m
Requires engine install: No
Compatibility tag:

Parameters

Name Default value Description
ignore_databases 4 List of databases (separated by comma) which will be ignored.
multi_engine_status 4 Return status value (ALARM – 2, WARNING – 1, or OK – 0) when there are more than one dbWatch engine installed.
active_engine_status 4 Return status value (ALARM – 2, WARNING – 1, or OK – 0) when there are more than one active dbWatch engines (tasks executed within last 30 minutes), or if the dbWatch engine is not active (tasks not executed within last 30 minutes).

Job Summary

SELECT schemaname FROM pg_tables WHERE tablename = 'dbw_tasks';
SELECT relfilenode FROM pg_class WHERE relname = 'dbw_tasks';
SELECT pg_relation_filepath(relfilenode);
SELECT creation FROM pg_stat_file('./'+relfilenodedir);
SELECT case when max(LAST_RUN) is null then now()-cast(999||'days' as interval) else max(LAST_RUN) end, case when max(LAST_RUN) is null then 99999 else DATE_PART('minute', now() - max(LAST_RUN)) + DATE_PART('hour', now() - max(LAST_RUN)) * 60 + DATE_PART('day', now() - max(LAST_RUN)) * (60 * 24) end FROM schemaName.dbw_tasks;

Detailed Reporting

Column Title Description
Instance The identifier for the PostgreSQL instance
dbWatch engines count The total number of dbWatch engines installed
Active dbWatch engines Number of dbWatch engines that are currently active and executing tasks
Details Descriptive information about each dbWatch engine, such as creation date and last task execution status

Compatibility and Schedule

Importance of Monitoring dbWatch Engines

Monitoring the dbWatch engines is crucial in a PostgreSQL environment to ensure that: