I would be interested in developing a script that executes on a monthly basis, retrieving a 30-day dataset of metric information gathered from a specific service. Could you please guide me on how to accomplish this programmatically?
I am aware of the option to perform this task through the user interface, but I am seeking a programmatic solution.
Let me suggest you use the built-in documentation of our REST API. You can find it in the help menu (the lower left of your) and choose “REST API documentation”. There you will also find code examples, that should get you going.
Could you please verify if the URL {site_name}/check_mk/api/1.0/domain-types/metric/actions/get/invoke is correct? I’m encountering a 404 error.
While going through the documentation, I’m having difficulty comprehending how the URL is constructed and when to utilize ‘domain-types’, ‘host_config’ and so on. In the GUI, the desired endpoint lacks an example.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.