Ad Widget

Collapse

problem with zabbix installation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mustafa nassir
    Junior Member
    • Jun 2018
    • 5

    #1

    problem with zabbix installation

    hi there i install zabbix but i have problem with , when i start zabbix with systemctl start zabbix-server i have this :

    27 10:26:20 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
    -- Subject: Unit zabbix-server.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
    --
    -- Unit zabbix-server.service has failed.
    --
    -- The result is failed.
    يون 27 10:26:20 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
    يون 27 10:26:20 localhost.localdomain systemd[1]: zabbix-server.service failed.
    يون 27 10:26:30 localhost.localdomain systemd[1]: zabbix-server.service holdoff time over, scheduling restart.
    يون 27 10:26:30 localhost.localdomain systemd[1]: Starting Zabbix Server...
    -- Subject: Unit zabbix-server.service has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
    --
    -- Unit zabbix-server.service has begun starting up.
    يون 27 10:26:30 localhost.localdomain systemd[1]: PID file /run/zabbix/zabbix_server.pid not readable (yet?) after start.
    يون 27 10:26:30 localhost.localdomain systemd[1]: zabbix-server.service never wrote its PID file. Failing.
    يون 27 10:26:30 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
    -- Subject: Unit zabbix-server.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
    --
    -- Unit zabbix-server.service has failed.
    --
    -- The result is failed.
    يون 27 10:26:30 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
    يون 27 10:26:30 localhost.localdomain systemd[1]: zabbix-server.service failed.
    يون 27 10:26:40 localhost.localdomain systemd[1]: zabbix-server.service holdoff time over, scheduling restart.
    يون 27 10:26:40 localhost.localdomain systemd[1]: Starting Zabbix Server...
    -- Subject: Unit zabbix-server.service has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
    --
    -- Unit zabbix-server.service has begun starting up.
    يون 27 10:26:40 localhost.localdomain systemd[1]: PID file /run/zabbix/zabbix_server.pid not readable (yet?) after start.
    يون 27 10:26:40 localhost.localdomain systemd[1]: zabbix-server.service never wrote its PID file. Failing.
    يون 27 10:26:40 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
    -- Subject: Unit zabbix-server.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
    --
    -- Unit zabbix-server.service has failed.
    --
    -- The result is failed.
    يون 27 10:26:40 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
    يون 27 10:26:40 localhost.localdomain systemd[1]: zabbix-server.service failed.

    i install it with centos 7 os , mariadb ,httpd ,php

    zabbix gui work fine but the server dose not work pleas help
  • kernbug
    Senior Member
    • Feb 2013
    • 330

    #2
    Originally posted by mustafa nassir

    i install it with centos 7 os , mariadb ,httpd ,php

    zabbix gui work fine but the server dose not work pleas help
    Hi,

    Please, show us output from this command:
    Code:
    sudo sestatus -v

    Comment

    • mustafa nassir
      Junior Member
      • Jun 2018
      • 5

      #3
      hi , my dear this is output


      SELinux status: enabled
      SELinuxfs mount: /sys/fs/selinux
      SELinux root directory: /etc/selinux
      Loaded policy name: targeted
      Current mode: enforcing
      Mode from config file: enforcing
      Policy MLS status: enabled
      Policy deny_unknown status: allowed
      Max kernel policy version: 28

      Process contexts:
      Current context: unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
      Init context: system_u:system_r:init_t:s0
      /usr/sbin/sshd system_u:system_r:sshd_t:s0-s0:c0.c1023

      File contexts:
      Controlling terminal: unconfined_ubject_r:user_devpts_t:s0
      /etc/passwd system_ubject_rasswd_file_t:s0
      /etc/shadow system_ubject_r:shadow_t:s0
      /bin/bash system_ubject_r:shell_exec_t:s0
      /bin/login system_ubject_r:login_exec_t:s0
      /bin/sh system_ubject_r:bin_t:s0 -> system_ubject_r:shell_exec_t:s0
      /sbin/agetty system_ubject_r:getty_exec_t:s0
      /sbin/init system_ubject_r:bin_t:s0 -> system_ubject_r:init_exec_t:s0
      /usr/sbin/sshd system_ubject_r:sshd_exec_t:s0
      [root@localhost ~]#

      Comment

      • kernbug
        Senior Member
        • Feb 2013
        • 330

        #4
        Originally posted by mustafa nassir
        hi , my dear this is output

        Loaded policy name: targeted
        Current mode: enforcing
        Mode from config file: enforcing

        Try this, restart server process and check up the Zabbix log (/var/log/zabbix/zabbix_server.log):
        Code:
        sudo setenforce 0;

        Comment

        • mustafa nassir
          Junior Member
          • Jun 2018
          • 5

          #5
          i do it its same this output of log file


          1517:20180626:085857.836 Starting Zabbix Server. Zabbix 3.4.11 (revision 82160).
          1517:20180626:085857.837 ****** Enabled features ******
          1517:20180626:085857.837 SNMP monitoring: YES
          1517:20180626:085857.837 IPMI monitoring: YES
          1517:20180626:085857.837 Web monitoring: YES
          1517:20180626:085857.837 VMware monitoring: YES
          1517:20180626:085857.837 SMTP authentication: YES
          1517:20180626:085857.837 Jabber notifications: YES
          1517:20180626:085857.837 Ez Texting notifications: YES
          1517:20180626:085857.837 ODBC: YES
          1517:20180626:085857.837 SSH2 support: YES
          1517:20180626:085857.837 IPv6 support: YES
          1517:20180626:085857.837 TLS support: YES
          1517:20180626:085857.837 ******************************
          1517:20180626:085857.837 using configuration file: /etc/zabbix/zabbix_server.conf
          1517:20180626:085857.837 cannot set resource limit: [13] Permission denied
          1517:20180626:085857.837 cannot disable core dump, exiting...
          1520:20180626:085908.046 Starting Zabbix Server. Zabbix 3.4.11 (revision 82160).
          1520:20180626:085908.046 ****** Enabled features ******
          1520:20180626:085908.046 SNMP monitoring: YES
          1520:20180626:085908.046 IPMI monitoring: YES
          1520:20180626:085908.046 Web monitoring: YES
          1520:20180626:085908.046 VMware monitoring: YES
          1520:20180626:085908.046 SMTP authentication: YES
          1520:20180626:085908.046 Jabber notifications: YES
          1520:20180626:085908.046 Ez Texting notifications: YES
          1520:20180626:085908.046 ODBC: YES
          1520:20180626:085908.046 SSH2 support: YES
          1520:20180626:085908.047 IPv6 support: YES
          1520:20180626:085908.047 TLS support: YES
          1520:20180626:085908.047 ******************************

          Comment

          • mustafa nassir
            Junior Member
            • Jun 2018
            • 5

            #6
            oh fine its work thank you for your help my dear but why after each rebbot for centos machine i should use
            sudo setenforce 0; and restart zabbix to work

            Comment

            • kernbug
              Senior Member
              • Feb 2013
              • 330

              #7
              Originally posted by mustafa nassir
              oh fine its work thank you for your help my dear but why after each rebbot for centos machine i should use
              sudo setenforce 0; and restart zabbix to work
              Nope, edit /etc/sysconfig/selinux and set SELINUX=permissive:
              Code:
                
              # This file controls the state of SELinux on the system.  
              # SELINUX= can take one of these three values:  
              #     enforcing - SELinux security policy is enforced.  
              #     permissive - SELinux prints warnings instead of enforcing.  
              #     disabled - No SELinux policy is loaded.  
              
              SELINUX=permissive
              Another option is to follow setup procedure step by step with additional audit2allow utilities: https://www.zabbix.com/documentation...es/rhel_centos
              Last edited by kernbug; 27-06-2018, 14:18.

              Comment

              Working...