Ad Widget

Collapse

add binary data object type to dashboard

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jean-louis.abegg
    Member
    • Feb 2020
    • 37

    #1

    add binary data object type to dashboard

    Hi teams,

    I've finally managed to get browser items working with a specific web application.
    The aim is to supervise different technical systems for a technical service.
    For the informatic systems, zabbix is ok because ip or snmp are standard, and we can easily obtain metrics.
    But there are others system not standardised => we can't get datas from them (example: heat systems). The company in charge of those have given us the possibility to view the states using a web app.
    I want to give one single tool to watch upon all the systems the technical service is in charge => i wanted to implement a cycling dashboard, showing the different states of the different systems.
    A problem should arise, zabbix will help to see the existence of the problem, and we could use the right web app to inquire it.
    So, using the browser items and the right scenario, i capture the image of the company web page displaying the state of the heat systems.
    Unfortunately, i cannot use the binary data of the captured image to display it wide on the dashboard...

    Is there any project to display the latest captured image, from the binary data metric, to the dashboard?

    This is so frustrating, so much time to get this browser item function, and being unable to use it...

    Thanks a lot for this amazing tool : zabbix
  • jean-louis.abegg
    Member
    • Feb 2020
    • 37

    #2
    Hi,

    No answer but i keep on searching...
    My idea is to create an image object in the database, name:"lastwebsnapshot", imagetype 2
    Something like: create the image previously in base, right name and type, and use of the base64 string collected with the browser item

    {
    "jsonrpc": "2.0",
    "method": "image.update",
    "params": {
    "imagetype": 2,
    "name": "lastwebsnapshot",
    "image": result of the base64 image string collected with browser item
    },
    "id": 1
    }​

    The trick would be to execute the request when getting the result of the webdriver getdata.
    The other precaution is to keep the size of the capture under 1Mb (low resolution 1204*768?) or to higher the ZBX_MAX_IMAGE_SIZE constant value​ (i will test that with a size of 4Mb)

    Then, it could be theorically possible to display the picture using a map with the picture as background ?

    Have to conduct the test

    Comment

    • jean-louis.abegg
      Member
      • Feb 2020
      • 37

      #3
      Hi,

      Made some other tests. Didn't try the programing side, however i run a test: displaying an animated dashboard, with a map having one image as a backgroud, and changing the image while the dashboard is playing on another window...
      The trouble with the dashboard animation is: he doesn't reload the images from the maps... the metrics/alerts and so on, yes, but not the images....
      So, the result is: the changing of the image is effective if you reload the web windows, or interract with it, but not effective if you let it play without interracting with it (i suppose it cache some non-evoluting data, like images, once and for all during the launching phase).
      Could there be some refresh command programmable to send a signal like 'this image has been changed, do refresh?
      Without this refresh, the update of the image in the base, wouldn't be of much help...
      Has anybody some clue?

      Thanks all

      Comment

      Working...