Ad Widget

Collapse

Website by Browser Temple - use on sites with video backgrounds

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ITOMDave
    Member
    • Nov 2018
    • 53

    #1

    Website by Browser Temple - use on sites with video backgrounds

    Hi all,

    I have 2 Ubuntu 24.04 VM's configured. The first is running Zabbix 7.0.8 and the second is running a Docker container with the selenium/chrome image. I've done this mostly as per the default configuration mentioned here .

    The only changes I have made is to the docker run command where I've added a couple of parameters:
    Code:
    --network host \
    --restart always \
    All seemed wonderful and the standard data collection worked.

    However, if I use the same template to point to a website that uses a video background, such as https://jasonwalkow.com/ then the "Get data" item fails to collect any metrics at all and returns and error message:

    Code:
    {"error":"Error: cannot open url: unknown error: net::ERR_ADDRESS_UNREACHABLE\n  (Session info: chrome=131.0.6778.204)."}
    After some trial and error, I believe this occurs only for web sites that have a video background.

    I have tried disabling the screenshotting part of the javascript (commenting out the line "screenshot = browser.getScreenshot();", but this made no difference.

    Has anyone encountered a similar issue and fixed it?

    Dave
  • Blevar
    Member
    • Jan 2025
    • 68

    #2
    Hi,
    This is an interesting issue.
    Maybe try adding
    Code:
    --blink-settings=imagesEnabled=false
    to your chrome daemon in the command line. But Im not sure what output it might provide. This might disable all images on the site - so screenshots would look like internet in the 1994
    But maybe you could find a way to disable just animated pictures in a similar way?
    You could look for more info: https://peter.sh/experiments/chromiu...line-switches/ <- this is a link from official chromium document

    Comment

    Working...