Ad Widget

Collapse

fail to start zabbix proxy service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • newbie70
    Junior Member
    • Jul 2021
    • 7

    #1

    fail to start zabbix proxy service

    I setup my first zabbix proxy on a virtual machine (Ubuntu server 22.04), I follow these instrunctions
    Learn step-by-step how to install and configure Zabbix proxy 7.0 on Ubuntu 24.04 / 22.04 and how to optimize proxy so that it performs better.

    Everything seems fine but when I launch
    Code:
     sudo systemctl start zabbix-proxy
    this is the result

    Code:
    Job for zabbix-proxy.service failed because the control process exited with error code. See "systemctl status zabbix-proxy.service" and "journalctl -xeu zabbix-proxy.service" for details.
    ​
    The command
    Code:
    sudo systemctl status zabbix-proxy
    show this:
    Code:
     zabbix-proxy.service - Zabbix Proxy
         Loaded: loaded (/lib/systemd/system/zabbix-proxy.service; enabled; vendor preset: enabled)
         Active: activating (auto-restart) (Result: exit-code) since Thu 2023-04-06 11:28:02 UTC; 6s ago
        Process: 1589 ExecStart=/usr/sbin/zabbix_proxy -c $CONFFILE (code=exited, status=1/FAILURE)
            CPU: 15ms
    
    Apr 06 11:28:02 ubuntu systemd[1]: zabbix-proxy.service: Control process exited, code=exited, status=1/FAILURE
    Apr 06 11:28:02 ubuntu systemd[1]: zabbix-proxy.service: Failed with result 'exit-code'.
    Apr 06 11:28:02 ubuntu systemd[1]: Failed to start Zabbix Proxy.
    ​
    There is no log file in var/log/zabbix.​
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    You can check if you can run that ExecStart command (/usr/sbin/zabbix_proxy -c $CONFFILE) manually. Switch to zabbix user and replace $CONFFILE with real path to config file... you might get some more (error) messages, which can help you to resolve issue...

    Comment

    • newbie70
      Junior Member
      • Jul 2021
      • 7

      #3
      There was an error in cfg file with parameter ProxyConfigFrequency, I fix it but if I try to start the service this is the error:
      Code:
      sudo systemctl start zabbix-proxy.service
      Job for zabbix-proxy.service failed because the service did not take the steps required by its unit configuration.
      See "systemctl status zabbix-proxy.service" and "journalctl -xeu zabbix-proxy.service" for details.
      ​

      Comment

      • newbie70
        Junior Member
        • Jul 2021
        • 7

        #4
        Solved. There was an error in database, I drop it and recreate another zabbix database. Now works.

        Comment


        • ehsan
          ehsan commented
          Editing a comment
          are you using the sqllite databse ? i am getting the same error
      Working...