I have a python script that runs once a day, connects to our Zabbix monitoring database and pulls out all the active monitoring checks and documents them into Confluence.
My problem is that each hosts' confluence page gets updated every time the script runs, even if the monitoring hasn't changed.
A quick hack would be to get a hash of the page content and compare it with a hash of the script-generated content and only replace when the hashes don't match. Obviously the problems with this are that the script still needs to generate whole page content for comparison, and that it replaces the whole page or not at all, loosing confluence's built-in diff checker.
I'm hoping to find a more elegant solution, especially one that may allow me to update only the differences...