Ad Widget

Collapse

Agent Installer Modification (.msi)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RobertBatchelor
    Junior Member
    • Dec 2019
    • 2

    #1

    Agent Installer Modification (.msi)

    Hi There

    I'm looking into ways of deploying the Zabbix agent out to an estate of windows servers and I thought the easiest way would be to open the msi and edit the conf file to ensure our Zabbix Servers hostname was listed under passive and active. However I'm having trouble editing the file, I presume the msi needs to be unpackaged and repackaged for this to be possible?

    This is my first time attempting to modify a msi, so not sure about the best way to do this. Or perhaps an alternate solution?

    I'm really just trying to ensure the config file contains our hostname for both passive and active, and to enable remote commands.

    Appreciate any help, thanks.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Is it a content that cannot be changed using the msiexec command?

    Comment

    • RobertBatchelor
      Junior Member
      • Dec 2019
      • 2

      #3
      Atsushi

      Looks like something I might be able to use.

      SET INSTALLFOLDER=C:\Program Files\Zabbix

      msiexec /l*v log.txt /i zabbix_agent-4.0.6-x86.msi /qn^
      LOGTYPE=file^
      LOGFILE="%INSTALLFOLDER%\za.log"^
      ENABLEREMOTECOMMANDS=1^
      SERVER=192.168.6.76^
      LISTENPORT=12345^
      SERVERACTIVE=::1^
      HOSTNAME=myHost^
      ENABLEPATH=1^
      INSTALLFOLDER="%INSTALLFOLDER%"

      Would someone be able to explain the "SERVERACTIVE=::1" paramenter for me? Should I just replace ::1 with my Zabbix servers IP, identically to what I would do with "SERVER="?
      Assuming I want the ability for both passive and active capabilities.

      Also not too sure what "ENABLEPATH=1" does.
      Last edited by RobertBatchelor; 12-12-2019, 16:28. Reason: formatting

      Comment


      • RobertBatchelor
        RobertBatchelor commented
        Editing a comment
        Keep getting a installation failed error (as seen in the log, cant see why though) when trying to run the following script as a .bat

        SET INSTALLFOLDER=C:\Program Files\zabbix

        msiexec /l*v log.txt /i zabbix_agent-4.4.3-win-amd64-openssl.msi /qn^
        LOGTYPE=file^
        LOGFILE="%INSTALLFOLDER%\za.log"^
        ENABLEREMOTECOMMANDS=1^
        SERVER=LMRZABBIX^
        LISTENPORT=10050^
        SERVERACTIVE=LMRZABBIX^
        HOSTNAME=myHost^
        ENABLEPATH=1^
        INSTALLFOLDER="%INSTALLFOLDER%"

      • RobertBatchelor
        RobertBatchelor commented
        Editing a comment
        nevermind i've managed to figure it out now.
    Working...