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

support strings in lld custom macros

    XMLWordPrintable

    Details

    • Type: Change Request
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.7, 2.4.1
    • Fix Version/s: None
    • Component/s: Server (S)
    • Labels:

      Description

      According to ZBXNEXT-1286 values used in triggers, created from custom user macros by lld, are supported only in numeric form.
      Please add also support for strings.

      I want to create custom discovery script, that is returning data like:

      {
          "data": [
              {
                  "{#FSNAME}": "C:",
                  "{#FSTYPE}": "NTFS",
                  "{#FSWARN}": "{$FS_C_WARN}",
              }
          ]
      }
      

      where values in "{#FSWARN}" are created dynamically based on drive letter (by script).
      Then I want to make trigger protetypes:

      {IIS01:vfs.fs.size[{#FSNAME},pfree].last()}<{#FSWARN}
      

      to get triggers looking like that:

      {IIS01:vfs.fs.size[C:,pfree].last()}<{$FS_C_WARN}
      

      My problem is that we have a lot of windows servers with different drives letters, and alerts thresholds. For now I manually add templates with correct drives letters and thresholds, but it will be really nice to discover all disks and only set correct values for macros.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            waclawspam@wp.eu Tomasz Pawelczak
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: