Ad Widget

Collapse

ZABBIX server is running - - No

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • toffelsen
    Junior Member
    • May 2006
    • 9

    #1

    ZABBIX server is running - - No

    Finally I finished the installation of my zabbix but although everything seems to be up and running I get this message in the "reports". Why?

    Regards
    toffelsen
  • erisan500
    Senior Member
    Zabbix Certified Specialist
    • Aug 2005
    • 285

    #2
    That means you didn't started the zabbix server process.

    Greetings
    EriSan
    Zabbix Certified Specialist

    Comment

    • shabo
      Junior Member
      • May 2006
      • 6

      #3
      Originally posted by toffelsen
      Finally I finished the installation of my zabbix but although everything seems to be up and running I get this message in the "reports". Why?
      i had the same problem when i used slackware with openwall kernel patch. it's because of security issues provided by this patch.

      Comment

      • toffelsen
        Junior Member
        • May 2006
        • 9

        #4
        gentoo, not slackware

        Thanks for the quick replies.

        But both of you two are telling me things that do not seem to be useful.

        Especially the reply from erisan is not helpful because rc-status tells me that the processes are running.

        And "openwall kernel patch" just says nothing to me. How could I find out if this is my problem?

        cu :-)

        Comment

        • epifanova
          Junior Member
          • May 2006
          • 26

          #5
          which OS do you use?
          zabbix_server and frontend runnig under one user or under different users?

          Comment

          • toffelsen
            Junior Member
            • May 2006
            • 9

            #6
            Yes, I do have installed this now on a new GENTOO. Zabbix server and frontend - I do not understand, what you are asking. Where did I configure this?

            Comment

            • shabo
              Junior Member
              • May 2006
              • 6

              #7
              Originally posted by toffelsen
              And "openwall kernel patch" just says nothing to me.
              Owl, Openwall, GNU, Linux, concept, concepts, approach, approaches, secure, security, features, build, compatibility, OS, system, server, distribution, source, sources, source code, code, review, audit, safe defaults, privilege, privilege separation, least privilege, SUID, setuid, set-uid, control, owl-control, hardening, strong, cryptography, crypto, policy, enforcement, password, integrity, checking, mtree, buildworld, installworld, BSD, ports, CVS, RPM, rpm, package, packages, Red Hat, x86, SPARC, Alpha


              Comment

              • toffelsen
                Junior Member
                • May 2006
                • 9

                #8
                Hi shabo,
                I do not think now, that my GENTOO has this Owl. Is there a way to find out if I really have no Owl?

                Comment

                • shabo
                  Junior Member
                  • May 2006
                  • 6

                  #9
                  if you had not patched your kernel - you don't have it. i gave you the wrong link earlier. right one is: http://www.openwall.com/linux/

                  earlier was to complete distro called openwall. above is to kernel patch. sorry

                  Comment

                  • schneck
                    Member
                    • May 2006
                    • 62

                    #10
                    Re: ZABBIX server is running - - No

                    Originally posted by toffelsen
                    Finally I finished the installation of my zabbix but although everything seems to be up and running I get this message in the "reports". Why?

                    > ZABBIX server is running - - No
                    The Zabbix GUI tries to figure out wether the server process is running by using the ps command:

                    > [include/config.inc.php, line 1846]
                    > 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) )

                    This statement is run when the PHP script is executed, ie. when the web server gets a request for report1.php (which includes config.inc.php). There can be several reasons why this might fail, eg:
                    * the web server can't run the ps command due to access control restrictions
                    * the system doesn't allow users to view processes of other users
                    * the web server runs chroot(2)ed and doesn't have access to ps

                    There are (at least) two ways to fix the message:
                    * make sure the web server can run ps(1) and see the zabbix_server process
                    * use some different method to figure out if zabbix_server is running

                    \B.

                    Comment

                    • toffelsen
                      Junior Member
                      • May 2006
                      • 9

                      #11
                      No, I did not patch my kernel. It´s just build by genkernel - if you know what I mean. Not all are familiar with the gentoo things.

                      Comment

                      • toffelsen
                        Junior Member
                        • May 2006
                        • 9

                        #12
                        There are (at least) two ways to fix the message:
                        * make sure the web server can run ps(1) and see the zabbix_server process
                        * use some different method to figure out if zabbix_server is running
                        Good morning and thanks again for helpful hints.
                        But how do I
                        make sure the web server can run ps
                        ?
                        And second: Do you mean something like rc-status? Because here the zabbix_server ist shown as running.

                        Comment

                        • toffelsen
                          Junior Member
                          • May 2006
                          • 9

                          #13
                          Zabbix ~ # ps -ef|grep zabbix_server|grep -v grep|wc -l
                          0
                          Zabbix ~ #


                          Is it that what you mean?

                          Comment

                          • schneck
                            Member
                            • May 2006
                            • 62

                            #14
                            Originally posted by toffelsen
                            Zabbix ~ # ps -ef|grep zabbix_server|grep -v grep|wc -l
                            0
                            Zabbix ~ #


                            Is it that what you mean?
                            Yes, if you can't find zabbix_server when you run ps(1) on the command line, that would explain why the Web-GUI thinks the server is not running.

                            I can only give you general advice, because everyone's setup is different. I've never touched Gentoo (afaik :-) and don't know about their specifics.

                            First make sure that your ps(1) works from the command line.
                            Then make sure that ps(1) also works when called from the GUI (ie, running as a sub-process of your web server, which is usually apache)

                            If these two conditions are met, Zabbix should appear as running in the GUI.

                            Best luck!

                            And second: Do you mean something like rc-status? Because here the zabbix_server ist shown as running.
                            No, I was thinking that the zabbix_server could store some sort of I'm alive data in the database (say every 30sec), which the GUI can check. This would require changes to both zabbix_server and the GUI and needs to be done by the Great Zabbix Developer Team (if they decide to follow this path). Of course, there may be other ways to implement it, too.

                            Comment

                            • toffelsen
                              Junior Member
                              • May 2006
                              • 9

                              #15
                              I found it.
                              I had a wrong password in my /etc/zabbix/zabbix_server.conf

                              Database host name
                              # Default is localhost

                              DBHost=localhost

                              # Database name

                              DBName=zabbix

                              # Database user

                              DBUser=zabbix

                              # Database password
                              # Comment this line if no password used

                              DBPassword=passposs
                              Last edited by toffelsen; 02-06-2006, 12:17.

                              Comment

                              Working...