Send alert when system notification recorder could not start exists

I’ve googled, but since the menu item and end result are both notification I’m having difficulty finding a result.

I have moved my recorder database to my NAS, both my NAS and Pi are not on a UPS (I know I need one) so when the power goes out the they both reboot. The Pi boots much faster than the NAS and as such the NAS isn’t ready for the PI to connect to the database.

I get the following notification The recorder could not start, please check config" I want to detect this issue 5 minutes after the PI boots, and if it’s present reboot the PI.

What’s the best way to read the notification, detect this message, and reboot the pi with in an automation?