Ad Widget

Collapse

Make Zabbix easier to intall and configure

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nibb
    Member
    • Oct 2008
    • 78

    #31
    OK installation was easy actually. But like i said it needed some changes. Here is what I did. I followed the guide posted before but:

    First, for x64 you will need to look manually with yum -list for the x64 packages.

    After that you just follow everything normally. On the web installer you will see errors like:

    Undefined index: TYPE[/var/www/html/zabbix/include/db.inc.php:606]

    Im not sure why, but I did not got those on the x32 version. I just ignored those and followed the install, so i suppose maybe its harmless and its just the web interface errors.

    After all that, you will be able to start the agent but not the server. The fix is to edit /etc/init.d/zabbix_server

    And fix the field:
    ZABBIX_SUCKERD=$BASEDIR/bin/zabbix_server

    For the correct path:
    ZABBIX_SUCKERD=$BASEDIR/sbin/zabbix_server

    Then I just started it normally. I dont detect anything wrong so far just that on the server there are multiple instances of server and agent running but someone told that is normal.

    Comment

    • nibb
      Member
      • Oct 2008
      • 78

      #32
      Updated:

      When you log into Zabbix it says:
      ZABBIX server is running Value No

      I think that is no good. I think on my other install it showed yes. But on the server it seems the server is running. I see it at least.

      The only think that i did on the web installer was to use the actually hostname server instead of localhost. Not sure if that or the errors on the web installer is the one that caused that its not connecting to the server.

      I will try to see why the web interface shows the server as off.

      Comment

      • Tenzer
        Senior Member
        • Nov 2007
        • 316

        #33
        Originally posted by nibb
        When you log into Zabbix it says:
        ZABBIX server is running Value No
        That feature simply depends on the webinterface running "ps" in the background, to check if any zabbix_server processes are running. That means that if the webinterface is running on another server than the server with zabbix_server running, it will always state that the Zabbix server isn't running, since it can't check which processes are running on another system.

        Comment

        • bbrendon
          Senior Member
          • Sep 2005
          • 870

          #34
          Magic Zabbix Install Script for CentOS 5 and Red Hat 5.



          Just run and done.

          Unofficial Zabbix Expert
          Blog, Corporate Site

          Comment

          • nibb
            Member
            • Oct 2008
            • 78

            #35
            Originally posted by Tenzer
            That feature simply depends on the webinterface running "ps" in the background, to check if any zabbix_server processes are running. That means that if the webinterface is running on another server than the server with zabbix_server running, it will always state that the Zabbix server isn't running, since it can't check which processes are running on another system.
            OK but in this case the webinterface runs on the same machines as zabbix. Still I dont see any problems, except ping tools for example dont work. And some other minor stuff.

            Comment

            • Tenzer
              Senior Member
              • Nov 2007
              • 316

              #36
              The check is made on line 728 of include/config.inc.php:
              PHP Code:
              if( (exec('ps -ef|grep zabbix_server|grep -v grep|wc -l')>0) || (exec('ps -ax|grep zabbix_server|grep -v grep|wc -l')>0) ){
                  
              $status["zabbix_server"] = S_YES;
              }
              else{
                  
              $status["zabbix_server"] = S_NO;

              You could try to execute those commands manually on the server, in order to see which output you get. It could also relate to a PHP configuration issue, which may prohibit the use of the exec() function.

              Comment

              • nibb
                Member
                • Oct 2008
                • 78

                #37
                Code:
                [root@zabbix ~]# ps -ef|grep zabbix_server|grep -v grep|wc -l
                24
                [root@zabbix ~]# ps -ax|grep zabbix_server|grep -v grep|wc -l
                Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
                24
                [root@zabbix ~]#
                Thats the output from those commands.

                Strangely Zabbix does seem to run. Im monitoring the same server and its shows output. It seems ratter complicated to set up all, but I heard Zabbix is highly customizable and once it works it doest a very good job. Just wonder whats the biggest zabbix installation.

                Comment

                • davidtranusa
                  Junior Member
                  • Nov 2008
                  • 9

                  #38
                  Originally posted by bbrendon
                  Magic Zabbix Install Script for CentOS 5 and Red Hat 5.



                  Just run and done.

                  I tried your script on a 'clean" CentOS 5.2 and it works well. I would recommend
                  adding the following command to your script because mysqld is not start
                  by default in most CentOS or Redhat Linux:

                  /etc/rc.d/init.d/mysqld restart

                  Other than that, the script is working like a charm. Thank you very much for
                  that script.

                  Comment

                  • bbrendon
                    Senior Member
                    • Sep 2005
                    • 870

                    #39
                    Originally posted by davidtranusa
                    Other than that, the script is working like a charm. Thank you very much for
                    that script.
                    Thanks for the feedback. Sounds like a good added feature. I tried to make it clear that mysql installation was not part of the script, but it is very easy to manually do a yum install mysql-server, but I think you're right that mysql is not started.
                    Unofficial Zabbix Expert
                    Blog, Corporate Site

                    Comment

                    • nibb
                      Member
                      • Oct 2008
                      • 78

                      #40
                      Wish I had that before...

                      But Im sure it wil help allot of other people..

                      Nice community work.

                      Comment

                      • velosprinter
                        Junior Member
                        • Jul 2008
                        • 19

                        #41
                        I know this thread took a turn to CentOS but the install or should I say upgrade from 1.4 to 1.6 on Ubuntu was no walk in the park.

                        Maybe I should have started from scratch.

                        Comment

                        • rbilbao
                          Junior Member
                          • Apr 2009
                          • 1

                          #42
                          LiveCD ???

                          Originally posted by velosprinter
                          I know this thread took a turn to CentOS but the install or should I say upgrade from 1.4 to 1.6 on Ubuntu was no walk in the park.

                          Maybe I should have started from scratch.

                          Hi, I'm a newcomer here, but for a last weeks i'm working on a Zabbix's LiveCD based on DebianLive. Before I'll continue on this, maybe is't a good time to reopen this topic and:

                          - Select a base distro
                          - Select setup procedure
                          - LiveCD can install on a HDD or go live for ever ?
                          - etc..

                          Regards.
                          Raimundo

                          Comment

                          • velosprinter
                            Junior Member
                            • Jul 2008
                            • 19

                            #43
                            I like Ubuntu Server version but that is just me. I think one thing that would help is distro specific install instructions. That is not really up to Zabbix to do but maybe they could include the top 5 paths to installed files such as configs. They do seem to show up in different places.

                            Live would be fine if your hosts never change. Live USB w/ persistence would be even better. I have not looked into that but it does interest me so if I do I will certainly write a how to.

                            Comment

                            • bbrendon
                              Senior Member
                              • Sep 2005
                              • 870

                              #44
                              I think there are distro specific install instructions. Check the forums and the wiki. I know Red hat and Debian/Ubuntu are documented, which is 99% of linux right there.
                              Unofficial Zabbix Expert
                              Blog, Corporate Site

                              Comment

                              • Jun.Liu
                                Member
                                • Apr 2007
                                • 91

                                #45
                                Originally posted by gen2linuxdude
                                I installed a fresh Fedora Core 7 server in the lab and tried to install
                                Zabbix version 1.6.1 on it. After spending 48 hours on it, I gave up.
                                The instruction is terrible, I couldn't get ./configure to work properly.
                                It tells me that "mysqlclient" is missing among other things.
                                .
                                Actually, it's not the problem of Zabbix, but of the OS you selected. forget the Fedora Core..use the Ubuntu or Debian.. you will find just one easy command to install the missing thing like "mysqliclient"...

                                Comment

                                Working...