Caio James
2018-10-01 21:52:04 UTC
Greetings -
I'm doing some automation work using the check_mk APIs, and find myself challenged with the relative times returned by the API:
For example, when requesting a service status with the API, it returns something like "129 m" for the svc_state_age. This makes sense, because it's an age, but what I'm looking for is the timestamp that the last time the service state changed.
Is there a way to do this with the API? I found a way with the UI, but I'm trying to find the incantation in the API request to also display the absolute time.
Normally I can figure out this stuff by looking at the URL string, but I haven't been able to find something that works this time.
Thanks,
Caio
I'm doing some automation work using the check_mk APIs, and find myself challenged with the relative times returned by the API:
For example, when requesting a service status with the API, it returns something like "129 m" for the svc_state_age. This makes sense, because it's an age, but what I'm looking for is the timestamp that the last time the service state changed.
Is there a way to do this with the API? I found a way with the UI, but I'm trying to find the incantation in the API request to also display the absolute time.
Normally I can figure out this stuff by looking at the URL string, but I haven't been able to find something that works this time.
Thanks,
Caio