I am using an Azure managed MySQL server to host my DBs.
I want to monitor using a test connection to one of the DB whether server is up or not. How can I add this check to my Icinga2 service?
PS - I am aware of check_mysql command but how to use it? Any working example will be very helpful. Thanks
The bare minimum you'll need is:
The text for that in Icinga2 is:
So on your Host definition you'll need to have:
If your using Icinga2 Director it's alot easier. You can just make a clone of the command and create your own fields.