Ad Widget

Collapse

Not able to start Zabbix Server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • toine7m
    Member
    • Feb 2017
    • 93

    #31
    modify at the end of the "[mysqld]" part :

    bind-address = localhost

    Comment

    • Mammosta32
      Junior Member
      • Mar 2017
      • 26

      #32
      Log File

      Originally posted by duncan9562
      There will be a section in the zabbix server config file for "### Option: DBHost".

      Can you check the options there are correct?

      Did you set up the database correctly, and copy in the database schema / images as part of the tutorial?

      Also, is the database (presume MySQL) running??
      I am not very familiar with setting up databases in this environment at I least I think I have it setup.
      DBHost=localhost

      ### Option: DBName

      # For SQLite3 path to database file must be provided. DBUser and DBPassword are ignored.
      #
      # Mandatory: yes
      # Default:
      # DBName=

      DBName=zabbix

      ### Option: DBSchema
      # Schema name. Used for IBM DB2 and PostgreSQL.
      #
      # Mandatory: no
      # Default:
      # DBSchema=

      ### Option: DBUser
      # Database user. Ignored for SQLite.
      #
      # Mandatory: no
      # Default:
      # DBUser=

      DBUser=zabbix

      ### Option: DBPassword
      # Database password. Ignored for SQLite.
      # Comment this line if no password is used.
      #
      # Mandatory: no
      # Default:
      # DBPassword=

      Comment

      • Mammosta32
        Junior Member
        • Mar 2017
        • 26

        #33
        Log File

        Originally posted by Mammosta32
        [root@localhost ~]# cat /etc/my.cnf
        [mysqld]
        innodb_file_per_table
        datadir=/var/lib/mysql
        socket=/var/lib/mysql/mysql.sock
        # Disabling symbolic-links is recommended to prevent assorted security risks
        symbolic-links=0
        # Settings user and group are ignored when systemd is used.
        # If you need to run mysqld under a different user or group,
        # customize your systemd unit file for mariadb according to the
        # instructions in http://fedoraproject.org/wiki/Systemd

        [mysqld_safe]
        log-error=/var/log/mariadb/mariadb.log
        pid-file=/var/run/mariadb/mariadb.pid

        #
        # include all files from the config directory
        #
        !includedir /etc/my.cnf.d

        [root@localhost ~]#
        [root@localhost ~]# mysqladmin -u root -p status
        Enter password:
        mysqladmin: connect to server at 'localhost' failed
        error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
        Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!

        Comment

        • toine7m
          Member
          • Feb 2017
          • 93

          #34
          Originally posted by Mammosta32
          ### Option: DBPassword
          # Database password. Ignored for SQLite.
          # Comment this line if no password is used.
          #
          # Mandatory: no
          # Default:
          # DBPassword=
          You need to modify the DBPassword

          Comment

          • Mammosta32
            Junior Member
            • Mar 2017
            • 26

            #35
            Log File

            Originally posted by toine7m
            You need to modify the DBPassword
            I did that as well
            ### Option: DBPassword
            # Database password. Ignored for SQLite.
            # Comment this line if no password is used.
            #
            # Mandatory: no
            # Default:
            # DBPassword=

            DBPassword=Krafty@64

            ### Option: DBSocket
            # Path to MySQL socket.
            #
            # Mandatory: no
            # Default:
            # DBSocket=/tmp/mysql.sock

            ### Option: DBPort
            # Database port when not using local socket. Ignored for SQLite.
            #
            # Mandatory: no
            # Range: 1024-65535
            # Default (for MySQL):

            Comment

            • toine7m
              Member
              • Feb 2017
              • 93

              #36
              Check if MariaDB is running : systemctl status mariadb and do this : ps aux | grep mysqld too
              Last edited by toine7m; 29-03-2017, 16:18.

              Comment

              • Mammosta32
                Junior Member
                • Mar 2017
                • 26

                #37
                Log File

                Originally posted by toine7m
                Check if MariaDB is running : systemctl status mariadb
                Thats what it was I forgot to run systemctl enable mariadb and start as well.

                Comment

                • toine7m
                  Member
                  • Feb 2017
                  • 93

                  #38
                  Ho fine, everything is working now ?

                  Comment

                  • Mammosta32
                    Junior Member
                    • Mar 2017
                    • 26

                    #39
                    Log File

                    Originally posted by toine7m
                    Ho fine, everything is working now ?
                    Everything looks, I don't even know how to thank you guys if it wasn't for you and duncan9562 I would have scrapped this and moved on. Again I know no matter what I say won't be enough how much I appreciate your support with this.

                    Comment

                    • Mammosta32
                      Junior Member
                      • Mar 2017
                      • 26

                      #40
                      Log File

                      Originally posted by duncan9562
                      There will be a section in the zabbix server config file for "### Option: DBHost".

                      Can you check the options there are correct?

                      Did you set up the database correctly, and copy in the database schema / images as part of the tutorial?

                      Also, is the database (presume MySQL) running??
                      Everything is working and from the the bottom of my heart I appreciate your patience and support. Man, you were patient very supportive with this troubleshooting. Again I truly appreciate your help with this setup.

                      Comment

                      • duncan9562
                        Member
                        • Jan 2017
                        • 46

                        #41
                        Originally posted by Mammosta32
                        Everything is working and from the the bottom of my heart I appreciate your patience and support. Man, you were patient very supportive with this troubleshooting. Again I truly appreciate your help with this setup.
                        It's all a learning experience! I was definitely in the same situation when I first started, so know how you feel.

                        All I can say is..... enjoy Zabbix

                        Comment

                        • Mammosta32
                          Junior Member
                          • Mar 2017
                          • 26

                          #42
                          Log File

                          Originally posted by duncan9562
                          It's all a learning experience! I was definitely in the same situation when I first started, so know how you feel.

                          All I can say is..... enjoy Zabbix
                          Its a damn good learning experience.

                          Comment

                          Working...