Ad Widget

Collapse

User Macro support in item names, or any alternative suggestions welcome

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • james.cook000@gmail.com
    Member
    • Apr 2018
    • 49

    #1

    User Macro support in item names, or any alternative suggestions welcome

    Hi,

    I have raised a feature request (ZBXNEXT-749) to revert Jira issue (ZBXNEXT-7115) which removes the ability to have User Macros in item names since version 6.0+.

    There are several use cases and scenarios for the use of User Macros from item names detailed by myself and several other people that have commented on this Jira card such as:
    • Port monitoring - using the port number in the name (may be configured differently on servers).
      • Macro Name = {$APP.POSTGRES.POSTGRESQL.CONF.PORT:"postmaster"}
      • Macro Value = 5432
      • Item Name = Process - Listening {$APP.POSTGRES.POSTGRESQL.CONF.PORT:"postmaster"}/TCP (postmaster)
      • Item Name Displayed = Process - Listening 5432/TCP (postmaster)
    • Logfile monitoring - using the port number in the name (may be configured differently on servers).
      • Macro Name = {$OS.SYSTEM_LOGFILE.CONF.PATH:"messages"}
      • Macro Value = /var/log/messages
      • Item Name = System Logfile ({$OS.SYSTEM_LOGFILE.CONF.PATH:"messages"})
      • Item Name Displayed = System Logfile (/var/log/messages)

    As per the jira card Zabbix own developed templates use User Macros in item names and still do according to the master branch, even though this has been removed since version 6.0+ such as:
    • Template (IIS by Zabbix agent)
      • Item Name = IIS: {$IIS.PORT} port ping
    • Template ('IIS by Zabbix agent active')
      • Item Name = IIS: {$IIS.PORT} port ping
    • Template (Oracle by ODBC)
      • Item Name = Oracle: Sessions locked over {$ORACLE.SESSION.LOCK.MAX.TIME}s
      • Item Name = Oracle: User '{$ORACLE.USER}' expire password
    • Template (Oracle by Zabbix agent 2)
      • Item Name = Oracle: Sessions locked over {$ORACLE.SESSION.LOCK.MAX.TIME}s

    The gist of the requirement to allow User Macros in item names when there may be configurable pieces of information that may need to be communicated to the end user whether it be in Latest Data, Event Notifications or just listing configured items on a host.

    I am interested to hear from Zabbix and the Zabbix Community whether this should be reverted?

    I am also interested to hear any other solutions may be used to achieve the same end result if its not going to be reverted?

    Regards
    James

Working...