Check ValidUntil certificate by api

Hello.
I need to check the expiration of Keystore certificates on SAP BTP.
I found that Keystore entries are exposed as OData.
I could use : https:///api/v1/KeystoreEntries

i could use ValidNotAfter to check validity.

I found the GitHub - xWyatt/check_rest_api: Nagios Core plugin to check output from a RESTful JSON API plugin.

Is it the right way to implement my requirements?
Or are ther any other ways to achieve this?

Thanks a lot fory your help

Mario

icinga2 - The Icinga 2 network monitoring daemon (version: r2.13.1-1)

Icinga Web 2 Version
2.9.3
Git commit
c757a17530c326c7d6daebd6171486cb8167a8a1
PHP Version
7.2.24-0ubuntu0.18.04.8
Git commit date
2021-08-10

Modules:
businessprocess 2.3.1
director master
fileshipper 1.1.0
monitoring 2.9.3