- Published on
Database Activity Monitoring (DAM): Everything You Need To Know
- Last Updated November 25, 2026
Database activity monitoring (DAM) is the continuous tracking and analysis of what happens inside a database: who connects, what they run, what changes, and how the server performs while it happens. DAM helps organizations detect unauthorized access, prove compliance, and catch performance problems before users notice them.
This guide explains how DAM works, where it is used, and how Nagios XI monitors MySQL, Microsoft SQL Server, PostgreSQL, Oracle, and MongoDB.
What Is Database Activity Monitoring?
Database activity monitoring records and analyzes database sessions and operations in real time. For every important event, a DAM program answers five questions: who connected, what they ran, when it happened, how much load it caused, and whether it was normal.
DAM has two sides. The security and audit side focuses on access to sensitive data and privileged-user behavior. The operational side focuses on health and performance: connections, slow queries, deadlocks, replication, and storage growth. Most teams need both, and they often use different tools for each.
Why Database Activity Monitoring Matters
Databases hold the data attackers want most, and breaches keep getting more expensive. According to IBM’s 2026 Cost of a Data Breach Report, the global average cost of a data breach reached a record $4.99 million, up 12% from the previous year.
Regulations also expect activity records. PCI DSS Requirement 10 calls for logging and monitoring all access to system components and cardholder data. The HIPAA Security Rule requires mechanisms that record and examine activity in systems containing electronic protected health information.
How Does Database Activity Monitoring Work?
Database activity monitoring collects activity from the database, the server it runs on, or the network around it. It then compares that activity against rules, thresholds, or a baseline of normal behavior. When something falls outside the expected range, the system records it and alerts the responsible team.
Database Activity Monitoring Architecture
Most DAM deployments use one or more of these three collection methods.
| Approach | How it collects activity | Trade-offs |
|---|---|---|
| Native audit logging | The database writes its own audit trail, for example pgAudit, SQL Server Audit, Oracle Unified Auditing, or the MariaDB audit plugin | Built in and low cost, but logs must be shipped, stored, and reviewed somewhere |
| Agent-based | Software on the database host captures activity and system metrics | Deep visibility, but adds software to install and maintain on each server |
| Agentless or network-based | Activity is queried or observed over the network without installing anything on the host | Minimal footprint, but less detail on activity that never crosses the network |
A complete setup also watches the server underneath the database. A slow query is not always a database problem. It can point to disk I/O pressure, CPU saturation, or a network issue, and you only see that if those layers are monitored too.
Database Activity Monitoring Use Cases
- Compliance auditing. Keep the access records that auditors ask for under PCI DSS, HIPAA, SOX, and similar frameworks.
- Privileged user monitoring. Track activity from DBA and service accounts, which can usually bypass application-level controls.
- Unusual activity detection. Flag spikes in connections, failed logins, or sessions from unexpected accounts.
- Performance troubleshooting. Find long-running queries, lock contention, and deadlocks before they cause downtime.
- Capacity planning. Track database, log, and tablespace growth so storage never runs out unexpectedly.
DAM vs. Database Performance Monitoring vs. Data Security Platforms
These three terms overlap, but each answers a different question.
| Database performance monitoring | Database activity monitoring | Data security platform | |
|---|---|---|---|
| Main question | Is the database fast and available? | Who did what, and was it normal? | Is sensitive data protected across every data store? |
| Typical signals | Connections, slow queries, locks, replication, storage | Sessions, privileged activity, access patterns, audit records | Data discovery, access policies, activity monitoring, auditing |
| Primary owner | DBAs and IT operations | DBAs, security, and compliance | Security and risk teams |
Analyst firms have folded DAM into the broader security category. Gartner now lists data activity monitoring and auditing as a mandatory feature of data security platforms.
Where Nagios XI Fits in Database Activity Monitoring
Nagios XI covers the operational side of database activity monitoring and adds query-based alerting for security-relevant activity. It is not a statement-level audit or blocking tool. Instead, it works alongside native audit logs and data security platforms.
XI checks each database on the interval you set and compares the result against warning and critical thresholds. It graphs the performance data and notifies the right people when something changes.
How Nagios XI Monitors Databases
Nagios XI sets up database monitoring through Configuration Wizards. You enter connection details, pick the metrics you want, and set thresholds. XI then writes the configuration for you.
| Database | Nagios XI wizards | Example metrics |
|---|---|---|
| MySQL / MariaDB | MySQL Server, MySQL Query | Connection time, slow queries, table locks, buffer pool usage, replication status |
| Microsoft SQL Server | MSSQL Server, MSSQL Database, MSSQL Query | Deadlocks, lock waits, buffer cache hit ratio, active transactions, log growth |
| PostgreSQL | Postgres Server, Postgres Database, Postgres Query | Backend connections, locks, replication and WAL lag, table and index bloat |
| Oracle | Oracle Serverspace, Oracle Tablespace, Oracle Query | Tablespace usage, free space, time until full, connectivity |
| MongoDB | MongoDB Server, MongoDB Database | Availability, connections, database size and performance |
Step-by-step guides for each wizard are in the Nagios Library:
Query Wizards: Turn Database Activity into Alerts
The Query wizards are where Nagios XI moves from health monitoring into activity monitoring. You write a SQL query that returns a number, and XI alerts when that number crosses your thresholds. For example, this MySQL query counts statements that have been running for more than five minutes:
sql
SELECT COUNT(*)
FROM information_schema.PROCESSLIST
WHERE COMMAND <> 'Sleep' AND TIME > 300;
This PostgreSQL query counts open sessions for a privileged role:
sql
SELECT COUNT(*)
FROM pg_stat_activity
WHERE usename = '<PRIVILEGED_ROLE>';
The same approach works for audit tables, failed-job tables, or any table where an unexpected row count means something is wrong.
Agent-Based and Agentless Monitoring of the Database Host
Nagios XI supports both agent-based and agentless collection on the same server. The Nagios Cross-Platform Agent (NCPA) runs on Linux, Windows, macOS, and AIX. For hosts where you cannot install software, XI uses SNMP, WMI, WinRM, or SSH. Either way, CPU, memory, disk, and network checks sit next to your database checks, so a slow query and a saturated disk show up in the same view.
What’s New in Nagios XI for Database Teams in 2026
The current release is Nagios XI 2026R2, released September 23, 2026. These recent updates matter most for database monitoring:
- Smart Dashboards (2026R1). Build a database team view from graph, gauge, data table, and alert heatmap dashlets, then set it as that team’s home page.
- Roles (2026R2). Assign permissions through role-based presets, so DBAs see their databases without seeing the rest of the environment.
- Wizard Builder (2026R2). Create your own Configuration Wizard for an engine or check the built-in wizards do not cover.
- Nagios Mod-Gearman (since 2024R2.1). Run database checks from worker servers inside the network segment where your databases live, while alerts stay centralized in XI.
- Faster agent checks (2026R1.7). The
check_ncpaplugin is now a compiled binary that Nagios measured at up to 10x faster, so one server can carry more host checks. - Database plugin updates. Recent releases updated
check_postgres.plto 2.26.0, added a TDS version option to the MSSQL Query wizard, and fixed MongoDB authentication issues. - Capacity Planning (Enterprise Edition). Project database and tablespace growth forward from the performance data XI already collects.
Bringing Database Audit Logs into the Picture
Native audit logs answer “who did what” in full detail. Nagios Log Server, licensed separately from Nagios XI, can collect audit and error logs from your databases, index them for search, and alert on specific log content such as repeated failed logins or permission changes. Paired with XI, that gives you health, performance, and audit visibility in one ecosystem.
Database Activity Monitoring Best Practices
- Use a least-privilege monitoring account. Grant only the permissions your checks need, and never reuse a DBA or application account.
- Baseline before you set thresholds. Watch normal behavior for one to two weeks so alerts reflect real problems.
- Turn on native auditing for sensitive data. Monitoring tells you something is wrong. Audit logs tell you exactly what happened.
- Monitor the full stack. Pair database checks with host, storage, and network checks.
- Protect the monitoring server. It holds credentials for every database it checks, so keep it patched and off the public internet.
FAQ: Database Activity Monitoring
What is database activity monitoring (DAM)?
Database activity monitoring is the continuous tracking of database sessions, queries, changes, and performance. It helps organizations detect unauthorized or unusual activity, meet audit requirements under frameworks such as PCI DSS and HIPAA, and catch performance problems early. Most DAM programs combine native audit logs, health monitoring, and alerting.
Is there an open source database activity monitoring tool?
There is no single open source tool that does everything, but you can build DAM from open source parts. pgAudit (PostgreSQL) and the MariaDB audit plugin produce audit trails. Nagios Core is an open source monitoring engine with plugins for every major database. Nagios XI is built on Nagios Core and adds wizards, dashboards, reporting, and support.
Which database monitoring tools support both agent-based and agentless collection?
Nagios XI supports both on one server. It can monitor database hosts with the NCPA agent, with existing NRPE or NSClient++ agents, or agentlessly over SNMP, WMI, WinRM, and SSH. The database checks themselves connect directly to the database, so they need no agent at all.
Which databases can Nagios XI monitor?
Nagios XI includes Configuration Wizards for MySQL and MariaDB, Microsoft SQL Server, PostgreSQL, Oracle, and MongoDB. For other engines, you can use community plugins from Nagios Exchange, the Generic Plugin Wizard, or the Wizard Builder added in Nagios XI 2026R2.
Can Nagios XI replace a dedicated DAM tool?
Not for statement-level auditing or blocking. Nagios XI covers database health, performance, the surrounding infrastructure, and query-based activity alerts. Organizations with strict audit requirements typically pair it with native database auditing, a log management tool such as Nagios Log Server, or a dedicated data security platform.
Try Nagios XI Free
The fastest way to see how Nagios XI handles your databases is to point a wizard at one. The Nagios XI free trial runs for 30 days with the full Enterprise Edition feature set, and no credit card is required.
Share:
On this page
Tags
Related Articles
- Virtual Appliance Kernel Debt: How to Track Running Kernels

- SolarWinds Price Increase 2026: What Changed, What It Costs, and Enterprise Alternatives

- Autonomous IT vs. Proven Monitoring: Why Production Environments Can’t Afford to Experiment

- Why is Network Monitoring Important?

- How to Safely Introduce IoT Devices to Your Business Network
