I have an Icinga2 setup to monitor the servers and resources of my company. I have previously experimented using the API to change host variables and ran into some problems which were explained in my old thread:
In the end i decided to handle the host vars via the configuration files and just push up new configurations to the Icinga master when the vars needed to be changed.
Unfortunately I still have a few host vars that I set using the API that I cannot revert back to be “unset” by API and then handled by the configuration files. Is there a way to purge old API-changed host vars so that I can continue managing them using pure configuration files?
I’m thinking some database hacking or similar to remove all old revisions set using the API… Have tried to dissect the database schema to understand how something like that can be done but so far without success.
Any ideas would be appreciated.