My goal is to create a dump of as much of Icinga configuration as possible in order to compare after configuration edits.
I am struggling to obtain a simple and sortable object list.
I have tried two things:
icinga2 object list: order of objects is random, so two dumps are difficult to compare. Additionally, this output is in no particular structured format making post-processing (like sorting) difficult.
REST API: Only possible to dump each object type explicitly, in contrast to “icinga2 object list”. But at least it’s JSON and post-processing is easy.
So, how do I dump the configuration before and after modifications in a way that it can be easily compared?