Werk #19214: mk-sql: Ignore inactive SQL Server instances on Windows
| Component | Checks & agents | ||
| Title | mk-sql: Ignore inactive SQL Server instances on Windows | ||
| Date | Jun 22, 2026 | ||
| Level | Trivial Change | ||
| Class | New Feature | ||
| Compatibility | Compatible - no manual interaction needed | ||
| Checkmk versions & editions |
|
When the mk-sql plugin was configured to monitor all SQL Server instances on a host via a local connection (localhost, 127.0.0.1, or ::1), it attempted to connect to every discovered instance, including those that were stopped or otherwise not running. These failed connection attempts produced repeated error messages in the agent log, making it difficult to identify genuine issues.
Starting with this release, users can enable the new Ignore inactive local instances(Windows) option in the agent bakery rule for mk-sql to ignore local instances that are not currently running on Windows. When enabled, the plugin detects the running state of each SQL Server instance before attempting a connection and silently skips inactive ones, keeping the agent log clean and reducing unnecessary connection overhead. This option only applies to local connections and is disabled by default, so existing behavior is unchanged unless explicitly opted in.