Ad Widget

Collapse

Ubuntu 18.04 zabbix.agent problem ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • siberdinc
    Junior Member
    • Apr 2020
    • 9

    #1

    Ubuntu 18.04 zabbix.agent problem ?

    Hello there. I'm new to zabbix. When I make systemctl status zabbix-agent.service, I get the following error. I had it run and monitored it before.

  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Are there any error messages logged to /var/log/zabbix/zabbix_agentd.log ?

    The version of zabbix-agent that you have installed was packaged with the older System V style /etc/init.d/zabbix-agent init script, so even though you're using the newer "systemctl" command to try start it, systemctl is just running the /etc/init.d/zabbix-agent script. That means that even using "systemctl status -l zabbix-agent.service", to get the longer output from systemctl, probably will not have any useful error messages. The most likely place to look for the error that explains what the problem is would be in the zabbix_agentd.log.

    Comment

    • siberdinc
      Junior Member
      • Apr 2020
      • 9

      #3
      First of all, thank you for your answer. I solved my problem by reinstalling zabbix. If I have the same problem again. I will try this solution. Thanks.

      Comment

      • siberdinc
        Junior Member
        • Apr 2020
        • 9

        #4
        Hello there. I received the picture in this message 5 minutes after I sent you the above message. I also mentioned my log records below. Thanks.

        Click image for larger version  Name:	Untitled.png Views:	0 Size:	133.9 KB ID:	399778
        Code:
        6196:20200421:163637.460 Starting Zabbix Agent [Zabbix server]. Zabbix 4.0.19 (revision a566532084).
          6196:20200421:163637.460 **** Enabled features ****
          6196:20200421:163637.460 IPv6 support:          YES
          6196:20200421:163637.460 TLS support:           YES
          6196:20200421:163637.460 **************************
          6196:20200421:163637.460 using configuration file: /etc/zabbix/zabbix_agentd.conf
          6196:20200421:163637.461 agent #0 started [main process]
          6197:20200421:163637.462 agent #1 started [collector]
          6198:20200421:163637.462 agent #2 started[listener #1]
          6199:20200421:163637.463 agent #3 started[listener #2]
          6200:20200421:163637.464 agent #4 started[listener #3]
          6201:20200421:163637.468 agent #5 started [active checks #1]
          6201:20200421:163637.471 active check configuration update from [127.0.0.1:10051] started to fail (cannot connect to [[127.0.0.1]:100$
          6199:20200421:164403.684 failed to accept an incoming connection: connection from "192.168.160.179" rejected, allowed hosts: "127.0.0$
          6199:20200421:164503.756 failed to accept an incoming connection: connection from "192.168.160.179" rejected, allowed hosts: "127.0.0$
          6200:20200421:164603.800 failed to accept an incoming connection: connection from "192.168.160.179" rejected, allowed hosts: "127.0.0$
          6199:20200421:164703.843 failed to accept an incoming connection: connection from "192.168.160.179" rejected, allowed hosts: "127.0.0$
          6196:20200421:164707.390 Got signal [signal:15(SIGTERM),sender_pid:8893,sender_uid:126,reason:0]. Exiting ...
          6196:20200421:164707.393 Zabbix Agent stopped. Zabbix 4.0.19 (revision a566532084).
          8905:20200421:164707.410 Starting Zabbix Agent [zabbix]. Zabbix 4.0.19 (revision a566532084).
          8905:20200421:164707.410 **** Enabled features ****
          8905:20200421:164707.410 IPv6 support:          YES
          8905:20200421:164707.410 TLS support:           YES
          8905:20200421:164707.410 **************************
          8905:20200421:164707.410 using configuration file: /etc/zabbix/zabbix_agentd.conf
          8905:20200421:164707.411 agent #0 started [main process]
          8910:20200421:164707.414 agent #3 started[listener #2]
          8911:20200421:164707.414 agent #4 started[listener #3]
          8912:20200421:164707.414 agent #5 started [active checks #1]
          8907:20200421:164707.416 agent #2 started[listener #1]
          8906:20200421:164707.418 agent #1 started [collector]

        Comment

        • tim.mooney
          Senior Member
          • Dec 2012
          • 1427

          #5
          Originally posted by siberdinc
          6201:20200421:163637.471 active check configuration update from [127.0.0.1:10051] started to fail (cannot connect to [[127.0.0.1]:100$
          6199:20200421:164403.684 failed to accept an incoming connection: connection from "192.168.160.179" rejected, allowed hosts: "127.0.0$
          6199:20200421:164503.756 failed to accept an incoming connection: connection from "192.168.160.179" rejected, allowed hosts: "127.0.0$
          6200:20200421:164603.800 failed to accept an incoming connection: connection from "192.168.160.179" rejected, allowed hosts: "127.0.0$
          6199:20200421:164703.843 failed to accept an incoming connection: connection from "192.168.160.179" rejected, allowed hosts: "127.0.0$
          [/CODE]
          The $ that's being logged in some places might be indicative of typos in your zabbix_agentd.conf. You might want to verify the contents of that file.

          Comment

          • siberdinc
            Junior Member
            • Apr 2020
            • 9

            #6
            I'm new. I do not fully understand. What am I supposed to do?

            Comment

            • siberdinc
              Junior Member
              • Apr 2020
              • 9

              #7
              https://repo.zabbix.com/zabbix/4.5/u...abbix-release/

              Do you think it will be improved if I update? 4.5 zabbix with ? or how can I update the current zabbix agent?
              Last edited by siberdinc; 22-04-2020, 15:42.

              Comment

              • tim.mooney
                Senior Member
                • Dec 2012
                • 1427

                #8
                First, you're using version 4.0.19, which is a long term support (LTS) release. Unless you very much need one of the new features that was added to Zabbix as part of the 4.2.x or 4.4.x series, I would recommend you stay with the 4.0 LTS series for now.

                When you install a Zabbix agent, making one or two changes in its configuration file is typically required. For example, it's typically required that the Server or ServerActive (or both) settings be configured in zabbix_agentd.conf. That's how the client knows which server(s) are allowed to connect or that it should connect to. Sometimes there are additional settings that you want to change too, but generally the number of things to configure is small.

                Your log messages look strange to me because several of the lines appear to end with the '$' character, which makes it seem like there is a typo with the IP address in the Server or ServerActive setting. My suggestion is that you review the documentation on setting up the client and review any changes that were made to the zabbix_agentd.conf, to make sure that Server and/or ServerActive setting is correct and doesn't contain any typos.

                Comment

                • siberdinc
                  Junior Member
                  • Apr 2020
                  • 9

                  #9
                  Thanks. I noticed that the thread of my ubunt installed in vmware has changed. I fixed it.

                  Comment

                  Working...