Ad Widget

Collapse

Zabbix server and agent processes do not start

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mar_zab
    Junior Member
    • Oct 2019
    • 2

    #1

    Zabbix server and agent processes do not start

    hello,
    I am new in zabbix. I followed the instruction in https://www.zabbix.com/download to install zabbix on ubuntu. but, when I use the command "systemctl restart zabbix-server zabbix-agent apache2" it shows me the message "Failed to issue method call: Unit zabbix-server.service failed to load: No such file or directory." the same sentence is shown for agent and apache too. what is the reason?
    thanks a lot.
    Last edited by mar_zab; 29-10-2019, 09:35.
  • gofree
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2017
    • 400

    #2
    try systemctl list-unit-files | grep zabbix to see if the services are present ( maybe names are different )

    Comment


    • mar_zab
      mar_zab commented
      Editing a comment
      thank you for your response. I ran sudo systemctl list-unit-files | grep zabbix, but it does not return anything. which services should I see? I am sorry, I am amateur.
  • mar_zab
    Junior Member
    • Oct 2019
    • 2

    #3
    thank you for your response. I ran sudo systemctl list-unit-files | grep zabbix, but it does not return anything. which services should I see? I am sorry, I am amateur.
    Last edited by mar_zab; 29-10-2019, 11:34.

    Comment

    • gofree
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2017
      • 400

      #4
      seems that zabbix is not installed, what was the output of the commands mentioned in the docu - especially the last one
      Code:
      wget https://repo.zabbix.com/zabbix/4.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.4-1+bionic_all.deb
      dpkg -i zabbix-release_4.4-1+bionic_all.deb
      apt update
      
      apt -y install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent
      Last edited by gofree; 29-10-2019, 13:51.

      Comment


      • mar_zab
        mar_zab commented
        Editing a comment
        thank you a lot. I ran the last command again and got the following result:
        # sudo apt -y install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent

        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        zabbix-frontend-php is already the newest version.
        zabbix-frontend-php set to manually installed.
        zabbix-agent is already the newest version.
        zabbix-apache-conf is already the newest version.
        The following packages will be upgraded:
        zabbix-server-mysql
        1 upgraded, 0 newly installed, 0 to remove and 59 not upgraded.
        Need to get 2,067 kB of archives.
        After this operation, 10.2 kB of additional disk space will be used.
        Get:1 http://repo.zabbix.com/zabbix/4.2/ubuntu/ trusty/main zabbix-server-mysql i386 1:4.2.8-1+trusty [2,067 kB]
        .....
        ........
        ..........

        also when I ran the " zabbix_server --version" command, I get the following result:

        #sudo zabbix_server --version

        zabbix_server (Zabbix) 4.2.8
        Revision cb5d5b10f4 28 October 2019, compilation time: Oct 28 2019 11:24:41

        Copyright (C) 2019 Zabbix SIA
        License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
        This is free software: you are free to change and redistribute it according to
        the license. There is NO WARRANTY, to the extent permitted by law.

        This product includes software developed by the OpenSSL Project
        for use in the OpenSSL Toolkit (http://www.openssl.org/).

        Compiled with OpenSSL 1.0.1f 6 Jan 2014
        Running with OpenSSL 1.0.1f 6 Jan 2014
        Last edited by mar_zab; 29-10-2019, 15:33.
    • gofree
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2017
      • 400

      #5
      strange - seems it is intsalled - just from curioisty run sudo systemctl list-unit-files | grep zabbix

      my outcome

      zabbix-agent.service disabled
      zabbix-server.service disabled

      Comment


      • mar_zab
        mar_zab commented
        Editing a comment
        the zabbix_agentd.log contains the message

        "[127.0.0.1:10051] started to fail (cannot connect to [[127.0.0.1]:10051]: [111] Connection refused)"

        and the zabbix_server.log contains

        "[1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
        1531:20191029:092419.703 database is down: reconnecting in 10 seconds" .

        are these messages related to the problem?(I know the database zabbix has been created. because when I want to create a database with the same name, it gets error)

        also I get the following result:

        #sudo systemctl status zabbix-server.service

        zabbix-server.service
        Loaded: error (Reason: No such file or directory)
        Active: inactive (dead)
        Last edited by mar_zab; 29-10-2019, 18:37.
    • gofree
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2017
      • 400

      #6
      Try this or other videos/guides...you need to go through the basics on your self. Issues you have are apparently not zabbix related. Try an learn, the problems you have have been discussed numerous times. Search the forum, google, etc...

      Comment


      • mar_zab
        mar_zab commented
        Editing a comment
        thanks a lot
    Working...