You would like to audit Microsoft SQL Server 2017 using Change Auditor but it does not work even after everything has been properly configured.
So far this issue has been encountered with Microsoft SQL Server 2017 / 2019 only.
When looking at the Change Auditor Agent log on the SQL Server, you notice the following error:
Seemingly, the SQL Server installation did not create the WMI object for event tracing or the WMI class has been somehow destroyed.
This issue is not caused by Change Auditor as far as we know. It is related to Microsoft SQL event tracing. In this particular scenario the only difference between working servers and non-working servers was that the non-working servers experienced an in-place upgrade from Microsoft SQL 2016 to Microsoft SQL 2017. Potentially, the WMI class got lost in this process but we cannot tell for sure.
The below steps confirms is MSSQLSERVERTRACE object is available or not