Alert policies
An alert policy sets which alerts check a group of databases, when they fire and who gets the mail. Open Policies › Alerts.
Before you begin
- Rules, exceptions and policies need Manage Policies. Your own alerts need Manage alerts.
- Mail and traps use Settings › Email. See Email and notifications.
- Select the engine at the top of the list: Oracle, SQL Server or PostgreSQL. The policies and the Alert Catalog are those of that engine.
Add a rule
Click the policy in the list.
Click Add Rule.
In Alert, select an alert from the Alert Catalog. If the alert is not in the list, click New Alert at the bottom of the list.
Set the fields in the table below.
Click Add Rule.
| Field | What it does | Choices |
|---|---|---|
| Fires when | Compares column 1 of the alert with this value. Contains is case-sensitive. | <, >, =, Contains |
| Checked | How often the rule runs. | Every 5 minutes (the default) up to Every hour |
| Mail to | Who gets the mail. | No one, or recipients from Settings › Email |
| Remind | Sends the mail again while the alert is open. | Never (the default) up to every week |
| Trap | Also sends the alert as a trap. | Off, Critical, Minor |
To change a rule, click its pencil. To remove it from the policy, click its bin.
Set the levels of an alert with its own settings
Some alerts show own levels in Fires When. Set their levels on the Configuration tab of the rule. The settings apply to this policy only.
| Alert | What you set |
|---|---|
| Tablespace Usage | The tablespace types, Free space below (GB) and Used above (%). Also the automatic datafile add. |
| ASM Usage | Usable space below (GB) and Used above (%). |
| OS Log Match | The codes to Include and Exclude, the Logs, the Severity and the Look back minutes. The database needs OS logs on Monitoring. |
| SQL Plan Change | The Watched Statements and the automatic plan fix. |
| Log Match (SQL Server, PostgreSQL) | The patterns to Include and Exclude, the Least severity, the Look back minutes and In use. When In use is off, the rule fires on its default. |
When both levels are on, an item must cross both. Delete under Saved settings sets the defaults again.
Add an exception
An exception changes a rule for some databases or items. You do not need another policy.
Click the number in the Exceptions column of the rule, or open the rule and click Exceptions.
For other levels on some databases: under Databases, select them. Set the Operator and the Value, or turn on Alert off. Click Add.
For one item, such as a tablespace: type the Item name (
UNDO*matches all names that start with UNDO). Select Ignore or Own threshold. Click Add.
dbCove saves each change at once. All applies an item exception to all databases of the policy, also to databases that you add later.
Create your own alert
Write a query one time, then add it to policies as a rule.
Under the list of policies, click New Alert.
Type a Name and a Description. The description goes into the mails.
Write the Query. Column 1 is the value to compare. With One alert per row, column 2 is the name of the row.
Select a database and click Test Query. You can save only after a passed test.
For an Oracle alert, confirm that your Oracle licenses cover what the query reads.
Click Add Alert. The alert opens in the Alert Catalog.
Click Add to Policy and select a policy. Set the rule, then click Add Rule. An alert that is in no policy checks nothing.
If you click New Alert in the Alert list of a rule, dbCove selects the new alert in that rule.
- The query is one SELECT, or WITH … SELECT. dbCove refuses PL/SQL and statements that change data.
- On Oracle, dbCove refuses Diagnostics and Tuning Pack sources:
DBA_HIST_views, active session history, ADDM, the advisors and SQL Monitor. - A SQL Server alert is a T-SQL query, and a PostgreSQL alert is a PostgreSQL query. You must test it on an instance of its engine. It has no license step.
- The query runs on all databases of the policy at each check. Keep it light.
To open the catalog, click Alert Catalog under the list of policies. Your alerts are under Custom. The pencil edits your alert. The bin deletes it from all policies. You cannot change the alerts under Built-in.
Create an alert policy
Click New Policy.
Type a Name and click Create Policy.
Assign databases. See the next section.
The new policy is for the engine that you selected. It gets a copy of the rules of the default policy of that engine, for example Oracle Alerts, without their exceptions.
Assign databases
Click the database count of the policy, for example 9 databases.
Select the databases of the policy. Clear the others.
Click Save.
A database that you add leaves its old alert policy. A database with no alert policy raises no alerts: show them at the bottom of the list shows these databases. A SQL Server or PostgreSQL instance always has an alert policy: an instance that you clear goes to the default policy of its engine.
Stop, rename or delete a policy
- Running switch: a stopped policy keeps its databases but checks no rules.
- Pencil: rename the policy.
- Bin: delete the policy. Its Oracle databases then have no alert policy. Its instances go to the default policy of their engine.
When an alert fires
The alert opens on Incidents. dbCove sends the mail, and a trap if Trap is on.
While the alert is open, dbCove sends the mail again if Remind is set.
At the first check without the condition, the alert clears and dbCove sends the cleared mail.
The same finding on Oracle databases with a shared host or storage is one mail and one row. A SQL Server or PostgreSQL instance always has its own mail and row.
Built-in alerts
Each engine has its own built-in alerts. The last column shows the rule in the default policy of the engine.
Oracle
| Alert | What it checks | In Oracle Alerts |
|---|---|---|
| Backup | RMAN jobs of the last day that failed or ended with errors. | Contains ERROR |
| DB Access | If dbCove can reach the database. | Its own logic |
| Tablespace Usage | Free space and used percent of each tablespace. | Under 10 GB free and over 90% used |
| ASM Usage | Usable space and used percent of each disk group. | Under 1024 GB usable and over 95% used |
| FRA Usage | Used percent of the fast recovery area. | > 80 |
| Process Limit | Use of the processes limit, in percent. A PDB counts only what it can see. Add the CDB root to watch the whole limit. | > 80 |
| Dataguard Gap | Archived logs not applied on a standby. | > 5 |
| Anomaly Waits | Active sessions in Application, Concurrency, Configuration or Other waits. | > 20 |
| Unusable Indexes, Unusable Index Partitions | The number of unusable indexes or index partitions. | > 0 |
| SQL Plan Change | Watched statements that leave their expected plan. | Its own logic |
| OS Log Match | Findings in the alert, ASM, CRS and listener logs. | Not included |
SQL Server
| Alert | What it checks | In SQL Server Alerts |
|---|---|---|
| DB Access | If dbCove can reach the instance. dbCove tries two times before the alert fires. | Its own logic |
| Backup | Hours since the newest full or differential backup of each online database, tempdb not included. A database with no backup shows 999999. | > 24, checked every hour |
| Blocking | The longest time that a request waits behind another session, in seconds. | >= 300 |
| Transaction Log Usage | Used percent of the transaction log of each database, with what the log waits for before it can be used again. | >= 90 |
| Disk Space | Used percent of each volume that holds a file of an online database. | >= 90 |
| Database State | Databases that are recovering, recovery pending, suspect or in emergency mode. | != ONLINE |
| Agent Job Failed | SQL Server Agent jobs whose newest run failed in the last 24 hours. It reads the job history in msdb: see SQL Server privileges. | = Failed |
| Availability Group | The synchronization health of each database of an availability group, on each replica that the instance sees. | != HEALTHY |
| CPU Usage | The share of the machine CPU that SQL Server uses, in percent, in the newest minute. | >= 90 |
| Memory Grants Pending | Requests that wait for a query memory grant. | >= 5 |
| Tempdb Usage | Used percent of the tempdb data files at their present size. | >= 90 |
| Log Match | The findings that Log Watch reads in the error log. By default, every Critical finding of the last 15 minutes. It reads the repository, not the instance. | Its own logic |
PostgreSQL
| Alert | What it checks | In PostgreSQL Alerts |
|---|---|---|
| DB Access | If dbCove can reach the instance. dbCove tries two times before the alert fires. | Its own logic |
| Connections Usage | Used percent of the connections that ordinary roles can open: max_connections less the reserved slots. At the limit, new sessions are refused. | >= 90 |
| Transaction ID Wraparound | The transaction ID age of each database, as a percent of the limit where PostgreSQL stops writes. | >= 50 |
| Replication Lag | The replay lag of each standby, in seconds. | >= 300 |
| WAL Receiver | On a standby that streams from its primary: the status of the WAL receiver. | != streaming |
| Replication Slot WAL | The WAL that each replication slot holds, as a percent of max_wal_size. A lost slot shows 999999. | >= 100 |
| Archiving Failing | Where the instance archives WAL and its last attempt failed: the seconds since a WAL file was last archived. | >= 3600 |
| Idle in Transaction | Each client session that is idle in a transaction, in minutes. | >= 10 |
| Blocking | Each session at the head of a chain of lock waits: the longest wait behind it, in seconds. | >= 300 |
| Prepared Transactions | The prepared transactions, in minutes since they were prepared. | >= 60 |
| Log Match | The findings that Log Watch reads in the server log. By default, every Critical finding of the last 15 minutes. It reads the repository, not the instance. | Its own logic |
Related
Updated November 29, 2026