Ad Widget

Collapse

Store data in git

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • einsibjani
    Junior Member
    • Sep 2019
    • 9

    #1

    Store data in git

    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?
  • PavelZ
    Senior Member
    • Dec 2024
    • 165

    #2
    There is a new actively developing project - https://github.com/retigra/ZabbixCI
    Suggest you try it.

    Comment

    • einsibjani
      Junior Member
      • Sep 2019
      • 9

      #3
      Thanks. I already checked out ZabbixCI, but from what I gather, it only exports/imports templates.
      I've gone ahead and updated our fork of zabbix-export.py, it wasn't that hard

      Comment

      Working...