Ad Widget

Collapse

Adding external scripts to zabbix-server container

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • uka2-inf
    Junior Member
    • Sep 2019
    • 3

    #1

    Adding external scripts to zabbix-server container

    Hi,

    I am a noob to all things containerized, however, that in the implementation that works best for my internal company systems.

    I have a few templates that require some external scripts (e.g. https://share.zabbix.com/virtualizat...or-vcenter-6-7).
    How can the required script be added to the zabbix-server?

    BTW, I am using the docker-compose yaml files so I am sure there must be a way for me to include my external scripts.
    I bet iit is something really simple, but for the life of me I just cannot figure it out.

    TIA
  • Monil Narang
    Junior Member
    • Sep 2020
    • 1

    #2
    Did you get any solution for the same?

    Comment

    • Rash92
      Junior Member
      • Jul 2020
      • 25

      #3
      Hello ,
      I have the same problem , did you get any solution please ?

      Comment

    • tharok
      Junior Member
      • Jun 2021
      • 4

      #4
      At the docker-compose file look for this line:
      - ./zbx_env/usr/lib/zabbix/externalscripts:/usr/lib/zabbix/externalscripts:ro

      The first part before the ":" is the route at your host machine, the second part is the route inside the container. So you must go to /zbx_env/usr/lib/zabbix/externalscripts and drop there your scripts. If you can't find it try with find ("find / -name zbx_env"). And remember to add execution permissions with "chmod +x"!

      If you don't have that line you can add it under a "volumes" section (look for some docker-compose examples)

      Comment

      Working...