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

PATCH: dynamic URL screen items

    XMLWordPrintable

Details

    • Change Request
    • Resolution: Fixed
    • Major
    • 2.3.0
    • None
    • Frontend (F)
    • None
    • trunk@5238, ZBX-251 applied

    Description

      http://www.zabbix.com/forum/showthread.php?p=29729

      I wanted to be able to call a custom script to display additional information for a host in a screen as a URL item, so I wrote this patch that makes SCREEN_RESOURCE_URL dynamic.

      If a URL item is marked as dynamic, the URL will be extended with hostid=[selected host's hostid]. (Probably it shouldn't be "hostid" but "zbx_hostid" or something to avoid messing other stuff up, but I think if one knows how to write a custom script, they can change that themselves..)

      The URL itself may contain query strings (i.e. foo.php?bar=true&waz=false will work as well as foo.php, they will be extended with &hostid=[ID] or ?hostid=[ID] respectively).

      This patch applies to trunk@5238 with ZBX-251 applied. (I'll add the file as an attachment.)

      Greetings
      Sebastian

      Attachments

        Issue Links

          Activity

            People

              iivs Ivo Kurzemnieks
              freak Sebastian Raible
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: