Ad Widget

Collapse

Cut and Paste walkthrough of Zabbix installation on CentOS 5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mikrodots
    Member
    • Mar 2008
    • 37

    #31
    Update - installation script Centos Red Hat Fedora 1.8 updated

    I've modified bbrendon's script slightly to install version 1.8 see attached -

    THIS IS FOR A CLEAN INSTALL -- IT DROPS ANY EXISTING ZABBIX DATABASE
    !!!you will lose data if you run it on an existing zabbix installation!!!

    Before running the script do these steps:

    Update PHP
    [root@zabbix ~]# rpm --import http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
    [root@zabbix ~]# cd /etc/yum.repos.d
    [root@zabbix ~]# wget http://dev.centos.org/centos/5/CentOS-Testing.repo
    [root@zabbix ~]# yum --disablerepo=* --enablerepo=c5-testing update php
    [root@zabbix ~]# yum --disablerepo=* --enablerepo=c5-testing install php-xml
    [root@zabbix ~]# yum --disablerepo=* --enablerepo=c5-testing install php-mbstring

    download the script, make it executable and run...

    Thanks bbrendon for the script

    Mikrodots

    (had to add .txt to file name for upload)
    Attached Files
    Last edited by Mikrodots; 15-12-2009, 04:53. Reason: add attachment

    Comment

    • rajsand
      Junior Member
      • Dec 2009
      • 6

      #32
      Greetings,


      [QUOTE=Mikrodots;55515]I've modified bbrendon's script slightly to install version 1.8 see attached -

      [/unquote]

      Presumes that PHP is installed

      Update PHP
      [root@zabbix ~]# rpm --import http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
      [root@zabbix ~]# cd /etc/yum.repos.d
      [root@zabbix ~]# wget http://dev.centos.org/centos/5/CentOS-Testing.repo
      [root@zabbix ~]# yum --disablerepo=* --enablerepo=c5-testing update php
      [root@zabbix ~]# yum --disablerepo=* --enablerepo=c5-testing install php-xml
      [root@zabbix ~]# yum --disablerepo=* --enablerepo=c5-testing install php-mbstring
      Might as well say:


      [root@zabbix ~]# yum --disablerepo=* --enablerepo=c5-testing install php php-common php-mysql php-xml php-mbstring

      That will help in installing only php 5.2 bits...

      I had to spend .5 hrs figuring that out after a fresh install

      Regards

      Rajagopal

      Comment

      • Farley
        Junior Member
        • Sep 2009
        • 20

        #33
        RPM-based installation of Zabbix 1.8 for CentOS 5

        Hey guys... wanted to share with you that I'm not such a big fan of building things by source or via scripts so I built a spec file and RPMs, and hosting a repository for both of them on my server for anyone to use. This might simplify some people's installation, especially on tons of servers (I manage lots of servers, installing anything via anything except RPMs is not scalable).

        For instructions on how to perform this install, simply add my repository, and then install yum install zabbix-agent (or server). Easy as cake!

        Details are here: http://andrewfarley.com/sysadmin/rpm-repository-online

        Cheers! Here's to _never_ building Zabbix from source again.

        Comment

        • linuxgurugamer
          Member
          • Oct 2010
          • 66

          #34
          Updated script to install Zabbix 1.8.3 on minimal CentOS 5.5

          Hi,

          I've taken Brandon's script and rewritten it to do a complete install on a minimal CentOS 5.5 system.

          The script builds RPMs and then installs from the RPMs. I use the checkinstall script to do this.

          I've tested it on a 64 bit CentOS 5.5 minimal install, and it should work on a 32 bit install as well.

          The link to my blog posting is:



          I'd appreciate any feedback.


          JBB

          Comment

          • nelsonab
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2006
            • 1233

            #35
            Zabbix is available (and has been for a while) in the Fedora EPEL (Extra Packages for Enterprise Linux) repositories for RHEL (or other derivatives) 4.x and 5.x. The RHEL 6 EPEL repo is still in beta and I would expect it to exit beta soon since RHEL 6 is now in production.

            To install EPEL follow these instructions:


            The Zabbix packages are updated on a regular basis, and also contain many of the proper SELinux rules to enhance security should you wish to run SELinux in enforcing mode.

            Unfortunately there isn't a writeup yet, I'll see what I can do to fix that, but everyone is more than welcome to beat me to it. :-) You will however need to set up the database on your own, but all of the files are provided (I can't remember the path though).
            RHCE, author of zbxapi
            Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
            Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

            Comment

            Working...