Ad Widget

Collapse

Windows Service won't install

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sean.brown
    Junior Member
    • Oct 2018
    • 1

    #1

    Windows Service won't install

    I'm trying to install the Zabbix 4 agentd service on some Windows 2016 servers. I have tried the package with and without openssl but both fail to install in the same manner.

    I have copied zabbix_agentd.exe and zabbix_agentd.conf to c:\zabbix and run both `c:\zabbix\zabbix_agentd.exe -i` and `c:\zabbix\zabbix_agentd.exe --config c:\zabbix\zabbix_agentd.conf --install' and in both cases what Windows tries to do is open the config file with no output from zabbix_agentd.exe and the service doesn't install.

    If I don't associate .conf files with notepad a message comes up saying windows doesn't know how to handle the file, if I do associate conf files with notepad, notepad opens the config file.

    Are the instructions for installing the Zabbix 4 agent different or is there something else I'm missing?
  • steeladept
    Member
    • Sep 2018
    • 69

    #2
    You can try installing as a generic windows service and see if that loads.

    Open powershell as administrator and type New-Service -Name $servicename -Credential $user -BinaryPathName $exepath -StartupType Automatic -ErrorAction Continue

    Where
    $servicename is the Display Name of the service
    $user is your Credentials (If I recall, you can exclude and it will prompt for credential but don't quote me on that)
    $exepath is the path to the Zabbix Agent executable

    You can also change or remove the StartupType and ErrorAction if appropriate.

    If you don't want to or are unable to use powershell, you can also use the command line using "sc.exe CREATE", but I forget the syntax details on how to configure that.

    Comment

    Working...