Ad Widget

Collapse

Not able to start Zabbix Server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • duncan9562
    Member
    • Jan 2017
    • 46

    #16
    Originally posted by Mammosta32
    Here is what I am getting;
    [root@localhost ~]# /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf zabbix_server [48752]: unknown parameter "st" in config file "/etc/zabbix/zabbix_server.conf", line 73
    In that case, it looks like you have a configuration issue in the zabbix_server.conf configuration file.

    You can use a pager like less, and get it to show line numbers by doing the following:-
    Code:
    less -N /etc/zabbix/zabbix_server.conf
    This will give you line numbers down the left hand side.

    You need to scroll down until you see line 73.

    Can you then copy and paste that line, and a few lines before and above it?

    Comment

    • Mammosta32
      Junior Member
      • Mar 2017
      • 26

      #17
      Log File

      Originally posted by duncan9562
      In that case, it looks like you have a configuration issue in the zabbix_server.conf configuration file.

      You can use a pager like less, and get it to show line numbers by doing the following:-
      Code:
      less -N /etc/zabbix/zabbix_server.conf
      This will give you line numbers down the left hand side.

      You need to scroll down until you see line 73.

      Can you then copy and paste that line, and a few lines before and above it?
      65 ### Option: PidFile
      66 # Name of PID file.
      67 #
      68 # Mandatory: no
      69 # Default:
      70 # PidFile=/tmp/zabbix_server.pid
      71
      72 PidFile=/var/run/zabbix/zabbix_server.pid
      73 st=localhost
      74
      75 ### Option: DBHost
      76 # Database host name.
      77 # If set to localhost, socket is used for MySQL.
      78 # If set to empty string, socket is used for PostgreSQL.
      79 #
      80 # Mandatory: no
      81 # Default:
      82 # DBHost=localhost
      83
      84 DBHost=localhost
      85
      86 ### Option: DBName

      Comment

      • duncan9562
        Member
        • Jan 2017
        • 46

        #18
        Can you try deleting line 73, that doesnt look like it needs to be there:-

        Code:
        73 st=localhost
        Try deleting that, and then start Zabbix Server again

        Code:
        systemctl start zabbix-server.service

        Comment

        • Atsushi
          Senior Member
          • Aug 2013
          • 2028

          #19
          There is an error in line 73.
          Can you delete the following line on line 73?
          st=localhost

          Comment

          • Mammosta32
            Junior Member
            • Mar 2017
            • 26

            #20
            Log File

            Originally posted by Atsushi
            There is an error in line 73.
            Can you delete the following line on line 73?
            Still nothing I deleted line 73 statement.

            [root@localhost ~]# systemctl start zabbix-server.service
            Job for zabbix-server.service failed because a configured resource limit was exceeded. See "systemctl status zabbix-server.service" and "journalctl -xe" for details.
            [root@localhost ~]# systemctl status zabbix-server.service
            ● zabbix-server.service - Zabbix Server
            Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
            Active: activating (auto-restart) (Result: resources) since Wed 2017-03-29 09:32:23 EDT; 4s ago
            Process: 66592 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)

            Mar 29 09:32:23 localhost.localdomain systemd[1]: zabbix-server.service never...
            Mar 29 09:32:23 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
            Mar 29 09:32:23 localhost.localdomain systemd[1]: Unit zabbix-server.service ...
            Mar 29 09:32:23 localhost.localdomain systemd[1]: zabbix-server.service failed.
            Hint: Some lines were ellipsized, use -l to show in full.
            [root@localhost ~]#

            Comment

            • duncan9562
              Member
              • Jan 2017
              • 46

              #21
              Originally posted by Mammosta32
              Still nothing I deleted line 73 statement.

              [root@localhost ~]# systemctl start zabbix-server.service
              Job for zabbix-server.service failed because a configured resource limit was exceeded. See "systemctl status zabbix-server.service" and "journalctl -xe" for details.
              [root@localhost ~]# systemctl status zabbix-server.service
              ● zabbix-server.service - Zabbix Server
              Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
              Active: activating (auto-restart) (Result: resources) since Wed 2017-03-29 09:32:23 EDT; 4s ago
              Process: 66592 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)

              Mar 29 09:32:23 localhost.localdomain systemd[1]: zabbix-server.service never...
              Mar 29 09:32:23 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
              Mar 29 09:32:23 localhost.localdomain systemd[1]: Unit zabbix-server.service ...
              Mar 29 09:32:23 localhost.localdomain systemd[1]: zabbix-server.service failed.
              Hint: Some lines were ellipsized, use -l to show in full.
              [root@localhost ~]#
              Can you try running the following again:-
              Code:
              /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf

              Comment

              • Mammosta32
                Junior Member
                • Mar 2017
                • 26

                #22
                Log File

                Originally posted by duncan9562
                Can you try deleting line 73, that doesnt look like it needs to be there:-

                Code:
                73 st=localhost
                Try deleting that, and then start Zabbix Server again

                Code:
                systemctl start zabbix-server.service
                @duncan9562

                Still not able to get the services running, I will try one more thing if not I will just use prtg. Zabbix requires someone with good Linux background which is something that I seriously lack.

                [root@localhost ~]# systemctl status zabbix-server.service
                ● zabbix-server.service - Zabbix Server
                Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
                Active: activating (auto-restart) (Result: resources) since Wed 2017-03-29 09:32:23 EDT; 4s ago
                Process: 66592 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)

                Mar 29 09:32:23 localhost.localdomain systemd[1]: zabbix-server.service never...
                Mar 29 09:32:23 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
                Mar 29 09:32:23 localhost.localdomain systemd[1]: Unit zabbix-server.service ...
                Mar 29 09:32:23 localhost.localdomain systemd[1]: zabbix-server.service failed.
                Hint: Some lines were ellipsized, use -l to show in full.
                [root@localhost ~]# systemctl start zabbix-server.service
                Job for zabbix-server.service failed because a configured resource limit was exceeded. See "systemctl status zabbix-server.service" and "journalctl -xe" for details.

                Comment

                • Mammosta32
                  Junior Member
                  • Mar 2017
                  • 26

                  #23
                  Log File

                  Originally posted by duncan9562
                  Can you try running the following again:-
                  Code:
                  /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
                  I did it does nothing it doesn't even give errors.

                  Comment

                  • duncan9562
                    Member
                    • Jan 2017
                    • 46

                    #24
                    Originally posted by Mammosta32
                    I did it does nothing it doesn't even give errors.
                    So, that should mean that it has started?

                    In another terminal, can you do
                    Code:
                    ps auxfw | grep -i zabbix
                    and see if the zabbix service is running?

                    Comment

                    • Mammosta32
                      Junior Member
                      • Mar 2017
                      • 26

                      #25
                      Log File

                      Originally posted by duncan9562
                      So, that should mean that it has started?

                      In another terminal, can you do
                      Code:
                      ps auxfw | grep -i zabbix
                      and see if the zabbix service is running?
                      Here is what I get, below that is the output for status. I am not sure if its running.
                      [root@localhost ~]# ps auxfw | grep -i zabbix
                      root 66968 0.0 0.0 112648 972 pts/0 S+ 09:46 0:00 \_ grep --color=auto -i zabbix
                      zabbix 66690 0.0 0.3 255588 3712 ? S 09:36 0:00 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
                      [root@localhost ~]#



                      [root@localhost ~]# systemctl status zabbix-server.service -l ● zabbix-server.service - Zabbix Server
                      Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
                      Active: activating (auto-restart) (Result: resources) since Wed 2017-03-29 09:47:24 EDT; 718ms ago
                      Process: 66981 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)

                      Mar 29 09:47:24 localhost.localdomain systemd[1]: zabbix-server.service never wrote its PID file. Failing.
                      Mar 29 09:47:24 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
                      Mar 29 09:47:24 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
                      Mar 29 09:47:24 localhost.localdomain systemd[1]: zabbix-server.service failed.

                      Comment

                      • duncan9562
                        Member
                        • Jan 2017
                        • 46

                        #26
                        Code:
                        zabbix 66690 0.0 0.3 255588 3712 ? S 09:36 0:00 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
                        That looks like it is running to me!

                        Did you set up a web server as part of the tutorial? If so, I would have a go at connecting to the web interface.

                        You could look at the log file for Zabbix Server, as it does look like its running...so should be logging now.

                        Comment

                        • Mammosta32
                          Junior Member
                          • Mar 2017
                          • 26

                          #27
                          Log File

                          Originally posted by duncan9562
                          Code:
                          zabbix 66690 0.0 0.3 255588 3712 ? S 09:36 0:00 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
                          That looks like it is running to me!

                          Did you set up a web server as part of the tutorial? If so, I would have a go at connecting to the web interface.

                          You could look at the log file for Zabbix Server, as it does look like its running...so should be logging now.
                          Its one thing after another, I was able to login to the web interface here is what I get for DB config

                          Error connecting to database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

                          Comment

                          • duncan9562
                            Member
                            • Jan 2017
                            • 46

                            #28
                            Originally posted by Mammosta32
                            Its one thing after another, I was able to login to the web interface here is what I get for DB config

                            Error connecting to database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
                            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??

                            Comment

                            • toine7m
                              Member
                              • Feb 2017
                              • 93

                              #29
                              Check your /etc/my.cnf and your zabbix config about DB

                              Try to do this and check if your DB is running : mysqladmin -u root -p status

                              Comment

                              • Mammosta32
                                Junior Member
                                • Mar 2017
                                • 26

                                #30
                                Originally posted by toine7m
                                Check your /etc/my.cnf and your zabbix config about DB

                                Try to do this and check if your DB is running : mysqladmin -u root -p status
                                [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 ~]#

                                Comment

                                Working...