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

agent does not start on Windows as a service

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.0.0beta2
    • Fix Version/s: 3.0.0rc1
    • Component/s: Agent (G)

      Description

      Zabbix agent no longer seems to start on Windows as a service, but there is no error in the log (in fact, the log is not even created). The problem seems to be in the following fragment in zabbix_agentd.c:

      ...
      default:
      	if (0 != (t->flags & ZBX_TASK_FLAG_MULTIPLE_AGENTS))
      	{
      		zbx_error("multiple agents option can be used only with Zabbix agent services");
      		ret = FAIL;
      		goto out;
      	}
      ...
      

      It is likely to be a problem, because when Windows starts our agent as a service, it passes --multiple-agents option without -i, -s, -x, -d, but we expect --multiple-agent to only be used in conjuction with the latter.

      This is a regression from ZBXNEXT-611, which added --foreground option.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              asaveljevs Aleksandrs Saveljevs
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: