Ad Widget

Collapse

Zabbix API reports

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PetrSkyva
    Junior Member
    • Feb 2017
    • 9

    #1

    Zabbix API reports

    Hello,

    can I somehow use Zabbix API to get data from reports? Mostly I want to get datas from Availability report:
    Name, Problems ( percent ), Ok (percent) and even graph will be awesome.


    Peter
  • ovas
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Apr 2017
    • 138

    #2
    Hello PetrSkyva!

    You can turn on frontend debug mode and navigate to the Availability report tab to see how API requests are formed for the page.
    That's a starting point to see how data can be gathered.

    Graph data is visualized by php-gd module, so it is not possible to extract graphs until you know how to pass the raw data to PHP.

    Comment

    • cesarsj
      Senior Member
      • Dec 2018
      • 154

      #3

      I am also studying a solution to this problem.

      Comment

      • kloczek
        Senior Member
        • Jun 2006
        • 1771

        #4
        Originally posted by PetrSkyva
        Hello,

        can I somehow use Zabbix API to get data from reports? Mostly I want to get datas from Availability report:
        Name, Problems ( percent ), Ok (percent) and even graph will be awesome.
        Just dump to exact document format (pdf, txt) web page where those data are already presented.
        http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
        https://kloczek.wordpress.com/
        zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
        My zabbix templates https://github.com/kloczek/zabbix-templates

        Comment

        • PetrSkyva
          Junior Member
          • Feb 2017
          • 9

          #5
          Hello, I already solve it with pyton, but i could post some of my code for you here. Im exporting SLA datas to excel where we have one item (0/1) which monitor availability of service.

          Comment


          • forzaTOTTI
            forzaTOTTI commented
            Editing a comment
            Hi PetrSkyva,

            if you could post some of the code it would be great!

            Br,
            JP
        • PetrSkyva
          Junior Member
          • Feb 2017
          • 9

          #6
          Hello,

          there is some spaghetti code, use it as you want.
          Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.


          Regards,

          Petr

          Comment


          • OrdepHP
            OrdepHP commented
            Editing a comment
            Can you post the code again?
            Thanks

          • Nossivar
            Nossivar commented
            Editing a comment
            Hi. Your pastebin code is not available anymore. Can you please share the code again?
        • stepassia
          Junior Member
          • Feb 2018
          • 27

          #7
          Hi Petr, can you share your code again? thanks!

          Comment

          Working...