Alarm on Database Errors

If you are on windows, you might be able to use system.util.execute and wmic

Monitor CPU load of DB Server - Ignition - Inductive Automation Forum