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

eventlog[] collected wrong messages

XMLWordPrintable

      When message is not found from EventMessageFile, eventlog[] get from system messages;

      ----------------------------------------------------------
      FormatMessage(FORMAT_MESSAGE_FROM_HMODULE | FORMAT_MESSAGE_ALLOCATE_BUFFER |
          FORMAT_MESSAGE_ARGUMENT_ARRAY | FORMAT_MESSAGE_FROM_SYSTEM |
          FORMAT_MESSAGE_MAX_WIDTH_MASK,/* do not generate new line breaks */
          hLib,/* the messagetable DLL handle */
          pELR->EventID,/* message ID */
          MAKELANGID(LANG_NEUTRAL,SUBLANG_ENGLISH_US),	/* language ID */
          (LPTSTR)&msgBuf,/* address of pointer to buffer for message */
          0,
          (va_list *)aInsertStrs))/* array of insert strings for the message */
      ----------------------------------------------------------
      

      I think that this [FORMAT_MESSAGE_FROM_SYSTEM] option is unnecessary.

        1. history.jpg
          history.jpg
          66 kB
        2. for_2.2.5.patch
          0.7 kB
        3. for_2.0.12.patch
          0.7 kB
        4. eventlog.jpg
          eventlog.jpg
          89 kB

            Unassigned Unassigned
            zinten Yoshinori Komuro
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: