Ad Widget

Collapse

Zabbix Proxy service fails to start

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pmsilva
    Junior Member
    • Sep 2017
    • 12

    #1

    Zabbix Proxy service fails to start

    Hello Zabbix forum users,

    I'm a very new user of Zabbix so a lot of these challenges are new to me and I'm hoping some can help me out.

    I've been able to successfully setup a Zabbix server and is monitoring local machines.

    I now need to monitor machines in a remote location.

    I have installed the Zabbix-proxy package with mysql on a remote machine to be used as the proxy. The issue is that I can not seem to start the proxy service as seen below.

    root@server-03:~# service zabbix-proxy -c /etc/zabbix/zabbix_proxy.conf
    Usage: /etc/init.d/zabbix_proxy {start|stop|restart|force-reload|status}
    root@server-03:~# service zabbix-proxy -c /etc/zabbix/zabbix_proxy.conf start
    Usage: /etc/init.d/zabbix_proxy {start|stop|restart|force-reload|status}
    root@server-03:~#

    I'm not sure at this point if the configuration file is the issue. What steps can I follow to troubleshoot this?

    Is the config file in the right location for the service to start automatically?

    I would really appreciate hep of you the Zabbix professionals in this forum.

    Thanks in Advance.
    Attached Files
  • allexpetrov
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2017
    • 361

    #2
    Actually, you just need to start it without -c /etc/zabbix/zabbix_proxy.conf:

    Code:
    systemctl start zabbix-proxy
    or
    Code:
    service zabbix-proxy start
    Regards,
    Alex!

    Comment

    • pmsilva
      Junior Member
      • Sep 2017
      • 12

      #3
      Hi Alex and thanks for the reply however trying both commands still fails to launch the proxy service. Running the service --status-all command show that the service is not running. Would it be the config file that is preventing it from running.

      root@server-03:~# systemctl sart zabbix-proxy
      systemctl: command not found
      root@server-03:~# service zabbix-proxy start
      zabbix-proxy stop/pre-start, process 16427


      root@server-03:~# service --status-all
      [ + ] acpid
      [ + ] apparmor
      [ ? ] apport
      [ + ] atd
      [ ? ] console-setup
      [ + ] cron
      [ ? ] cryptdisks
      [ ? ] cryptdisks-early
      [ - ] dbus
      [ ? ] dns-clean
      [ + ] friendly-recovery
      [ - ] grub-common
      [ ? ] irqbalance
      [ ? ] killprocs
      [ ? ] kmod
      [ - ] landscape-client
      [ ? ] mysql
      [ ? ] networking
      [ ? ] ondemand
      [ ? ] open-vm-tools
      [ ? ] pppd-dns
      [ - ] procps
      [ - ] qemu-guest-agent
      [ ? ] rc.local
      [ + ] resolvconf
      [ - ] rsync
      [ + ] rsyslog
      [ ? ] screen-cleanup
      [ ? ] sendsigs
      [ + ] ssh
      [ - ] sudo
      [ + ] udev
      [ ? ] umountfs
      [ ? ] umountnfs.sh
      [ ? ] umountroot
      [ - ] unattended-upgrades
      [ - ] urandom
      [ - ] zabbix-proxy
      root@server-03:~#

      Comment

      • vesper1978
        Member
        • Nov 2016
        • 59

        #4
        Originally posted by pmsilva
        root@server-03:~# service zabbix-proxy start
        zabbix-proxy stop/pre-start, process 16427
        Check your /var/log/zabbix/zabbix_proxy.log for errors as it looks like it starts and then crashes after.

        Or you could even run:

        service zabbix-proxy status

        and that output may have enough info as to why it won't stay started.

        Comment

        • pmsilva
          Junior Member
          • Sep 2017
          • 12

          #5
          Thanks for the reply.

          The path that I see is /etc/log/zabbix-proxy however there is not log file in the folder.

          Also when executing the service zabbix-proxy status command it returns

          zabbix-proxy stop/waiting

          I really do appreciate everyone help. Any idea where else I can look. The zabbix documentation does not seem to be to much help.
          Attached Files

          Comment

          • Jason
            Senior Member
            • Nov 2007
            • 430

            #6
            Did you compile zabbix yourself?

            If you did and are using default configs then you might find the zabbix_proxy.log file in /tmp

            At a guess you might find that the /var/lib/zabbix folder doesn't exist and isn't owned by zabbix as that is where it tries to create the zabbix_proxy sqlite database file by default.

            Comment

            • pmsilva
              Junior Member
              • Sep 2017
              • 12

              #7
              I Jason.

              I complied zabbix proxy from the pre configured proxy package from Zabbix.

              You are correct in that the /var/lib.zabbix folder does not exist however I am using the MYSQL Database not SQLite. I'm not sure where the package installed the zabbix DB.

              Comment

              • Jason
                Senior Member
                • Nov 2007
                • 430

                #8
                We need to see the log file to know what is going on...

                At a push try
                cd /
                find . -name "zabbix_proxy.log" -print

                to locate the log file.

                If you're using mysql then can you paste the configure command you used up here and have you populated the database and checked all the parameters in the zabbix_proxy.conf file?

                Comment

                • pmsilva
                  Junior Member
                  • Sep 2017
                  • 12

                  #9
                  Hi Jason,

                  As I was not able to locate a log file anywhere on the linux server for zabbix proxy, I ultimately decided to do a fresh new install.

                  I'm happy to say that I at least got the zabbix-proxy service to now start. The only difference between old instance that fails and the new is that I am now running Ubuntu 16 instead in 14.

                  Maybe there is a bug that prevented the package from installing correct

                  Now on to the configuration.

                  Thanks everyone for their help

                  Comment

                  • andrebatista96
                    Junior Member
                    • Jan 2024
                    • 2

                    #10
                    Hey guys!
                    In my case in pfsense 2.7.2 I needed to set CacheSize=500M in the advanced parameters.
                    This way the service finally became fixed​

                    Comment

                    Working...