Ad Widget

Collapse

Run External Scripts on Server not Proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manni
    Junior Member
    • Jan 2014
    • 7

    #1

    Run External Scripts on Server not Proxy

    Hello,

    I'm successfully working on a distributed Environment with three proxies and one Server. Until now all works fine. The Problem I've got with the thired Proxy is, that due to security reasons this Proxy has no rights to Access the Server. So the Proxy is configured as passive.

    Now I have several external scripts that uses the API to get some Information about a host and his items and do some calculation based on values (sometimes only that an item exists).

    Unfortunately as described above the 3rd Proxy isn't allowed to Access the Server so the external scripts Fails. Now I'm searching a Workaround that These specific external scripts will run on the Server instead on the Proxy but I did not find any easy way.

    Did anyone had the same issue and solved this?

    I know about configuring the device a second time with no Proxy associated to it, but don't think this is the way as it becomse two devices in Logical!

    Kind Regards,
    Kay
  • slvrstn
    Junior Member
    • May 2016
    • 1

    #2
    Kay,
    Did you ever get a solution for this?
    I have the exact same need and don't see the proper way to configure it.

    Thanks!

    Comment

    • manni
      Junior Member
      • Jan 2014
      • 7

      #3
      Hello,

      After several hours of thinking and testing I've got a solution or more a workaround. In generally it is based on trap items - so the items that needs to be checked by Server instead of proxy are trapper items. I added an additional [] for additional options. At the moment the interval is the only option here.

      For example the item with script.php["-s","{HOST.NAME}"][3600] will become script.php["-s","{HOST.NAME}"][3600] and will checked every hour.

      Then I have an lld-script that will parse via API these items and provide all informations. So I have an LLD on the Server per interval (i.e. 3600s).

      Within the discovery (lld) I have one item another script (exectrapper.php["-i","{#SNMPINDEX}"]) with the item-id of the trapper-item as parameter. This script takes the items (via API) and all necessary information to execute and pass the value via zabbix-send to the proxy.

      It is more or less a clean solution. I rely the timeing on zabbix but still need the LLD-Script and the execute-Script to get this working as I found no different workaround.

      It runs now for a couple of weeks really clean.

      Kind Regards,
      Kay

      Comment

      Working...