Ad Widget

Collapse

Using Zabbix External Script to show a .jpg image

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • liquidsnake1989
    Junior Member
    • Oct 2014
    • 10

    #1

    Using Zabbix External Script to show a .jpg image

    I'm running Zabbix 3.4 on Centos 6.9 Final.

    I'm using Zabbix to monitor Camera systems (CCTV), and see if the IP camera's are still online, what their CPU load is, etc.
    I made an External script that uses ffmpeg to create a .jpg image from an RTSP stream. So far so good.
    However, I would like to use this external script on the Maps I created, but when I click on the external script I made, it puts the HTML <img> tags in plain-text on the script window.

    To make troubleshooting easier, I simplified the script so that it now only echo's a simple <a href>, but that doesn't work either.

    The script I currently use contains this:
    Code:
    #!/bin/bash
    echo \<a href=\"https://www.zabbix.com\"\>Zabbix website\</a\>
    The output in the Script window is:
    Click image for larger version

Name:	script window.jpg
Views:	650
Size:	56.7 KB
ID:	356175

    When I inspect the element, it shows:
    Click image for larger version

Name:	inspect element.JPG
Views:	641
Size:	52.4 KB
ID:	356176



    Why does it output the HTML tags in plain-text? Is there a way I can put HTML code there, such as an <a href> or <img> ?

    Thanks in advance!
  • liquidsnake1989
    Junior Member
    • Oct 2014
    • 10

    #2
    Bumping this question since it's not answered yet. Anyone have any idea?

    Comment

    Working...