Ad Widget

Collapse

Issues with Zabbix Agent 2 with Docker

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • videoscape
    Junior Member
    • Aug 2020
    • 3

    #1

    Issues with Zabbix Agent 2 with Docker

    I was offline and relaxing and then all of a sudden all of my agents from my host has gone offline, looking at the container logs it looks like this

    Code:
    ** Preparing Zabbix agent,
    ** Preparing Zabbix agent configuration file,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "PidFile": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "LogType": 'console'...added,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "LogFile": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "LogFileSize": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "DebugLevel": '5'...added,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "SourceIP": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "LogRemoteCommands": ''...removed,
    ** Using '****'' servers for passive checks,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "Server": '****''...updated,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "ListenPort": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "ListenIP": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "StartAgents": ''...removed,
    ** Using '****' servers for active checks,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "ServerActive": '1****''...updated,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "EnablePersistentBuffer": '0'...added,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "HostInterface": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "HostInterfaceItem": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "Hostname": hostinfo'...updated,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "HostnameItem": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "HostMetadata": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "HostMetadataItem": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "RefreshActiveChecks": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "BufferSend": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "BufferSize": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "MaxLinesPerSecond": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "Timeout": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "Include": '/etc/zabbix/zabbix_agentd.d/'...added first occurrence,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "UnsafeUserParameters": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "LoadModulePath": '/var/lib/zabbix/modules/'...added at the end,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "TLSConnect": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "TLSAccept": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "TLSCAFile": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "TLSCRLFile": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "TLSServerCertIssuer": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "TLSServerCertSubject": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "TLSCertFile": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "TLSKeyFile": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "TLSPSKIdentity": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "TLSPSKFile": ''...removed,
    ** Updating '/etc/zabbix/zabbix_agent2.conf' parameter "AllowRoot": '1'...added at the end,
    zabbix_agent2 [6]: ERROR: Cannot assign configuration: invalid parameter LoadModulePath at line 584: unknown parameter,

    Now I don't know what has happened but this is showing up on both of the agents nearly at the same time, recreating them and removing their images and starting fresh does not work. I am not sure what is happening to be honest. this is on debug level 5 so I don't know what the LoadModulePath at line 584 is looking for but I don't have enough time to check really as it keeps rebooting the container.

    Any help on this will be greatly appreciated thank you!
  • videoscape
    Junior Member
    • Aug 2020
    • 3

    #2
    Just wondering if anyone is able to help this?

    Comment

    • visiandy
      Junior Member
      • Jul 2020
      • 8

      #3
      Hi!
      I had exactly the same problem on CentOS 7 yesterday, in my opinion there could be some problems in newer agent 2 5.0.2 images. Because i had 5.0.2 containers running in other CentOS 7 VMs without problems. I did compare of "docker inspect" output of older and newer containers, some parameters are different but im not sure its the case. Anyway my solution was to use alpine-5.0.2 image (docker pull zabbix/zabbix-agent2:alpine-5.0.2).

      Maybe meanwhile developers will resolve that problem. Somehow. I hope.

      Comment

      • videoscape
        Junior Member
        • Aug 2020
        • 3

        #4
        Hi, visiandy Thanks for the reply and suggestion, it works perfectly due to using the tag :alpine-5.0.2

        Thank you for that I thought I was going crazy and was going to get rid of zabbix as something somewhere went wrong!

        Thanks for that lets hope they resolve that problem as well! Thanks!

        Comment

        Working...