Ad Widget

Collapse

Zabbix Server does not start

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • quennoz
    Junior Member
    • Sep 2010
    • 12

    #1

    Zabbix Server does not start

    Hey guys,

    perhaps someone can help me, but i cannot make the Zabbix Server to get started...

    I've tried this:
    su - zabbix
    zabbix_server
    exit

    and this:
    sudo /etc/init.d/zabbix-server start
    sudo /etc/init.d/zabbix-agent start

    And after that, there are no Zabbix-Services running...

    How can I fix this?
    I want to use 1.8 version on debian lenny
    If you need any further information, just ask and I'll get them...

    Ty for your effort and help!!

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

    #2
    What does the log file say? Unless you have stated otherwise in your /etc/zabbix/zabbix_server.conf file it will be found at /tmp/zabbix_server
    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

    • quennoz
      Junior Member
      • Sep 2010
      • 12

      #3
      I just had a look at it, and its still at the default path at the /etc/zabbix/zabbix_server.conf.

      ### Option: LogFile
      # Name of log file.
      # If not set, syslog is used.
      #
      # Mandatory: no
      # Default:
      # LogFile=

      LogFile=/tmp/zabbix_server.log


      So it should be /tmp/zabbix_server.log

      But if want to have a look at it, it tells me that there is no directory or file called like this...

      So it doesnt even write something to any log file....

      Q

      Comment

      • quennoz
        Junior Member
        • Sep 2010
        • 12

        #4
        Hey guys,

        could somone of you please help me, its quite urgent, because its for my apprenticeship-project!!!!
        PLEASE!!!
        THANK YOU!!!!

        Comment

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

          #5
          If you can, get on IRC Freenode #zabbix.

          Well let's start with the basics. Can you pull up the version information for the zabbix server?

          Code:
          zabbix_server -V
          You may need to prepend the path.

          Also what are the permissions to /tmp and /etc/zabbix

          Code:
          ls -ld /tmp
          ls -ld /etc/zabbix
          Do you have SELinux running? What are in the SELinux logs? Which distro are you running?
          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

          • quennoz
            Junior Member
            • Sep 2010
            • 12

            #6
            /etc/init.d# zabbix_server -V
            bash: zabbix_server: command not found

            I am workins root, so I've all permissions.

            The distribution I'm working with is Debian 5.0 Lenny.

            With this installation guide i've installed Zabbix...so I wonder why something isn't working...

            http://www.zabbix.com/wiki/howto/ins...8_on_debian_50

            Or do you know if something is wrong with the guide??

            Thanks alot fpr your help!!!!!

            Gratefully Q

            Comment

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

              #7
              I can't tell you if the guide is right or wrong, I'm not a Debian user.

              Hmmm.... Did the install/compile complete correctly?

              If you have locate installed what happens when you try the following?

              Code:
              locate zabbix| grep bin
              Specifically we're looking for items which are not in your home directory. We're looking to see if the binaries are installed properly. On my system for instance the Zabbix binaries are in /usr/local/sbin/, that may be different for your system.

              Next if they are installed what happens when you try and run it with the path? For instance on *my* system this would be:
              Code:
              /usr/local/sbin/zabbix_server -V
              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

              • quennoz
                Junior Member
                • Sep 2010
                • 12

                #8
                after doing locate zabbix | grep bin >>

                /home/zabbix/.gstreamer-0.10/registry.i486.bin
                /home/zabbix/zabbix-1.8.2/bin
                /home/zabbix/zabbix-1.8.2/bin/win32
                /home/zabbix/zabbix-1.8.2/bin/win64
                /home/zabbix/zabbix-1.8.2/bin/win32/zabbix_agentd.exe
                /home/zabbix/zabbix-1.8.2/bin/win32/zabbix_get.exe
                /home/zabbix/zabbix-1.8.2/bin/win32/zabbix_sender.exe
                /home/zabbix/zabbix-1.8.2/bin/win64/zabbix_agentd.exe
                /home/zabbix/zabbix-1.8.2/bin/win64/zabbix_get.exe
                /home/zabbix/zabbix-1.8.2/bin/win64/zabbix_sender.exe

                So all of the binary files are @ home!
                So it seems, that they're not properly installed...


                gratefully Q

                Comment

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

                  #9
                  It looks more like you don't have Zabbix installed, but rather just the Windows agent binaries.
                  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

                  • quennoz
                    Junior Member
                    • Sep 2010
                    • 12

                    #10
                    Seems to be...but how can this be? The Web-GUI is working quite well...the only problem ist that it tells me that the Zabbix Server isn't running...All other things are looking quite ready to start!!

                    Would it be possible for you to take a short look a the guide i've posted to see whats missing? At the end of the guide they say, it should work!! Perhaps something is missing there??

                    Or can you give me another advice? It seems everything to be ok, instead of the binaries...

                    Perhaps the "make install" didn't work quite well, could this be?

                    I can post the output of the ./configure stuff and the make install if it helps...

                    ty Q

                    Comment

                    • quennoz
                      Junior Member
                      • Sep 2010
                      • 12

                      #11
                      This is the result of

                      ./configure --enable-server --enable-agent --with-pgsql --with-net-snmp --with-libcurl --with-jabber --prefix=/tmp

                      Configuration:

                      Detected OS: linux-gnu
                      Install path: /tmp
                      Compilation arch: linux

                      Compiler: gcc
                      Compiler flags: -g -O2 -I/usr/include/postgresql -I/usr/local/include -I/usr/lib/perl/5.10/CORE -I. -I/usr/include

                      Enable server: yes
                      With database: PostgreSQL
                      WEB Monitoring via: cURL
                      Native Jabber: yes
                      SNMP: net-snmp
                      IPMI: no
                      Linker flags: -L/usr/lib -lpq -liksemel -lcurl -L/usr/lib -lnetsnmp -lcrypto -L/usr/lib -lnetsnmp -lcrypto
                      Libraries: -lm -lresolv -liksemel -lcurl -lnetsnmp

                      Enable proxy: no

                      Enable agent: yes
                      Linker flags:
                      Libraries: -lm -lresolv

                      LDAP support: no
                      IPv6 support: no

                      ************************************************** *********
                      * Now run 'make install' *
                      * *
                      * Thank you for using Zabbix! *
                      * <http://www.zabbix.com> *
                      ************************************************** *********



                      Make install...
                      .
                      .
                      .
                      test -z "/tmp/sbin" || /bin/mkdir -p "/tmp/sbin"
                      /usr/bin/install -c 'zabbix_server' '/tmp/sbin/zabbix_server'
                      make[4]: Für das Ziel »install-data-am« ist nichts zu tun.
                      make[4]: Leaving directory `/home/zabbix/zabbix-1.8.2/src/zabbix_server'
                      make[3]: Leaving directory `/home/zabbix/zabbix-1.8.2/src/zabbix_server'
                      make[2]: Leaving directory `/home/zabbix/zabbix-1.8.2/src/zabbix_server'
                      make[2]: Entering directory `/home/zabbix/zabbix-1.8.2/src'
                      make[3]: Entering directory `/home/zabbix/zabbix-1.8.2/src'
                      make[3]: Für das Ziel »install-exec-am« ist nichts zu tun.
                      make[3]: Für das Ziel »install-data-am« ist nichts zu tun.
                      make[3]: Leaving directory `/home/zabbix/zabbix-1.8.2/src'
                      make[2]: Leaving directory `/home/zabbix/zabbix-1.8.2/src'
                      make[1]: Leaving directory `/home/zabbix/zabbix-1.8.2/src'
                      Making install in create
                      make[1]: Entering directory `/home/zabbix/zabbix-1.8.2/create'
                      make[2]: Entering directory `/home/zabbix/zabbix-1.8.2/create'
                      make[2]: Für das Ziel »install-exec-am« ist nichts zu tun.
                      make[2]: Für das Ziel »install-data-am« ist nichts zu tun.
                      make[2]: Leaving directory `/home/zabbix/zabbix-1.8.2/create'
                      make[1]: Leaving directory `/home/zabbix/zabbix-1.8.2/create'
                      Making install in man
                      make[1]: Entering directory `/home/zabbix/zabbix-1.8.2/man'
                      make[2]: Entering directory `/home/zabbix/zabbix-1.8.2/man'
                      make[2]: Für das Ziel »install-exec-am« ist nichts zu tun.
                      test -z "/tmp/share/man/man1" || /bin/mkdir -p "/tmp/share/man/man1"
                      /usr/bin/install -c -m 644 './zabbix_get.man' '/tmp/share/man/man1/zabbix_get.1 '
                      /usr/bin/install -c -m 644 './zabbix_sender.man' '/tmp/share/man/man1/zabbix_se nder.1'
                      test -z "/tmp/share/man/man8" || /bin/mkdir -p "/tmp/share/man/man8"
                      /usr/bin/install -c -m 644 './zabbix_agentd.man' '/tmp/share/man/man8/zabbix_ag entd.8'
                      /usr/bin/install -c -m 644 './zabbix_server.man' '/tmp/share/man/man8/zabbix_se rver.8'
                      make[2]: Leaving directory `/home/zabbix/zabbix-1.8.2/man'
                      make[1]: Leaving directory `/home/zabbix/zabbix-1.8.2/man'
                      Making install in misc
                      make[1]: Entering directory `/home/zabbix/zabbix-1.8.2/misc'
                      make[2]: Entering directory `/home/zabbix/zabbix-1.8.2/misc'
                      make[2]: Für das Ziel »install-exec-am« ist nichts zu tun.
                      make[2]: Für das Ziel »install-data-am« ist nichts zu tun.
                      make[2]: Leaving directory `/home/zabbix/zabbix-1.8.2/misc'
                      make[1]: Leaving directory `/home/zabbix/zabbix-1.8.2/misc'
                      Making install in upgrades
                      make[1]: Entering directory `/home/zabbix/zabbix-1.8.2/upgrades'
                      make[2]: Entering directory `/home/zabbix/zabbix-1.8.2/upgrades'
                      make[2]: Für das Ziel »install-exec-am« ist nichts zu tun.
                      make[2]: Für das Ziel »install-data-am« ist nichts zu tun.
                      make[2]: Leaving directory `/home/zabbix/zabbix-1.8.2/upgrades'
                      make[1]: Leaving directory `/home/zabbix/zabbix-1.8.2/upgrades'
                      make[1]: Entering directory `/home/zabbix/zabbix-1.8.2'
                      make[2]: Entering directory `/home/zabbix/zabbix-1.8.2'
                      make[2]: Für das Ziel »install-exec-am« ist nichts zu tun.
                      make[2]: Für das Ziel »install-data-am« ist nichts zu tun.
                      make[2]: Leaving directory `/home/zabbix/zabbix-1.8.2'
                      make[1]: Leaving directory `/home/zabbix/zabbix-1.8.2'

                      This couldn't be correct could it?? And thats through the whole installation process the same....

                      Comment

                      • quennoz
                        Junior Member
                        • Sep 2010
                        • 12

                        #12
                        Zabbix server is running Yes -

                        I'VE JUST MADE IT

                        Was just installing new packages and did overwrite all existing files

                        http://www.zabbix.com/wiki/howto/ins...bbix_on_debian

                        Hopefully the configuration will work...only have 5 days left...

                        Q

                        Comment

                        • quennoz
                          Junior Member
                          • Sep 2010
                          • 12

                          #13
                          But how can I configure Zabbix to monitor itself and my Windows Computer????

                          Please need your help!!

                          Comment

                          • MrKen
                            Senior Member
                            • Oct 2008
                            • 652

                            #14
                            quennoz said:

                            Originally posted by quennoz
                            But how can I configure Zabbix to monitor itself and my Windows Computer????

                            Please need your help!!

                            quenoz also said:

                            Originally posted by quennoz
                            Hey guys,

                            could somone of you please help me, its quite urgent, because its for my apprenticeship-project!!!!
                            PLEASE!!!
                            THANK YOU!!!!
                            So, you want us to do your homework for you???

                            One of the best skills an IT guy can develop is the ability to 'Google', that is, 'the ability to research and find solutions to problems'.

                            Perhaps you could try the wiki, on-line documentation, or googling 'xxxxx site:zabbix.com'.

                            Sorry to sound a bit harsh on you, but, . . . . (read the online docs) . . . .

                            One day you will thank me.
                            MrKen
                            Disclaimer: All of the above is pure speculation.

                            Comment

                            • quennoz
                              Junior Member
                              • Sep 2010
                              • 12

                              #15
                              Yeah you're definitly right!

                              The problem is, that I am running out of time...
                              Only today and in three weeks for another four days...but I'll get this, hopefully!

                              Comment

                              Working...