ahaerpfer / ansible-inventory-omd-livestatus

Ansible dynamic inventory script for OMD Livestatus.
BSD 2-Clause "Simplified" License
1 stars 1 forks source link

Use JSON output format when querying the livestatus socket #13

Closed ahaerpfer closed 7 years ago

ahaerpfer commented 7 years ago

See https://mathias-kettner.de/checkmk_livestatus.html#Output%20formatting%20and%20character%20encoding; using JSON should be safer and is easier to parse, anyway.

ahaerpfer commented 7 years ago

Side note: since JSON is UTF-8 encoded this also requires some tweaks when sanitizing hostgroup names (see also #2).