Ad Widget

Collapse

Customizing msi deployment

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rebidebi
    Junior Member
    • May 2023
    • 11

    #1

    Customizing msi deployment

    Hi, Im trying to customize zabbix msi installer for automation.. I need to install the host on around 500 machines and want to do it as automated as possible..

    with kb I saw we can customize the following:


    Code:
    msiexec /l*v log.txt /i zabbix_agent-6.4.0-x86.msi /qn^
    LOGTYPE=file^
    LOGFILE="%INSTALLFOLDER%\zabbix_agentd.log"^
    SERVER=192.168.6.76^
    LISTENPORT=12345^
    SERVERACTIVE=::1^
    HOSTNAME=myHost^
    TLSCONNECT=psk^
    TLSACCEPT=psk^
    TLSPSKIDENTITY=MyPSKID^
    TLSPSKFILE="%INSTALLFOLDER%\mykey.psk"^
    TLSCAFILE="c:\temp\f.txt1"^
    TLSCRLFILE="c:\temp\f.txt2"^
    TLSSERVERCERTISSUER="My CA"^
    TLSSERVERCERTSUBJECT="My Cert"^
    TLSCERTFILE="c:\temp\f.txt5"^
    TLSKEYFILE="c:\temp\f.txt6"^
    ENABLEPATH=1^
    INSTALLFOLDER="%INSTALLFOLDER%"^
    SKIP=fw^
    ALLOWDENYKEY="DenyKey=vfs.file.contents[/etc/passwd]"


    I have a few requirements so im wondering if its possible at all..

    1. I want to be able for the server to auto register using their FQDN. is it possible with the msi?
    2. is it possible to re-package the msi with a custom config and to just deploy it? that way I can do it via some rmm and wont need to specify arguments when I run it.
    3. I dont understand what does the "^" at the end of every paramter is. do I need to add it when I specify a value? same for server active. why is the :: there?






  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    1. supported parameters are listed here https://www.zabbix.com/documentation...ckages/win_msi HostInterfaceItem is not among them.. Unfortunately...
    2. I guess yes... There's also a archive version of installer. Unpack and do whatever..
    3. SERVERACTIVE=::1 - it's IPv6 address for localhost... ^ in the end of line is for escaping EOL and allows you to specify all those parameters on separate lines.

    Comment


    • rebidebi
      rebidebi commented
      Editing a comment
      1. ye i've seen the article.. had no luck trying to install that way. i just couldnt find any more documentation or videos showing exactly how its done ..
      2. im also not sure how to do that either, but if its works I can just modify my config for whatever I want and install the msi. have you seen it being done?
      3. so i can just use any ip\hostname i use for my zabbix server? for example SERVERACTIVE=zabbix.mycompany.com
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #3
    Please... answer with a post, not comment... otherwise its not really possible to quote you properly...

    1. I guess, if it is not listed as supported, then you cannot use it from command line.
    2. Once upon a time I did create our own installer (I think I used wix for it.. https://wixtoolset.org/ ) ... Don't remember too much of it.. But it contained all options we needed in a config file, which was placed by the installer, so there was no need for command line parameters...
    3. You have to use IP/hostname of your zabbix server/proxy, whatever is monitoring that particular host... Otherwise, how would your agent know where to ask for items to monitor... ?

    Comment

    • rebidebi
      Junior Member
      • May 2023
      • 11

      #4
      Originally posted by cyber
      Please... answer with a post, not comment... otherwise its not really possible to quote you properly...

      1. I guess, if it is not listed as supported, then you cannot use it from command line.
      2. Once upon a time I did create our own installer (I think I used wix for it.. https://wixtoolset.org/ ) ... Don't remember too much of it.. But it contained all options we needed in a config file, which was placed by the installer, so there was no need for command line parameters...
      3. You have to use IP/hostname of your zabbix server/proxy, whatever is monitoring that particular host... Otherwise, how would your agent know where to ask for items to monitor... ?
      Didnt realise. my bad.

      Thanks for the answer.
      as for 3, I was wondering about the syntax, if in the command line i should use SERVERACTIVE=zabbix.mycompany.com or SERVERACTIVE=::zabbix.mycompany.com etc
      thanks

      Comment

      • rebidebi
        Junior Member
        • May 2023
        • 11

        #5
        i managed to make it work with the code above, i just missed a comma on my script...

        Comment

        Working...