0

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...

4

1 回答 1

0

这可能不是您正在寻找的解决方案,但您可以让更新生成一个外部 html 页面,然后使用{html-include}in confluence。所以汇合页面不会被更新,但它们显示的内容是正确的。

这样做的问题是不会更新任何汇合页面,因此如果您想要一个提要通知人们汇合上的更改,它就无法完成工作。

于 2013-02-25T15:02:05.310 回答