Ad Widget

Collapse

Admin login problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ltavenne
    Junior Member
    • Aug 2005
    • 7

    #1

    Admin login problem

    The solution was in

    and it was
    in db.inc.php
    remove of // in front of $DB_TYPE ="MYSQL"

    stupid thing - three weeks lost

    but it's my job too

    thanks for all


    i can't login with user admin and empty password

    i use zabbix 1.0, apache 1.3.27, php 4.3.5, mysql 3.23.56

    os is solaris 9

    importation of schema.sql and data.sql seems ok
    trapperd and suckerd work

    please help me
    Last edited by ltavenne; 05-08-2005, 16:11. Reason: solved problems
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Try Admin, not admin.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • ltavenne
      Junior Member
      • Aug 2005
      • 7

      #3
      not work

      i can connect to zabbix database with sqladmin
      i can see the default users

      the only thing i can't do is to connect to zabbix with my browser
      i do http://@ip
      then i receive the login page ; i notice i have the text "error: login name or password incorrect" before i write something
      Last edited by ltavenne; 04-08-2005, 15:36.

      Comment

      • Neo
        Member
        • Jun 2005
        • 59

        #4
        Is the information in the include files (web frontend) correct?

        Comment

        • ltavenne
          Junior Member
          • Aug 2005
          • 7

          #5
          contain of db.inc.php

          in fact, i follow the documentation

          \\ $DB_TYPE ="MYSQL";
          $DB_SERVER ="localhost";
          $DB_DATABASE ="zabbix";
          $DB_USER ="";
          $DB_PASSWORD ="";

          i tried with DB_USER = Admin but not solve
          then
          DB_USER = zabbix and DB_PASSWORD = zabbix but not solve

          when i modify this parameters, what process must i restart

          Comment

          • Neo
            Member
            • Jun 2005
            • 59

            #6
            You don;t have to restart any process after modifying the php files.
            Just refresh your web browser properly (CTRL+Refresh if needed).
            But I don't think that thats your probelm.
            I had this same problem with Zabbix 1.0 too but the problem was with my PHP configuration.'
            GO have a look at this thread
            <edit>Which points to this thread</edit>

            Comment

            • elkor
              Senior Member
              • Jul 2005
              • 299

              #7
              I'm pretty sure DB_user and DB_password need to be set in the inc.db.php file (or whatever it is) for this to work AT ALL

              this needs to be set to the mysql user that will be using the zabbix database (or the mysql "root" account if that's the way you want to do it, although it should really be a different user)

              the Admin/nopass is just to log the front end in and is stored in the database but if the frontend can not connect to the database at all to verify this it will never work.

              The incorrect user/password is probably a php error from it trying to make a db connection and not from you entering the wrong admin user in.

              hmmm... I probably rambled on a bit there, I hope it makes sense. I'm about to go home for the day. In a nutshell: the database user and the frontend admin are two different things entirely.

              Comment

              • James Wells
                Senior Member
                • Jun 2005
                • 664

                #8
                Greetings,
                Originally posted by ltavenne
                i can connect to zabbix database with sqladmin
                i can see the default users

                the only thing i can't do is to connect to zabbix with my browser
                i do http://@ip
                then i receive the login page ; i notice i have the text "error: login name or password incorrect" before i write something
                This generally indicates two possible issues, the first being that the Zabbix frontend is unable to log into the database and the other issue is a cookie corruption in your web browser.

                For the first issue, simply update db.inc.php with the correct DB, user, and password.

                Foir the second issue, simply flush your browser's cookies, completely shut down the browser and restart it.
                Unofficial Zabbix Developer

                Comment

                • ltavenne
                  Junior Member
                  • Aug 2005
                  • 7

                  #9
                  New informations

                  i tried many things about your answers (thanks a lot) but i still have the same problem

                  i activate log into mysql and i can see that when i use the browser to connect to zabbix, there is no access to database for checking user (log is empty)

                  when i activate sucker or trapper, i see activity into log

                  i wonder if i have à good installation of apache or php

                  Comment

                  • ltavenne
                    Junior Member
                    • Aug 2005
                    • 7

                    #10
                    Admin login problem resolved

                    The solution was in

                    and it was
                    in db.inc.php
                    remove of // in front of $DB_TYPE ="MYSQL"

                    stupid thing - three weeks lost

                    but it's my job too

                    thanks for all

                    Comment

                    • zebulon

                      #11
                      your link doesn't work

                      excuse,me but your link doesn't work could you modify this.

                      thanks.

                      Comment

                      • sinj
                        Junior Member
                        • Aug 2005
                        • 2

                        #12
                        my solution

                        Same problem, unable to login with Admin user with empty pass.

                        Solution:

                        I forget to fill the zabbix database with data so there was no Admin user in user table.

                        So I did the 'cat data.sql | mysql -u root -p zabbix' and now I can log in.

                        OSebian.
                        DB:MySQL
                        data.sql in [zabbix-source-dir]/create/data

                        Comment

                        Working...