Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-12012

In the macro {ITEM.LOG.SEVERITY}, the value "critical" is expanded to "unknown".

    Details

    • Team:
      Team B
    • Sprint:
      Sprint 6, Sprint 7
    • Story Points:
      0.25

      Description

      In the macro {ITEM.LOG.SEVERITY], the value "critical" is expanded to "unknown".


      The following is the source of the 2.2.17.

      const char	*zbx_item_logtype_string(unsigned char logtype)
      {
      	switch (logtype)
      	{
      		case ITEM_LOGTYPE_INFORMATION:
      			return "Information";
      		case ITEM_LOGTYPE_WARNING:
      			return "Warning";
      		case ITEM_LOGTYPE_ERROR:
      			return "Error";
      		case ITEM_LOGTYPE_FAILURE_AUDIT:
      			return "Failure Audit";
      		case ITEM_LOGTYPE_SUCCESS_AUDIT:
      			return "Success Audit";
      		default:
      			return "unknown";
      	}
      }
      
      #define ITEM_LOGTYPE_INFORMATION	1
      #define ITEM_LOGTYPE_WARNING		2
      #define ITEM_LOGTYPE_ERROR		4
      #define ITEM_LOGTYPE_FAILURE_AUDIT	7
      #define ITEM_LOGTYPE_SUCCESS_AUDIT	8
      #define ITEM_LOGTYPE_CRITICAL		9
      #define ITEM_LOGTYPE_VERBOSE		10
      

      CRITICAL and VERBOSE appear not to be expanded.

      The sources of Zabbix 3.0.8 and Zabbix 3.2.4 are also the same.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kazuo.ito Kazuo Ito
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: