Ad Widget

Collapse

Keyword translation in email notify

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KarlS
    Junior Member
    • Nov 2014
    • 1

    #1

    Keyword translation in email notify

    Hello,

    I had actived email notification in Zabbix.
    However, keywords like "PROBLEM" or priority level has not translated in mail.

    As GUI translate theses keywords, is there anyway to translate in notification email ?

    Regards,

    Karl Soulabaille
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    Zabbix server does no translation here:

    Code:
    --- SNIP ./libs/zbxserver/expression.c ---
    
    int     substitute_simple_macros(zbx_uint64_t *actionid, const DB_EVENT *event, DB_EVENT *r_event, zbx_uint64_t *userid,
                    zbx_uint64_t *hostid, DC_HOST *dc_host, DC_ITEM *dc_item, char **data, int macro_type,
                    char *error, int maxerrlen)
    {
    
    --- SNAP ./libs/zbxserver/expression.c ---
    
                                    else if (0 == strcmp(m, MVAR_TRIGGER_STATUS) || 0 == strcmp(m, MVAR_STATUS))
                                    {
                                            replace_to = zbx_strdup(replace_to, zbx_trigger_value_string(c_event->value));
                                    }
    --- SNIP ./libs/zbxserver/expression.c ---
    Code:
    --- SNIP ./libs/zbxcommon/str.c ---
    
    const char      *zbx_trigger_value_string(unsigned char value)
    {
            switch (value)
            {
                    case TRIGGER_VALUE_PROBLEM:
                            return "PROBLEM";
                    case TRIGGER_VALUE_OK:
                            return "OK";
                    default:
                            return "unknown";
            }
    }
    
    --- SNAP ./libs/zbxcommon/str.c ---

    Comment

    Working...