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

Definition of string mappings to return a string that is referenced by an other string found in item value

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 2.0.6
    • Proxy (P), Server (S)
    • Linux, CentOS-6.4, PostgreSQL 9.1.9, Apache HTTPD-2.2.15, PHP-5.3.3

      Beside value mapping used in frontend I would like to have something similar for use in simple macros within triggers.

      Think about applications with a lot of error codes like Oracle error messages or messages produced by Tivoli Storage Manager.
      These kind of messages can appear in many different flavors:

      • Code + Message
      • Code only
      • The previous two produced and mixed with upstream applications
      • ...

      I would neither want to use triggers with common filters like .count(5m,"ORA-")#0 => A common Oracle error occured... nor to create thousands of triggers with exact filters.

      I think about the possibility to import one generic mapping definition per application (Oracle, TSM,...) that might be used to map thousands of error codes to error messages.
      These could then be referenced via simple macros by a new function especially for this purpose like {host:key.mapstr("String map name")}.
      Another use case might be for example vfs.file.regexp[file,regexp,<encoding>, "String map name"] for passive agent checks with this item.

      This way one could define very generic triggers with pretty messages even on varying error code positions in item values.

            Unassigned Unassigned
            okkuv9xh Marc
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: