Ad Widget

Collapse

MySQL Port hardcoded

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Corsar
    Junior Member
    • Aug 2005
    • 24

    #1

    MySQL Port hardcoded

    Hi developers!

    After 2 days installing Zabbix on gentoo I view several problems:
    1. Port MySQL - hardcode.
    2. SQL commands are running not in ansi a mode.
    3. Not full localization (russian) php-frontend.

    If it is possible:
    1. Out parameter (MySQL/PGSQL port) to configure script or base config?
    2. To similarly item 1.
    3. To help with localization?
  • sauron
    Senior Member
    • Jan 2005
    • 215

    #2
    Originally posted by Corsar
    Hi developers!

    After 2 days installing Zabbix on gentoo I view several problems:
    1. Port MySQL - hardcode.
    You need sql parameters in configure files ? Why you need this ?

    Originally posted by Corsar
    3. Not full localization (russian) php-frontend.
    Yes. I'm created russian localization. But this localization not full, and still need testing and devolopment.

    Comment

    • Corsar
      Junior Member
      • Aug 2005
      • 24

      #3
      Originally posted by sauron
      You need sql parameters in configure files ? Why you need this ?


      Yes. I'm created russian localization. But this localization not full, and still need testing and devolopment.

      My Primary Host working with MySQL running in ANSI mode. Zabbix SQL code dose not support ANSI mode.
      I am run another MySQL daemon on port 3307 ... some troubles, but it's working.

      After several minutes i am select work with MySQL Socket because Zabbix can't configure SQL server port in .conf file, only in code.
      Now ZAbbix working propetly, but configure SQL server port is good future (i think).

      L10n: I am glad to help you with localization after 3 week (simple travel at free time)

      P.S. Why the gentoo portage tree dos not contain .ebuild file of latest version zabbix(12a)? This .ebuild can find on some server (link from this forum).

      Comment

      • sauron
        Senior Member
        • Jan 2005
        • 215

        #4
        Originally posted by Corsar
        After several minutes i am select work with MySQL Socket because Zabbix can't configure SQL server port in .conf file, only in code.
        Now ZAbbix working propetly, but configure SQL server port is good future (i think).
        I'm think this need feature.

        Originally posted by Corsar
        L10n: I am glad to help you with localization after 3 week (simple travel at free time)
        Now i'm rewrite localization For new CVS version.

        Originally posted by Corsar
        P.S. Why the gentoo portage tree dos not contain .ebuild file of latest version zabbix(12a)? This .ebuild can find on some server (link from this forum).
        Why it's not portage tree ? Read explain there:

        Comment

        • James Wells
          Senior Member
          • Jun 2005
          • 664

          #5
          Greetings,
          Originally posted by Corsar
          1. Port MySQL - hardcode.

          --- Cut --- Paste --- Cut --- Paste ---
          If it is possible:
          1. Out parameter (MySQL/PGSQL port) to configure script or base config?
          Instead of making it part of the configure scipt, I have posted a PATCH that makes the port number optional and set to port 3306 by default, but is run time configurable in both the zabbix_server.conf file and the php frontend.
          Unofficial Zabbix Developer

          Comment

          • Wolfgang
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified Specialist
            • Apr 2005
            • 116

            #6
            I second that it would be helpful in some cases to have the mysql port configurable.
            http://www.intellitrend.de
            Specialised in monitoring large environments and Zabbix API programming.

            Comment

            • shalako
              Member
              • Apr 2006
              • 30

              #7
              mysql port and socket

              I'm running three different versions of mysql simultaneously, with different ports and sockets, so I ran into errors upon initial install. "cannot connect with socket /temp/mysql.sock"

              After reading the code I found out I could add the socket in include/db.inc.php
              $DB_SERVER ="localhost:/var/lib/mysql/mysql.sock";

              AFAIK, mysql_pconnect only supports adding either the port or socket, but not both.

              I would like to see support for both port and socket during configuration.

              Keep up the good work.

              Comment

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

                #8
                ZABBIX already (starting from 1.1beta1) supports configurable DB port number.
                Alexei Vladishev
                Creator of Zabbix, Product manager
                New York | Tokyo | Riga
                My Twitter

                Comment

                • shalako
                  Member
                  • Apr 2006
                  • 30

                  #9
                  how is the db port configurable?

                  all i have found is DB_SERVER in db.inc.php and that will only take a port or a socket, but not both.

                  Comment

                  Working...