Ad Widget

Collapse

Script to create human readable lists of items, triggers, etc?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • toddblake
    Junior Member
    Zabbix Certified Specialist
    • Jul 2011
    • 27

    #1

    Script to create human readable lists of items, triggers, etc?

    We're setting up Zabbix in our environment(1,000+) servers and I'm being asked to provide documentation on all items and triggers. Also I know they'll want the docs to be kept up to date. Rather than dig through all of my templates, items, triggers, etc and manually copy these out, does anyone know of a script that's already been written to pull all that out in say a CSV? I started writing some API code and quickly realized I'd have to do alot of cross referencing between various API calls that I'd rather not do if someone else already has.
  • eskytthe
    Senior Member
    Zabbix Certified Specialist
    • May 2011
    • 363

    #2
    If you export your templates as xml, it may be more easy to do some scripting on them, and make your dokumentation?
    Br
    Erik

    Comment

    • toddblake
      Junior Member
      Zabbix Certified Specialist
      • Jul 2011
      • 27

      #3
      I started to dig into the database and have basically finished the job. I have all the data and right now am just putting the finishing touches on a script that will print out trigger information.

      Ultimately I have three scripts now, that only work against templates but are easily modifiable to do more.

      listmacros.pl
      listitems.pl
      listhosts.pl

      They're all using straight db connections and work rather well! Once complete I may post them.

      Comment

      Working...