Mysql SSL expiry check from a remote server


I want to monitor the SSL certificate expiry of MySQL server hosted remotely. There is an option in check_ssl_cert plugin “–protocol mysql” but it doesnt seem to work when I mention host IP and port (mysql port number).
Am I using this plugin wrongly or is there any other plugin available to achieve this?

Master and node icinga versions: r2.13.3-1
OS: Ubuntu 20.04