unioslo / zabbix-auto-config

MIT License
2 stars 5 forks source link

Approve failsafe with temp file #75

Closed pederhan closed 6 months ago

pederhan commented 6 months ago

This PR adds the ability to signal approval of changes when the failsafe is hit by creating a temporary file in a location specified by the config option zac.failsafe_ok_file. If this file is detected, the application goes ahead and makes the changes.

The file is always deleted after its detection, so that each approval requires the re-creation of this file. See #73 for more information on the considerations made when implementing this.

Closes #73