ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Installation of Zabbix in Centos 7

    IT Discussion
    linux zabbix centos 7 centos
    6
    126
    57.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Lakshmana
      last edited by

      Whether any issue in the permission of the files.since the files has the following permission

      -rw-r--r-- 1 root root 1978341 Aug 10 04:57 images.sql
      -rw-r--r-- 1 root root 104816 Aug 10 04:58 schema.sql
      -rw-r--r-- 1 root root 972942 Aug 10 13:16 data.sql
      drwxr-xr-x 4 root root 4096 Sep 7 12:38 ..

      S 1 Reply Last reply Reply Quote 0
      • S
        scottalanmiller @JaredBusch
        last edited by

        @JaredBusch said:

        @scottalanmiller said:

        The EPEL is already installed as part of a base install

        No it is not.

        You are missing context. He is on an NTG Lab machine where the base install installs it. It was in the base install handed to him.

        1 Reply Last reply Reply Quote 0
        • S
          scottalanmiller @Lakshmana
          last edited by

          @Lakshmana said:

          I have verified that the file is present in the path
          But the error is coming. Why??

          How did you verify? I verified on the same box and the file is not there.

          file /usr/share/doc/zabbix-server-mysql-2.4.5/create/schema.sql
          /usr/share/doc/zabbix-server-mysql-2.4.5/create/schema.sql: cannot open (No such file or directory)
          
          1 Reply Last reply Reply Quote 0
          • S
            scottalanmiller @Lakshmana
            last edited by

            @Lakshmana said:

            Whether any issue in the permission of the files.since the files has the following permission

            -rw-r--r-- 1 root root 1978341 Aug 10 04:57 images.sql
            -rw-r--r-- 1 root root 104816 Aug 10 04:58 schema.sql
            -rw-r--r-- 1 root root 972942 Aug 10 13:16 data.sql
            drwxr-xr-x 4 root root 4096 Sep 7 12:38 ..

            Since the file does not exist, permissions will not be the issue.

            1 Reply Last reply Reply Quote 0
            • L
              Lakshmana
              last edited by Lakshmana

              I verified there by using this command

              cd /usr/share/doc/zabbix-server-mysql-2.4.5/create/
              ls
              there are three files in it

              S 1 Reply Last reply Reply Quote 0
              • S
                scottalanmiller @Lakshmana
                last edited by

                @Lakshmana said:

                I verified there by using this command

                cd /usr/share/doc/zabbix-server-mysql-2.4.5/create/
                ls
                there are three files in it

                That's odd since that cd command does not work on that box. The directory is not there.

                1 Reply Last reply Reply Quote 0
                • L
                  Lakshmana
                  last edited by

                  I verified this link and they have provided link for the soluton in it

                  https://www.zabbix.com/forum/showthread.php?t=48111

                  After seeing this i have done and the error comes is given below

                  lakshmana@dny-lnx-zabbix create]$ sudo mysql -uroot zabbix < schema.sql
                  ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

                  S 2 Replies Last reply Reply Quote 0
                  • S
                    scottalanmiller @Lakshmana
                    last edited by

                    @Lakshmana said:

                    I verified this link and they have provided link for the soluton in it

                    The solution, I assume, was to use the correct version path, 2.4.6.

                    1 Reply Last reply Reply Quote 0
                    • S
                      scottalanmiller @Lakshmana
                      last edited by

                      @Lakshmana said:

                      lakshmana@dny-lnx-zabbix create]$ sudo mysql -uroot zabbix < schema.sql
                      ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

                      You need to add the password since you set one earlier. Add a -p and the password and it should work fine.

                      1 Reply Last reply Reply Quote 0
                      • L
                        Lakshmana
                        last edited by

                        How to login my SQL to check whether it is logging properly?

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          scottalanmiller @Lakshmana
                          last edited by

                          @Lakshmana said:

                          How to login my SQL to check whether it is logging properly?

                          Just use the command..

                          mysql -u root -p password
                          

                          Where "password" is the actual password. Keep in mind that SQL is a language, you can't log into it. MariaDB is a relational database management system. So you can log into MariaDB and talk to it using the SQL language, but you can't log into a language.

                          1 Reply Last reply Reply Quote 0
                          • L
                            Lakshmana
                            last edited by

                            when I used the above command i can login to the MariaDB but when i use the command to import the template the same error coming in the terminal

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              scottalanmiller @Lakshmana
                              last edited by

                              @Lakshmana said:

                              when I used the above command i can login to the MariaDB but when i use the command to import the template the same error coming in the terminal

                              Please provide the complete command.

                              1 Reply Last reply Reply Quote 0
                              • S
                                scottalanmiller
                                last edited by

                                And error too, of course.

                                1 Reply Last reply Reply Quote 0
                                • L
                                  Lakshmana
                                  last edited by

                                  Command properly done:
                                  [lakshmana@dny-lnx-zabbix ~]$ mysql -u root -ppass
                                  Welcome to the MariaDB monitor. Commands end with ; or \g.
                                  Your MariaDB connection id is 54
                                  Server version: 5.5.44-MariaDB MariaDB Server

                                  Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.

                                  Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

                                  MariaDB [(none)]>

                                  Error while the command used like this
                                  [lakshmana@dny-lnx-zabbix ~]$ mysql -u root -p pass
                                  Enter password:
                                  ERROR 1049 (42000): Unknown database 'pass'

                                  Error in the importing process:
                                  [lakshmana@dny-lnx-zabbix ~]$ mysql -u zabbixuser -ppass < /usr/share/doc/zabbix-server-mysql-2.4.5/create/schema.sql
                                  -bash: /usr/share/doc/zabbix-server-mysql-2.4.5/create/schema.sql: No such file or directory

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    scottalanmiller
                                    last edited by

                                    You are missing the database name in the command. It doesn't know where to run the SQL commands.

                                    1 Reply Last reply Reply Quote 0
                                    • L
                                      Lakshmana
                                      last edited by

                                      How to change the password for the zabbix user by the Maria DB

                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        scottalanmiller @Lakshmana
                                        last edited by

                                        @Lakshmana said:

                                        How to change the password for the zabbix user by the Maria DB

                                        http://www.cyberciti.biz/faq/mysql-change-user-password/

                                        1 Reply Last reply Reply Quote 0
                                        • L
                                          Lakshmana
                                          last edited by

                                          I have checked the details of the database and also teh username in mysql by the following command

                                          [lakshmana@dny-lnx-zabbix ~]$ mysql -uroot -p
                                          Enter password:
                                          Welcome to the MariaDB monitor. Commands end with ; or \g.
                                          Your MariaDB connection id is 76
                                          Server version: 5.5.44-MariaDB MariaDB Server

                                          Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.

                                          Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

                                          MariaDB [(none)]> select User from mysql.user;
                                          +------------+
                                          | User |
                                          +------------+
                                          | root |
                                          | root |
                                          | root |
                                          | zabbixuser |
                                          +------------+
                                          4 rows in set (0.00 sec)

                                          I have also changed the password the of the zabbixuser and tried to import the template the same error as shown above that is the errror is shown as
                                          -bash: /usr/share/doc/zabbix-server-mysql-2.4.5/create/schema.sql: No such file or directory

                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            scottalanmiller @Lakshmana
                                            last edited by

                                            @Lakshmana said:

                                            I have also changed the password the of the zabbixuser and tried to import the template the same error as shown above that is the errror is shown as
                                            -bash: /usr/share/doc/zabbix-server-mysql-2.4.5/create/schema.sql: No such file or directory

                                            These two things are not related. The user that you are using to import is root, not zabbix. The reason that the file does not exist is because it simply does not exist as we proved earlier.

                                            The error is very explicit and obvious. The error tells you that the file does not exist. This should not have made you change a password.

                                            1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 2 / 7
                                            • First post
                                              Last post