Ad Widget

Collapse

zabbix 1.3.2 - missed default user 'guest'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • patrick
    Member
    • Oct 2004
    • 57

    #1

    zabbix 1.3.2 - missed default user 'guest'

    Hi,
    I've installed zabbix 1.3.2 but I can't log as guest or admin. Every time I get the message [ERROR: Database corrupted, missed default user 'guest']. But looking at the database these users (guest and admin) exist.
    I'm using Fedora Core 6 (64bits), mysql 4.1.22, apache 2.2.4 and PHP 5.2.1
    What could be the problem?
    Thanks
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,
    Originally posted by patrick
    Every time I get the message [ERROR: Database corrupted, missed default user 'guest']. But looking at the database these users (guest and admin) exist.
    Right off the bat, it looks like the DB is corrupted, I would suggest running the DB repair tools for your specific DB.

    Also, please note that your are using the unstable, dev branch of Zabbix.
    Unofficial Zabbix Developer

    Comment

    • BorisL
      Junior Member
      • Jan 2007
      • 20

      #3
      It's a bug of web-interface of zabbix.

      Code:
      diff -aur /usr/build/zabbix-1.3.2/frontends/php/include/db.inc.php ./include/db.inc.php
      --- /usr/build/zabbix-1.3.2/frontends/php/include/db.inc.php    Tue Jan  2 23:57:33 2007
      +++ ./include/db.inc.php        Mon Jan 29 01:08:21 2007
      @@ -443,13 +443,7 @@
              {
                      global $DB_TYPE;
      
      -               switch($DB_TYPE)
      -               {
      -                       case "MYSQL":
      -                               $odiv = 'div';
      -                       default:
      -                               $odiv = '/';
      -               }
      +               (strcmp($DB_TYPE,"MYSQL"))? $odiv = '/' : $odiv = 'div';
      
                      return '('.$id_name.' '.$odiv.' 100000000000000)';
              }

      Comment

      • patrick
        Member
        • Oct 2004
        • 57

        #4
        now I get a white page

        Hi Boris. I've done what you told me to do but now I get a white index.php page (nothing at all in the window).

        Comment

        • bobrivers
          Senior Member
          • Feb 2007
          • 115

          #5
          Take a look at http://www.zabbix.com/forum/showthre...?t=4878&page=2

          It's a bug. It's necessary to edit db.inc.php and add some break commands. After that worked nice.

          Comment

          • BorisL
            Junior Member
            • Jan 2007
            • 20

            #6
            Originally posted by patrick
            I've done what you told me to do but now I get a white index.php page (nothing at all in the window).
            So there is an error in your php code. Take a look at apache logs for locating error. May be you have no string extension in your php installation?

            Or you can add break statements as advised above.

            Comment

            Working...