Ad Widget

Collapse

Problem with Zabbix 1.4.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rs26
    Member
    • Jan 2008
    • 42

    #1

    Problem with Zabbix 1.4.4

    Hello,


    A new problem at the next page.







    I'm french. I don't speak english very well.

    I have a problem with Zabbix 1.4.4, installed on a Linux Debian 4. The installation is OK, I access to the web interface. I have started the zabbix_server (/usr/local/sbin/zabbix_server). There is no (error) message and no message at all. But when I'm going to Reports > Status Of Zabbix, I have this :

    STATUS OF ZABBIX
    Paramete Value
    ZABBIX server is running No

    I've tried to install a host (the zabbix server) but I don't receive data (or graph).

    Can you help me please ?

    Excuse me for my poor english...

    Thank you !

    EDIT : The Agent can't join ther server(which is not active, maybe) :

    006928:20080124:121538 zabbix_agentd started. ZABBIX 1.1.4.
    006929:20080124:121538 zabbix_agentd 6929 started
    006931:20080124:121538 zabbix_agentd 6931 started
    006932:20080124:121538 zabbix_agentd 6932 started
    006933:20080124:121538 zabbix_agentd 6933 started
    006930:20080124:121538 zabbix_agentd 6930 started
    006933:20080124:121538 Cannot connect to [localhost:10051] [Connection refused]
    006933:20080124:121538 Getting list of active checks failed. Will retry after 60 seconds
    006933:20080124:121638 Cannot connect to [localhost:10051] [Connection refused]
    006933:20080124:121638 Getting list of active checks failed. Will retry after 60 seconds
    EDIT 2 : The agent is running (OK !) : the temporary file is updated every 30 seconds.
    Last edited by rs26; 29-01-2008, 17:05.
  • ufocek
    Senior Member
    • Aug 2006
    • 161

    #2
    Could you telnet localhost 10051 end what the command return?
    has you looking on /tmp/zabbix_server.log ?

    Comment

    • rs26
      Member
      • Jan 2008
      • 42

      #3
      /tmp/zabbix_server.log doesn't exist...

      The command :

      debian:/home/boris# telnet localhost 10051
      Trying 127.0.0.1...
      Trying 127.0.1.1...
      telnet: Unable to connect to remote host: Connection refused

      Comment

      • johnzan
        Junior Member
        • Jan 2008
        • 8

        #4
        Hi,

        on the server can you verify that the zabbix_server is running?
        in a shell/terminal type: ps -ef | grep zabbix_server

        There should be a list of zabbix_server processes.

        Another thing to check, did you start the zabbix_server process as the zabbix user or as root?

        the zabbix_server process will not normally run as root, as far as I know.

        Hope this helps,
        cheers,
        J.

        Comment

        • rs26
          Member
          • Jan 2008
          • 42

          #5
          The check with ps :
          debian:/home/boris# ps -ef | grep zabbix_server
          root 6828 4936 0 17:29 pts/1 00:00:00 grep zabbix_server
          The server is running, isn't it ?

          I start the "/usr/local/sbin/zabbix_server" as root yesterday. I try it as zabbix user now.

          Thank you for helps !

          Comment

          • rs26
            Member
            • Jan 2008
            • 42

            #6
            When I do ls -l in the repertory, I have this :

            debian:/usr/local/sbin# ls -l
            total 1120
            -rwxrwxrwx 1 root staff 1138695 2008-01-23 09:58 zabbix_server
            I've done a chmod 777 on the file to try.

            When I log as zabbix (user), I have this :
            zabbix@debian:/usr/local/sbin$ zabbix_server
            bash: zabbix_server: command not found
            And when I log as root :

            zabbix@debian:/usr/local/sbin$ su
            Password:
            debian:/usr/local/sbin# zabbix_server
            debian:/usr/local/sbin#
            Terminal doesn't display message when i execute the command.

            Thank you for helping.

            Comment

            • johnzan
              Junior Member
              • Jan 2008
              • 8

              #7
              Hi,

              it looks like zabbix_server is NOT running on your system.

              debian:/home/boris# ps -ef | grep zabbix_server
              root 6828 4936 0 17:29 pts/1 00:00:00 grep zabbix_server
              The command above shows the grep command you executed


              In order to run zabbix_server you need to execute as the zabbix user, NOT as the root user.

              What happens when you follow theses steps..

              Step 1. Log onto the debian as root and then execute the following:

              Change to the zabbix user
              Code:
              su - zabbix
              Step 2. Verify the zabbix user's path included the location for the zabbix_server executable:
              Code:
              echo $PATH
              The location of the zabbix_server must be in the zabbix users PATH. If step 2 above did not include "/usr/local/sbin" then you need to add that to the path. To add "/usr/local/sbin" to the zabbix user's path execute the following as the zabbix user:

              Code:
              PATH=$PATH:/usr/local/sbin
              Then to verify that the path as changed take a look by executing this command:

              Code:
              echo $PATH
              You should see /usr/local/sbin as the last item in the string.

              Now, try and execute the zabbix_server command (as the zabbix user). When you run this command there is NO output displayed, but you can check to see if it is running by executing this command:

              Code:
              ps -ef | grep zabbix_server

              Let me know how you get on.
              Cheers,
              J.

              Comment

              • rs26
                Member
                • Jan 2008
                • 42

                #8
                Hi,

                I do that you tell me :

                debian:/usr/local/sbin# cd
                debian:~# su - zabbix
                zabbix@debian:~$ echo $PATH
                /usr/local/bin:/usr/bin:/bin:/usr/games
                zabbix@debian:~$ PATH=$PATH:/usr/local/sbin
                zabbix@debian:~$ echo $PATH
                /usr/local/bin:/usr/bin:/bin:/usr/games:/usr/local/sbin
                zabbix@debian:~$ /usr/local/sbin/zabbix_server
                zabbix@debian:~$ ps -ef | grep zabbix_server
                zabbix 9292 9159 0 18:44 pts/1 00:00:00 grep zabbix_server
                zabbix@debian:~$ ps -ef | grep zabbix_server
                zabbix 9366 9159 0 18:45 pts/1 00:00:00 grep zabbix_server
                zabbix@debian:~$
                ...

                EDIT : the clock is not good It is normal.

                EDIT 2 : When I do that, and I log with root and I re-log zabbix (user), I have this : the /usr/local/sbin is not there :

                zabbix@debian:~$ PATH=$PATH:/usr/local/sbin/
                zabbix@debian:~$ echo $PATH
                /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/sbin/
                zabbix@debian:~$ cd /usr/local/sbin
                zabbix@debian:/usr/local/sbin$ zabbix_server
                zabbix@debian:/usr/local/sbin$ ps -ef | grep zabbix_server
                zabbix 9845 9741 0 18:59 pts/1 00:00:00 grep zabbix_server
                zabbix@debian:/usr/local/sbin$ echo $PATH
                /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/sbin/
                zabbix@debian:/usr/local/sbin$ su root
                Password:
                debian:/usr/local/sbin# su zabbix
                zabbix@debian:/usr/local/sbin$ echo $PATH
                /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
                Last edited by rs26; 25-01-2008, 11:24.

                Comment

                • johnzan
                  Junior Member
                  • Jan 2008
                  • 8

                  #9
                  what's in the zabbix_server.conf file?

                  Code:
                  cat /etc/zabbix/zabbix_server.conf

                  Comment

                  • rs26
                    Member
                    • Jan 2008
                    • 42

                    #10
                    Configuration File :

                    debian:~# cat /etc/zabbix/zabbix_server.conf
                    DBName=zabbix
                    DBHost=localhost
                    DBUser=root
                    DBPassword=root

                    Comment

                    • johnzan
                      Junior Member
                      • Jan 2008
                      • 8

                      #11
                      That does not look correct. Where is the PidFile, logFile references?

                      Did you compile the zabbix_server yourself or install a pre built binary?

                      There should be a conf file ( misc/conf/zabbix_server.conf) in the sources directory.

                      Comment

                      • rs26
                        Member
                        • Jan 2008
                        • 42

                        #12
                        Originally posted by johnzan
                        Where is the PidFile, logFile references?
                        I don't understand ...

                        Originally posted by johnzan
                        Did you compile the zabbix_server yourself or install a pre built binary?
                        I compile the zabbix_server. ( ./configure ...)

                        Originally posted by johnzan
                        There should be a conf file ( misc/conf/zabbix_server.conf) in the sources directory.
                        Where is it ?

                        Comment

                        • johnzan
                          Junior Member
                          • Jan 2008
                          • 8

                          #13
                          On my server I have the following..

                          Code:
                          root@svpmon3:/home/zabbix/zabbix-1.4.4/misc/conf# pwd
                          /home/zabbix/zabbix-1.4.4/misc/conf
                          
                          root@svpmon3:/home/zabbix/zabbix-1.4.4/misc/conf# ll
                          total 24
                          drwxrwxrwx 2 zabbix zabbix 4096 2007-12-17 13:31 .
                          drwxrwxrwx 6 zabbix zabbix 4096 2008-01-22 09:43 ..
                          -rw-r--r-- 1 zabbix zabbix 1121 2007-12-17 13:19 zabbix_agent.conf
                          -rw-r--r-- 1 zabbix zabbix 2446 2007-12-17 13:19 zabbix_agentd.conf
                          -rw-r--r-- 1 zabbix zabbix 3518 2007-12-17 13:19 zabbix_server.conf
                          -rw-r--r-- 1 zabbix zabbix  755 2007-12-17 13:19 zabbix_trapper.conf
                          root@svpmon3:/home/zabbix/zabbix-1.4.4/misc/conf#
                          In the location where you ran the command

                          Code:
                           ./configure  --enable-server --enable-agent --with-mysql
                          you should also has the same.
                          Copy the zabbix_server.conf to /etc/zabbix/
                          change the database params to the same as you currently have.
                          Change the debug Level to 4 (DebugLevel=4) in the conf file and try and start the zabbix_server again.

                          Take a look in the log file (LogFile=/tmp/zabbix_server.log) for any messages that may help.

                          cheers,
                          J.

                          Comment

                          • rs26
                            Member
                            • Jan 2008
                            • 42

                            #14
                            Hi,

                            I do what you tell me. The zabbix_server is running now !!!

                            I test it and I'll tell you if it's perfect !

                            Thank you very much !

                            Comment

                            • johnzan
                              Junior Member
                              • Jan 2008
                              • 8

                              #15
                              You're very welcome and I'm happy it's working for you

                              Cheers,
                              J.

                              Comment

                              Working...