Ad Widget

Collapse

Not able to start Zabbix Server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mammosta32
    Junior Member
    • Mar 2017
    • 26

    #1

    Not able to start Zabbix Server

    OS: CentOS 7 64bit
    Zabbix Ver 3.2

    Whenever I try to run start zabbix server I get the following error:
    [root@localhost ~]# systemctl start zabbix-server
    Job for zabbix-server.service failed because the control process exited with error code. See "systemctl status zabbix-server.service" and "journalctl -xe" for details.
    Also when I check the status I get this:
    [root@localhost ~]# systemctl status zabbix-server
    ● zabbix-server.service - Zabbix Server
    Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
    Active: activating (auto-restart) (Result: exit-code) since Mon 2017-03-27 11:12:00 EDT; 591ms ago
    Process: 29139 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=1/FAILURE)

    Mar 27 11:12:00 localhost.localdomain systemd[1]: zabbix-server.service: cont...
    Mar 27 11:12:00 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
    Mar 27 11:12:00 localhost.localdomain systemd[1]: Unit zabbix-server.service ...
    Mar 27 11:12:00 localhost.localdomain systemd[1]: zabbix-server.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.
    [root@localhost ~]#

    I keep searching but unable to find the solution, I would greatly appreciate anyone's guidance with this issue.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Plase check the log file.

    Zabbix server:
    /var/log/zabbix/zabbix_server.log

    Comment

    • Mammosta32
      Junior Member
      • Mar 2017
      • 26

      #3
      Log File

      Atsushi

      Under the log directory I go to Zabbix here what I am getting, the sad part is I am probably doing all this wrong.
      [root@localhost zabbix]# ls
      zabbix_agentd.log zabbix_agentd.log-20170327
      [root@localhost zabbix]# /zabbix_agentd.log-20170327
      -bash: /zabbix_agentd.log-20170327: No such file or directory
      [root@localhost zabbix]# zabbix_agentd.log
      -bash: zabbix_agentd.log: command not found
      Here is what I get when I run your command
      [root@localhost zabbix]# /var/log/zabbix/zabbix_server.log
      -bash: /var/log/zabbix/zabbix_server.log: No such file or directory
      [root@localhost zabbix]#

      Comment

      • registration_is_lame
        Senior Member
        • Nov 2007
        • 148

        #4
        Learn some basic linux please
        To view a log file you run cat /var/log/zabbix/zabbix_server.log
        or run tail -n 500 /var/log/zabbix/zabbix_server.log for last 500 lines.

        Comment

        • Mammosta32
          Junior Member
          • Mar 2017
          • 26

          #5
          Log File

          @Registration_is_lame,

          You are right I should learn Linux that's probably my biggest weakness I find it little intimidating that's probably I avoid it.

          Comment

          • Mammosta32
            Junior Member
            • Mar 2017
            • 26

            #6
            Log File

            Originally posted by Atsushi
            Plase check the log file.

            Zabbix server:
            /var/log/zabbix/zabbix_server.log

            Here is what I get when I run the command:

            [root@localhost ~]# cat /var/log/zabbix/zabbix_server.log
            cat: /var/log/zabbix/zabbix_server.log: No such file or directory
            [root@localhost ~]# cat /var/log/zabbix/zabbix_agentd.log
            [root@localhost ~]# cat /var/log/zabbix/zabbix_agentd.log-20170327
            40676:20170323:133927.615 Starting Zabbix Agent [Zabbix server]. Zabbix 3.0.8 (revision 65976).
            40676:20170323:133927.615 **** Enabled features ****
            40676:20170323:133927.615 IPv6 support: YES
            40676:20170323:133927.615 TLS support: YES
            40676:20170323:133927.615 **************************
            40676:20170323:133927.615 using configuration file: /etc/zabbix/zabbix_agentd.conf
            40676:20170323:133927.616 cannot set resource limit: [13] Permission denied
            40676:20170323:133927.616 cannot disable core dump, exiting...
            40681:20170323:133937.661 Starting Zabbix Agent [Zabbix server]. Zabbix 3.0.8 (revision 65976).
            40681:20170323:133937.661 **** Enabled features ****
            40681:20170323:133937.662 IPv6 support: YES
            40681:20170323:133937.662 TLS support: YES
            40681:20170323:133937.662 **************************
            40681:20170323:133937.662 using configuration file: /etc/zabbix/zabbix_agentd.conf
            40681:20170323:133937.662 cannot set resource limit: [13] Permission denied
            40681:20170323:133937.662 cannot disable core dump, exiting...
            40692:20170323:133947.910 Starting Zabbix Agent [Zabbix server]. Zabbix 3.0.8 (revision 65976).
            40692:20170323:133947.910 **** Enabled features ****
            40692:20170323:133947.910 IPv6 support: YES
            40692:20170323:133947.910 TLS support: YES
            40692:20170323:133947.910 **************************
            40692:20170323:133947.910 using configuration file: /etc/zabbix/zabbix_agentd.conf

            Comment

            • duncan9562
              Member
              • Jan 2017
              • 46

              #7
              Can you check the permissions on the config file?

              Hint:
              Code:
              ls -larth /etc/zabbix/zabbix_agentd.conf

              Comment

              • Mammosta32
                Junior Member
                • Mar 2017
                • 26

                #8
                Log File

                @duncan9562,

                Here is the output to your command:
                [root@localhost ~]# ls -larth /etc/zabbix/zabbix_agentd.conf
                -rw-r--r--. 1 root root 11K Mar 2 10:49 /etc/zabbix/zabbix_agentd.conf

                Comment

                • duncan9562
                  Member
                  • Jan 2017
                  • 46

                  #9
                  Apologies, I meant to say the zabbix_server.conf file which should be in the same directory, so...
                  Code:
                  ls -larth /etc/zabbix/zabbix_server.conf
                  Could I ask what steps you have followed to install Zabbix Server?

                  Comment

                  • Mammosta32
                    Junior Member
                    • Mar 2017
                    • 26

                    #10
                    Log File

                    Originally posted by duncan9562
                    Apologies, I meant to say the zabbix_server.conf file which should be in the same directory, so...
                    Code:
                    ls -larth /etc/zabbix/zabbix_server.conf
                    Could I ask what steps you have followed to install Zabbix Server?
                    @duncan9562
                    [root@localhost ~]# ls -larth /etc/zabbix/zabbix_server.conf
                    -rw-r-----. 1 root zabbix 15K Mar 23 15:06 /etc/zabbix/zabbix_server.conf

                    I used this gentlemen's instruction:

                    Comment

                    • duncan9562
                      Member
                      • Jan 2017
                      • 46

                      #11
                      Originally posted by Mammosta32
                      @duncan9562
                      [root@localhost ~]# ls -larth /etc/zabbix/zabbix_server.conf
                      -rw-r-----. 1 root zabbix 15K Mar 23 15:06 /etc/zabbix/zabbix_server.conf

                      I used this gentlemen's instruction:
                      https://www.youtube.com/watch?v=0Gcyb1FYqrA
                      That looks OK, so just to be sure... when you do:-
                      Code:
                      systemctl start zabbix-server.service
                      ...the service doesn't start at all?

                      Can you try and start it again, and it fails do the following and post the output:-

                      Code:
                      systemctl status zabbix-server.service -l

                      Comment

                      • Mammosta32
                        Junior Member
                        • Mar 2017
                        • 26

                        #12
                        Log File

                        Originally posted by duncan9562
                        That looks OK, so just to be sure... when you do:-
                        Code:
                        systemctl start zabbix-server.service
                        ...the service doesn't start at all?

                        Can you try and start it again, and it fails do the following and post the output:-

                        Code:
                        systemctl status zabbix-server.service -l
                        [root@localhost ~]# systemctl start zabbix-server.service
                        Job for zabbix-server.service failed because the control process exited with error code. See "systemctl status zabbix-server.service" and "journalctl -xe" for details.

                        [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: exit-code) since Tue 2017-03-28 10:57:19 EDT; 4s ago
                        Process: 48233 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=1/FAILURE)

                        Mar 28 10:57:19 localhost.localdomain systemd[1]: zabbix-server.service: control process exited, code=exited status=1
                        Mar 28 10:57:19 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
                        Mar 28 10:57:19 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
                        Mar 28 10:57:19 localhost.localdomain systemd[1]: zabbix-server.service failed.
                        [root@localhost ~]#

                        Comment

                        • duncan9562
                          Member
                          • Jan 2017
                          • 46

                          #13
                          Can you try running the binary directly, like this:-
                          Code:
                          /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf

                          Comment

                          • Journeymouse
                            Junior Member
                            • Nov 2015
                            • 6

                            #14
                            Originally posted by Mammosta32
                            Here is what I get when I run the command:

                            [root@localhost ~]# cat /var/log/zabbix/zabbix_server.log
                            cat: /var/log/zabbix/zabbix_server.log: No such file or directory
                            [root@localhost ~]# cat /var/log/zabbix/zabbix_agentd.log
                            [root@localhost ~]# cat /var/log/zabbix/zabbix_agentd.log-20170327
                            40676:20170323:133927.615 Starting Zabbix Agent [Zabbix server]. Zabbix 3.0.8 (revision 65976).
                            40676:20170323:133927.615 **** Enabled features ****
                            40676:20170323:133927.615 IPv6 support: YES
                            40676:20170323:133927.615 TLS support: YES
                            40676:20170323:133927.615 **************************
                            40676:20170323:133927.615 using configuration file: /etc/zabbix/zabbix_agentd.conf
                            40676:20170323:133927.616 cannot set resource limit: [13] Permission denied
                            40676:20170323:133927.616 cannot disable core dump, exiting...
                            40681:20170323:133937.661 Starting Zabbix Agent [Zabbix server]. Zabbix 3.0.8 (revision 65976).
                            40681:20170323:133937.661 **** Enabled features ****
                            40681:20170323:133937.662 IPv6 support: YES
                            40681:20170323:133937.662 TLS support: YES
                            40681:20170323:133937.662 **************************
                            40681:20170323:133937.662 using configuration file: /etc/zabbix/zabbix_agentd.conf
                            40681:20170323:133937.662 cannot set resource limit: [13] Permission denied
                            40681:20170323:133937.662 cannot disable core dump, exiting...
                            40692:20170323:133947.910 Starting Zabbix Agent [Zabbix server]. Zabbix 3.0.8 (revision 65976).
                            40692:20170323:133947.910 **** Enabled features ****
                            40692:20170323:133947.910 IPv6 support: YES
                            40692:20170323:133947.910 TLS support: YES
                            40692:20170323:133947.910 **************************
                            40692:20170323:133947.910 using configuration file: /etc/zabbix/zabbix_agentd.conf
                            Given these results, I suspect you're running in to problems with SELinux. I would try:

                            $ sudo grep zabbix /var/log/audit/audit.log | audit2allow -M myZabbix
                            $ sudo semodule -i myZabbix.pp

                            Comment

                            • Mammosta32
                              Junior Member
                              • Mar 2017
                              • 26

                              #15
                              Log File

                              Originally posted by duncan9562
                              Can you try running the binary directly, like this:-
                              Code:
                              /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
                              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

                              Comment

                              Working...