Ad Widget

Collapse

Zabbix-1.5.2 frontend setup errors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kc5kse
    Member
    • Feb 2008
    • 73

    #1

    Zabbix-1.5.2 frontend setup errors

    I am installing zabbix-1.5.2 from scratch. During frontend setup, I get this:

    Undefined index: DB[/usr/local/zabbix-1.5.2/frontends/php/include/setup.inc.php:678]
    Undefined variable: ZBX_SERVER[/usr/local/zabbix-1.5.2/frontends/php/include/setup.inc.php:685]
    Undefined variable: ZBX_SERVER_PORT[/usr/local/zabbix-1.5.2/frontends/php/include/setup.inc.php:686]
    Unable to select configuration

    My zabbix.conf.php file is set up properly. However, during setup, I don't see those values in the gui.

    Any ideas? The reason I am using zabbix-1.5.2 is becaule of the mysql error in 1.5.1. I am also having to prove distributed monitoring to the powers that be.

    Any help would be greatly appreciated.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    I am not sure what causes your problem. You may manually create zabbix.conf.php for now. It looks like:

    Code:
    <?php
    global $DB, $IMAGE_FORMAT_DEFAULT;
    
    $DB["TYPE"]        = "MYSQL";
    $DB["SERVER"]      = "localhost";
    $DB["PORT"]      = "0";
    $DB["DATABASE"]    = "trunk";
    $DB["USER"]        = "root";
    $DB["PASSWORD"]    = "";
    $IMAGE_FORMAT_DEFAULT   = IMAGE_FORMAT_PNG;
    ?>
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • kc5kse
      Member
      • Feb 2008
      • 73

      #3
      Ok, now I get this:

      * Undefined index: DB[/usr/local/zabbix-1.5.2/frontends/php/include/setup.inc.php:536]
      * mysql_pconnect() [<a href='function.mysql-pconnect'>function.mysql-pconnect</a>]: Link to server lost, unable to reconnect[/usr/local/zabbix-1.5.2/frontends/php/include/db.inc.php:50]

      I'm at a loss...

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        You don't have to run the Installation Wizard if the file is in place, i.e. under conf/. Just press 'Cancel'.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • kc5kse
          Member
          • Feb 2008
          • 73

          #5
          Whenever I try to go anywhere, it takes me to setup. I get all the way to 4. Configure DB connection and when I put in the proper config, I get:

          * Undefined index: DB[/usr/local/zabbix-1.5.2/frontends/php/include/setup.inc.php:536]
          * Unable to select configuration

          However, the 'test connection' gives ok, but, it doesn't keep my password. I have to retype the password THEN hit next. I can go all the way to finish but it keeps giving me the abover errors.

          Comment

          • Alexei
            Founder, CEO
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2004
            • 5654

            #6
            Do you have this file with correct permissions?
            /usr/local/zabbix-1.5.2/frontends/php/conf/zabbix.conf.php
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • kc5kse
              Member
              • Feb 2008
              • 73

              #7
              Yes, owned by apache with 644 permissions.

              Comment

              • kc5kse
                Member
                • Feb 2008
                • 73

                #8
                Well, I completely wiped the slate clean and re-installed. Now, I get all the way to 7.Install and this appears in the gui:

                * Undefined variable: ZBX_SERVER[/usr/local/zabbix-1.5.2/frontends/php/include/setup.inc.php:685]
                * Undefined variable: ZBX_SERVER_PORT[/usr/local/zabbix-1.5.2/frontends/php/include/setup.inc.php:686]

                Comment

                • kc5kse
                  Member
                  • Feb 2008
                  • 73

                  #9
                  I'm still stuck here. Any help would be greatly appreciate!

                  Comment

                  • Aly
                    ZABBIX developer
                    • May 2007
                    • 1126

                    #10
                    Next time plz write to ZABBIX alpha thread

                    Apply this diff:
                    Should help.
                    Attached Files
                    Last edited by Aly; 08-05-2008, 09:06.
                    Zabbix | ex GUI developer

                    Comment

                    • Alexei
                      Founder, CEO
                      Zabbix Certified Trainer
                      Zabbix Certified SpecialistZabbix Certified Professional
                      • Sep 2004
                      • 5654

                      #11
                      Moved to this forum.
                      Alexei Vladishev
                      Creator of Zabbix, Product manager
                      New York | Tokyo | Riga
                      My Twitter

                      Comment

                      • kc5kse
                        Member
                        • Feb 2008
                        • 73

                        #12
                        Thanks! That did the trick.

                        Comment

                        • sebelk
                          Member
                          • Nov 2007
                          • 72

                          #13
                          I have the same problem as kc5kse

                          Comment

                          • sebelk
                            Member
                            • Nov 2007
                            • 72

                            #14
                            Originally posted by kc5kse
                            Thanks! That did the trick.
                            did you solved it?

                            How?

                            Comment

                            • kc5kse
                              Member
                              • Feb 2008
                              • 73

                              #15
                              I applied these diffs:

                              ================================================== =================
                              --- C:/Aly/AppServ/www/zabbix/frontends/php/include/setup.inc.php (revision 5680)
                              +++ C:/Aly/AppServ/www/zabbix/frontends/php/include/setup.inc.php (revision 5681)
                              @@ -533,7 +533,7 @@
                              {
                              global $DB;

                              - $old_DB = $DB['DB'];
                              +// $old_DB = $DB['DB'];
                              $old_DB_TYPE = $DB['TYPE'];
                              $old_DB_SERVER = $DB['SERVER'];
                              $old_DB_PORT = $DB['PORT'];
                              @@ -572,7 +572,7 @@
                              /* restore connection */
                              global $DB;

                              - $DB['DB'] = $old_DB;
                              +// $DB['DB'] = $old_DB;
                              $DB['TYPE'] = $old_DB_TYPE;
                              $DB['SERVER'] = $old_DB_SERVER;
                              $DB['PORT'] = $old_DB_PORT;
                              @@ -673,9 +673,9 @@

                              function CheckConfigurationFile()
                              {
                              - global $DB;
                              + global $DB,$ZBX_SERVER,$ZBX_SERVER_PORT;

                              - $old_DB = $DB['DB'];
                              +// $old_DB = $DB['DB'];
                              $old_DB_TYPE = $DB['TYPE'];
                              $old_DB_SERVER = $DB['SERVER'];
                              $old_DB_PORT = $DB['PORT'];
                              @@ -734,7 +734,7 @@
                              /* restore connection */
                              global $DB;

                              - $DB['DB'] = $old_DB;
                              +// $DB['DB'] = $old_DB;
                              $DB['TYPE'] = $old_DB_TYPE;
                              $DB['SERVER'] = $old_DB_SERVER;
                              $DB['PORT'] = $old_DB_PORT;

                              Comment

                              Working...