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

Can't use syslog (eventlog) logging with Zabbix agent on Windows

    XMLWordPrintable

    Details

      Description

      On Windows when LogFile option is not set Zabbix agent is supposed to write log messages to Windows event log. But the

      		ReportEvent(
      			system_log_handle,
      			wType,
      			0,
      			MSG_ZABBIX_MESSAGE,
      			NULL,
      			sizeof(*strings)-1,
      			0,
      			strings,
      			NULL);
      

      fails with ERROR_INVALID_PARAMETER because the wNumStrings parameter is calculated incorrectly. It should be sizeof(strings) / sizeof(*strings) rather than sizeof(*strings)-1

      Another problem is that agent always tries to use "Zabbix Agent" as event source event if multiple-agents startup option was specified.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            wiper Andris Zeila
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: