Ad Widget

Collapse

Easily interact with the API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qix
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2006
    • 423

    #1

    Easily interact with the API

    I've been working on a collection of small python scripts to automate zabbix tasks that can be reused in simple shell scripts (they accept commandline arguments and create easily parsable output).

    You can download graphs, link hosts to templates, find a hosts proxy server, etc. all with a few simple cli utilities.

    You can find them here, more are to come:

    Various scripts to automate tasks in Zabbix. Contribute to q1x/zabbix-gnomes development by creating an account on GitHub.
    With kind regards,

    Raymond
  • timbo
    Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2013
    • 50

    #2
    This looks great!

    I have been wondering how I could go about extracting graphs so I can publish semi-live (cron) versions on our internal wiki.

    I can also see myself using this to generate automated email reports, perhaps even on trigger events, hmm...

    I look forward to see how much further this develops.

    Thanks!

    -Timbo

    Comment

    • qix
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2006
      • 423

      #3
      Originally posted by timbo
      This looks great!
      Thanks!

      Originally posted by timbo
      I have been wondering how I could go about extracting graphs so I can publish semi-live (cron) versions on our internal wiki.
      That was exactly the sort of scenario that script was meant for :-)

      Originally posted by timbo
      I can also see myself using this to generate automated email reports, perhaps even on trigger events, hmm...
      Mailing graphs after a trigger event is indeed an interesting idea!
      Maybe I need to create a tool that can find all related graphs for an item :-)

      Originally posted by timbo
      I look forward to see how much further this develops.
      Well, on my wishlist currently:
      • a gnome to list all hosts in a group (should be an easy one)
      • a gnome to create hosts
      • a gnome to create screens
      • a gnome to add rows of graphs to screens
      • a gnome to test hosts on certain properties (monitored, member of group, linked to template, etc.)
      Last edited by qix; 09-10-2014, 11:27.
      With kind regards,

      Raymond

      Comment

      • qix
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2006
        • 423

        #4
        Originally posted by qix
        • a gnome to list all hosts in a group (should be an easy one)
        This one is done!
        With kind regards,

        Raymond

        Comment

        • qix
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2006
          • 423

          #5
          Added some more scripts and functionality, you can now:
          • enable or disable a trigger on a host
          • switch host inventory modes for hosts, hostgroups or ALL HOSTS
          • find the right proxy for a host (useful for trapper scripts)
          • list all active triggers on a host
          • find out which hosts are linked to a template
          • link all hosts in a hostgroup to a template (e.g. link the Linux template to all hosts in the group "Linux servers")
          • ...and more!


          More to come!
          With kind regards,

          Raymond

          Comment

          • MattyD
            Junior Member
            • Feb 2015
            • 4

            #6
            Thanks for your work qix, it's quite great!

            A while ago, I had asked if there was a way that users may be able to start tracking the count of triggers by type. You had mentioned it may be possible with your gnomes.

            What are your thoughts on this? It'd be great to be able to graph trigger severities!

            Comment

            Working...