Ad Widget

Collapse

can't start zabbix-proxy service on CentOS7 with installation repository

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leosted
    Junior Member
    • Nov 2014
    • 3

    #1

    can't start zabbix-proxy service on CentOS7 with installation repository

    Errors:

    Command:
    systemctl start zabbix-proxy.service

    Error
    Job for zabbix-proxy.service failed. See 'systemctl status zabbix-proxy.service' and 'journalctl -xn' for details.


    Command:
    systemctl status zabbix-proxy.service

    Return:
    zabbix-proxy.service - Zabbix Proxy
    Loaded: loaded (/usr/lib/systemd/system/zabbix-proxy.service; disabled)
    Active: failed (Result: start-limit) since Qui 2014-11-20 16:21:43 BRT; 41s ago
    Process: 2436 ExecStart=/usr/sbin/zabbix_proxy -c $CONFFILE (code=exited, status=1/FAILURE)

    Nov 20 16:21:43 dczabbixproxy-01 systemd[1]: zabbix-proxy.service: control process exited, code=exited status=1
    Nov 20 16:21:43 dczabbixproxy-01 systemd[1]: Failed to start Zabbix Proxy.
    Nov 20 16:21:43 dczabbixproxy-01 systemd[1]: Unit zabbix-proxy.service entered failed state.
    Nov 20 16:21:43 dczabbixproxy-01 systemd[1]: zabbix-proxy.service holdoff time over, scheduling restart.
    Nov 20 16:21:43 dczabbixproxy-01 systemd[1]: Stopping Zabbix Proxy...
    Nov 20 16:21:43 dczabbixproxy-01 systemd[1]: Starting Zabbix Proxy...
    Nov 20 16:21:43 dczabbixproxy-01 systemd[1]: zabbix-proxy.service start request repeated too quickly, refusing to start.
    Nov 20 16:21:43 dczabbixproxy-01 systemd[1]: Failed to start Zabbix Proxy.
    Nov 20 16:21:43 dczabbixproxy-01 systemd[1]: Unit zabbix-proxy.service entered failed state.
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    What happens if you try to start it manually?
    <path to proxy binary>/zabbix_proxy -c <path to proxy conf>/zabbix_proxy.conf

    On my setup, that translates to:
    /usr/local/sbin/zabbix_proxy -c /usr/local/etc/zabbix_proxy.conf

    Comment

    • leosted
      Junior Member
      • Nov 2014
      • 3

      #3
      I run manually and start normal:
      /usr/sbin/zabbix_proxy -c /etc/zabbix/zabbix_proxy.conf

      zabbix 25731 1.0 0.1 141532 3004 ? S 10:55 0:00 /usr/sbin/zabbix_proxy -c /etc/zabbix/zabbix_proxy.conf
      zabbix 25732 0.0 0.1 141920 2760 ? S 10:55 0:00 /usr/sbin/zabbix_proxy: configuration syncer [synced config 154 bytes in 0.002951 sec, idle 3600 sec]
      zabbix 25733 0.0 0.1 141532 1892 ? S 10:55 0:00 /usr/sbin/zabbix_proxy: heartbeat sender [sending heartbeat message failed in 0.028062 sec, idle 60 sec]
      zabbix 25734 0.0 0.1 141920 2528 ? S 10:55 0:00 /usr/sbin/zabbix_proxy: data sender [sent 0 values in 0.000329 sec, idle 30 sec]
      zabbix 25735 0.5 0.2 246760 4812 ? S 10:55 0:00 /usr/sbin/zabbix_proxy: poller #1 [got 0 values in 0.000015 sec, idle 5 sec]
      ....more
      zabbix 25771 0.0 0.1 142264 2516 ? S 10:55 0:00 /usr/sbin/zabbix_proxy: ipmi poller #5 [got 0 values in 0.000017 sec, idle 5 sec]
      zabbix 25772 0.0 0.0 141532 1572 ? S 10:55 0:00 /usr/sbin/zabbix_proxy: self-monitoring [processed data in 0.000005 sec, idle 1 sec]

      Comment

      • leosted
        Junior Member
        • Nov 2014
        • 3

        #4
        this may be something wrong in the file zabbix-proxy.service?

        Comment

        • tchjts1
          Senior Member
          • May 2008
          • 1605

          #5
          I don't know. I have never tried doing it the way you are doing it.
          I simply use the manual command.

          Find what the variable is for $CONFFILE, maybe the path is not right.

          Comment

          • billjam
            Junior Member
            • Jan 2009
            • 27

            #6
            update path

            I had to change /usr/lib/systemd/system/zabbix-proxy.service to say:
            ExecStart=/usr/sbin/zabbix_proxy -c /etc/zabbix/zabbix-proxy.conf
            $CONFFILE didn't work even when I corrected path.

            of course maybe a better config path would be /etc/zabbix/zabbix_proxy.conf (underscore not dash) since that is what previous versions used and also what's included in rpm.

            Comment

            • derli1988
              Member
              • Apr 2021
              • 60

              #7

              Here's how I fixed the issue

              I've added these 3 lines into MySQL initiation file

              Code:
              disable_log_bin
              log_bin_trust_function_creators=1
              skip-log-bin
              I then restart mysql, and then zabbix-proxy

              Comment

              Working...