Hi,
By default checkmk views use Mixed timestamp which shows log entry time under 24 hours as minutes or hours. I understand this can be changed to Absolute on web GUI.
Can I also get the Absolute on if I am fetching data by curl the url? Like https://xxxx/check_mk/view.py?view_name=page&_username=automation&_secret=xxxx&output_format=json& ". Is there anything I can add to set the timestamp here?
Thanks,
Rick
r.sander
(Robert Sander)
November 18, 2020, 8:50am
2
Use the URL parameter po_ts_format=abs for that.
2 Likes
Making it like https://xxxx/check_mk/view.py?view_name=page&_username=automation&_secret=xxxx&output_format=json&po_ts_format=abs ?
Still the same to me unfortunately.
Is there a document of all these parameters by the way?
Thanks
r.sander
(Robert Sander)
November 19, 2020, 8:19am
4
There is no documentation for all the parameters currently. You see them as soon as you manipulate the filters or display options in the browser.
With CMK 2.0 and the REST API this will change as the new API will be self-documented.
r.sander:
po_ts_format=abs
Ok thanks.
But po_ts_format=abs doesn’t work for me.
It’s still returning the relevant time like 21h.
curl “https://xxx/check_mk/view.py?view_name=page&_username=automation&_secret=xxx&output_format=json&po_ts_format=abs ”
[
“19 h”,
“smg.page”,
“xxx”,
“Filesystem /usr”,
“WARN”,
“WARN - 80.23% used (9.62 of 11.99 GB), (warn/crit at 80.0%/90.0%), trend: +16.49 MB / 24 hours”
],
[
“21 h”,
“smg.page”,
“xxx”,
“Filesystem /usr”,
“OK”,
“OK - 79.96% used (9.59 of 11.99 GB), trend: -6.34 MB / 24 hours”
]
system
(system)
Closed
November 24, 2021, 8:46pm
6
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.