Ad Widget

Collapse

sample of zabbix installation script on centos with psql support

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • michaelv
    Junior Member
    • Sep 2011
    • 11

    #1

    sample of zabbix installation script on centos with psql support

    Hello all

    I like to play with beta versions of zabbix but I hate to install all requirements every time, so I wrote installation script which install zabbix on Centos server (in my case VPS )

    NOTE installation should be performed on clean OS
    installation tested on Centos 5.6~5.7
    script install
    postgresql 8.4.x
    php 5.3
    zabbix 1.9.6
    apache2

    frontend installed in /var/www/html so be careful if you have any content in that folder



    also script produce rpm in my case it was zabbix-1.9.6-1.x86_64.rpm

    regards,
    Attached Files
    Last edited by michaelv; 29-09-2011, 02:49.
  • reward
    Junior Member
    • Sep 2011
    • 11

    #2
    sample of zabbix installation script on centos with psql support

    Hello,

    Is this script for 64bit or 32bit server? How do I use your text file and run the script in Linux centos to install zabbix? I am assuming from command line correct? Thank you.
    Last edited by reward; 04-10-2011, 02:40.

    Comment

    • michaelv
      Junior Member
      • Sep 2011
      • 11

      #3
      Hello

      1. this script is for x64 OS, I've used it as did not have x32 machine when I wrote a script.
      2 to use it just rename it to zabbix_install_centos.sh and run as sh zabbix_install_centos.sh

      but if you run sh zabbix_install_centos.txt it will start installation
      3. I'm planning to write a script for auto deploy zabbix from latest dev snapshot.
      I suppose that this script will be useful for admins/testers who want to try latest zabbix on their environment, but who do not want to find all dependencies for installation

      let me know if you will have any questions

      Comment

      • Colttt
        Senior Member
        Zabbix Certified Specialist
        • Mar 2009
        • 878

        #4
        nice script.. i think i rewrite this for Debian.. but in debian it "only" installs the zabbix-server..
        Debian-User

        Sorry for my bad english

        Comment

        • michaelv
          Junior Member
          • Sep 2011
          • 11

          #5
          I've updated zabbix installation script. now its install psql 9.1/zabbix 1.9.8

          you may download it from


          new features

          psql 9.1
          zabbix 1.9.8
          you would be asked to provide DB password during installation.

          Let me know if you will find any problems

          Comment

          • fels
            Junior Member
            • Oct 2011
            • 1

            #6
            Centos 6 and MySQL

            Hello,

            this script saves a lot of work!

            Could you imagine to build a switch for MySQL?
            Or: Why do you prefer PostgreSQL against MySQL?

            Furthermore, we work on Scientific Linux 6.1 which is almost
            CentOS 6/RedHat EL 6; as far as I can see there are some minor
            changes with respect to EPEL.

            Thank you in advance.
            Frank

            Comment

            • michaelv
              Junior Member
              • Sep 2011
              • 11

              #7
              Hello

              1. there are a lot of guys who created install scripts for mysql support ie http://linuxnotes.us/archives/423 and almost no scripts witch created for psql support, I made script as simple as possible, because its used zabbix beta version and to be honest it's not really ready for production

              2. from my experience mysql have worst performance than psql ,thus I'm using ut

              3. I'm working as L3 admin at vps.net and we do not have Scientific Linux 6.1 so had no chance to play with it

              my next script I'm planning to create with stable version support and for multiple OS support Centos 5.x and 6.x, hope will have some time to make it asap

              Comment

              • michaelv
                Junior Member
                • Sep 2011
                • 11

                #8
                New scripts are ready zabbix 2.0.0rc4 psql 9.1 install scripts for Centos 6.2 and 5.8
                https://www.dropbox.com/s/unzvemer4i...el5_install.sh https://www.dropbox.com/s/88nudr2928...el6_install.sh

                enjoy

                Comment

                • michaelv
                  Junior Member
                  • Sep 2011
                  • 11

                  #9
                  Hiya all

                  scripts has been upgaded to 2.0 release )

                  https://www.dropbox.com/s/pdekmf5yi6...el6_install.sh C6.2
                  https://www.dropbox.com/s/6sdlerh4uf...el5_install.sh C5.8

                  all problems are the same as in previous vertions

                  USE it in your own risk

                  Comment

                  • damonLi
                    Junior Member
                    • Jun 2012
                    • 1

                    #10
                    install script

                    Hi Michail!
                    great work ! it work for me.

                    but small mistake in line
                    186 cp ~/install/zabbix-2.0.0rc4/misc/init.d/redhat/8.0/zabbix_* /etc/init.d/

                    must be zabbix-2.0.0 without 'rc4'

                    thanks
                    ps

                    what about put script on GitHub?

                    Comment

                    • michaelv
                      Junior Member
                      • Sep 2011
                      • 11

                      #11
                      Thanks for the correction

                      I've created repo on https://bitbucket.org/mveselovski/zabbix-auto-installer

                      Comment

                      • michaelv
                        Junior Member
                        • Sep 2011
                        • 11

                        #12
                        Hi guys

                        finally found the time and cooked new script which install zabbix 2.0.2 on centos 5.8 or 6.3 and now its one script

                        you may get it from bitbacket https://bitbucket.org/mveselovski/za...-installer/src

                        or hg clone ssh://[email protected]/mveselovski/zabbix-auto-installer

                        and use zabbix_2x_el_x86_64.install.sh script for installation.

                        let me know if you will find any issues will try to correct it immediately

                        also I noticed that mr Shad0w created debian install script so if he agree I ll use his script in my installer so it would be complex solution

                        Comment

                        • michaelv
                          Junior Member
                          • Sep 2011
                          • 11

                          #13
                          upgraded my script

                          as usually you may find the latest on bitbacket repo

                          Comment

                          Working...