Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-7062

{HOST.PORT} not available in Global scripts

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 7.2.0rc1 (master)
    • 5.0.18rc1, 5.4.8rc1, 6.0.0alpha7
    • Frontend (F)
    • None
    • S24-W40/41, S24-W42/43, S24-W46/47
    • 0.5

      When trying to make a new global script, doing a specific snmpwalk on a host for example:

      snmpwalk -v2c -c public IP .1.3.xxxxxx

       

       

      This works, but the moment the host is not listening on port 161, but on a different port, the snmpwalk command should be changed into:

       

      snmpwalk -v2c -c public IP:PORT .1.3.xxxxxx 

       

      So in Zabbix that would be something like:

      snmpwalk -v2c -c public {HOST.CONN} .1.3.xxxxxx 

      and for the custom port:

      snmpwalk -v2c -c public {HOST.CONN}:{HOST.PORT} .1.3.xxxxxx 

      According to the docs( https://www.zabbix.com/documentation/5.4/manual/appendix/macros/supported_by_location)

      {HOST.CONN}

      is supported in "→ Global scripts (including confirmation text)" but {HOST.PORT} is not, effectively limiting global scripts on all non default ports...

      Please make {HOST.PORT} also available in Global scripts.

       

       

       

            sboidenko Sergejs Boidenko
            brian.baekel Brian van Baekel
            Team A
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: