-
Incident report
-
Resolution: Fixed
-
Major
-
2.2.18rc1, 3.0.9rc1, 3.2.5rc1, 3.4.0alpha1
-
Sprint 6, Sprint 7
-
0.25
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.