Ad Widget

Collapse

Zabbix Agent MSI package

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zkrapavickas
    Junior Member
    • Jun 2011
    • 11

    #1

    Zabbix Agent MSI package

    This can be used to build a MSI package to install Zabbix Agent on Windows. You will need WiX toolset to build a msi (http://wix.sourceforge.net/).
    Attached Files
  • 0siris
    Member
    Zabbix Certified Specialist
    • Nov 2010
    • 76

    #2
    We use NSIS for that. Lots of features, forms so you can specify certain values for the agent and lots more.

    Comment

    • zalex_ua
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2009
      • 1286

      #3
      Originally posted by 0siris
      We use NSIS for that. Lots of features, forms so you can specify certain values for the agent and lots more.
      Do you use NSIS for generate a MSI package or for a regular .exe installer?
      Could you share your solution to us ?

      A note, i know some solution based on NSIS, but it generates the .exe installer, not msi. http://www.suiviperf.com/zabbix/

      Comment

      • 0siris
        Member
        Zabbix Certified Specialist
        • Nov 2010
        • 76

        #4
        doh my bad!
        NSIS makes use of .nsi files (the scriptfiles) to make a .exe, my bad. So in the end I have a .exe that installs the zabbix agent, registers the service, puts some other useful executables in the zabbix dir, and fills the neccesary options in the .ini. See attachment for the file we use. It uses some includes that are not default, if you miss some please PM me and I'll update the .zip
        Attached Files
        Last edited by 0siris; 20-07-2011, 10:11.

        Comment

        • cavaliercoder
          Junior Member
          • Apr 2014
          • 13

          #5
          WiX Project for Zabbix Agent 2.2.1

          After spending sweet forever sifting through the intricacies of WiX to build a working agent MSI, I stumbled across this thread where zkrapavickas has kindly done all the work for us...

          I'll post my solution here anyway as this thread is quite old and I'm confident mine works with agent 2.2.1.

          My WiX project doesn't allow the installing user to customise the agent configuration as this was intended to be used for packaging for an enterprise deployment, not for end-user preference.

          You set the configuration directives in the agent config at compile time and everything is deployed just the way you build it.

          This WiX project supports packaging for 32 and 64bit.

          Zabbix Agent MSI Installer. Contribute to cavaliercoder/zabbix-msi development by creating an account on GitHub.

          Comment

          • zalex_ua
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Oct 2009
            • 1286

            #6
            cavaliercoder, thanks for awesome description !

            I have to admit that I never used the WiX tool.
            But I wanted to build MSI package with zabbix agent, and I would want it will be, say, universal.
            I mean - each admin should not build his own package but use single which provides possibility to customize zabbix_agent.conf parameters during installation stage.
            As it done already in www.suiviperf.com/zabbix/ for their MSI package.
            (unfortunately there no .wix project files published).

            Another point is - is it possible in MSI package perform relatively complex modifications of the zabbix_agent.conf file ?
            For example in case of upgrade to a new major version, where some config parameters have been removed/changed/add, we need to automatically update the conf file.

            Comment

            • cavaliercoder
              Junior Member
              • Apr 2014
              • 13

              #7
              WiX with config UI

              In the case of my deployment (5000+ servers), I definitely wanted to build my own MSI because it needs to include some features that can't be 'configured' during installation such as the inclusion of addition scripts (and UserParameter directives) and custom compiled binaries.

              For a smaller environment, I agree that configurable options during installation would be ideal. Fortunately the WiX file in zkrapavickas' original post contains the custom UI, actions and a script to achieve precisely this.

              Have a go at merging the best of each WiX file and let us see what you come up with!

              Comment

              • heron
                Junior Member
                • Nov 2013
                • 7

                #8
                I took a stab at this a while back, as well. I found a more comprehensive set of build scripts someone provided for an unrelated MSI, and modified them to build from the Zabbix binary distributions instead.

                There are a couple paths in the WXS files that are still hardcoded and need to be modified for your environment. Tunables in the VBS script and build/install scripts. Can build both 32 & 64 bit MSIs.

                You'll also need to expand the official Zabbix binary ZIP file into the zabbix-service directory, so it has binaries to include in the MSI.

                It has a simple text field GUI for option selection, but can be run using provided defaults by passing the /Q command line option during MSI installation.

                Hoping it will be helpful, if either of you decide to push further into Zabbix MSI land...
                Attached Files

                Comment

                • scotty
                  Senior Member
                  • Oct 2006
                  • 126

                  #9
                  suiviperf.com windows installer wix sources

                  Hi,

                  As there is a demand for the wix sources, I will plublish them on the server. but for the moment I just upload it for those who want it:

                  Http:// www.suiviperf.com / zabbix / upload / wix_zabbix-agent-sources.zip.

                  If you want me to add usefull function, I will be happy to do so.

                  Best regards

                  Comment

                  Working...