We currently use a patched version of https://github.com/southbridgeio/zab...bbix-export.py to regularly export data from zabbix and commit to git.
We use it to monitor when things are changed. We already backup the server, so we'll never use the git repo to restore anything in case of emergency.
We've had to start maintaining zabbix-export.py ourselves, since the project seems to be dead. I thought we could use a simple shell script instead, that calls https://www.zabbix.com/documentation...uration/export but it seems we can only use that to export specific entities. We can't, for example, export all hosts.
We could call host.get to get a list of all hosts, and then call config.export on each one, but I wanted to check if there is maybe a simpler way?
We use it to monitor when things are changed. We already backup the server, so we'll never use the git repo to restore anything in case of emergency.
We've had to start maintaining zabbix-export.py ourselves, since the project seems to be dead. I thought we could use a simple shell script instead, that calls https://www.zabbix.com/documentation...uration/export but it seems we can only use that to export specific entities. We can't, for example, export all hosts.
We could call host.get to get a list of all hosts, and then call config.export on each one, but I wanted to check if there is maybe a simpler way?
Comment