Ad Widget

Collapse

Zabbix question about proxy container

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • killmasta93
    Member
    • Oct 2019
    • 45

    #1

    Zabbix question about proxy container

    Hi Currently i have installed zabbix proxy container in a virtual machine

    The VM has an 10.10.10.248 and in the VM installed the zabbix proxy container
    in the Vm installed the zabbix agent2 and configured

    Code:
    ### Option: Server
    # List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of Zabbix servers and Zabbix proxies.
    # Incoming connections will be accepted only from the hosts listed here.
    # If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally
    # and '::/0' will allow any IPv4 or IPv6 address.
    # '0.0.0.0/0' can be used to allow any IPv4 address.
    # Example: Server=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.example.com
    #
    # Mandatory: yes, if StartAgents is not explicitly set to 0
    # Default:
    # Server=
    
    Server=127.0.0.1,10.10.10.248
    
    ### Option: ListenPort
    # Agent will listen on this port for connections from the server.
    #
    # Mandatory: no
    # Range: 1024-32767
    # Default:
    # ListenPort=10050
    
    ### Option: ListenIP
    # List of comma delimited IP addresses that the agent should listen on.
    # First IP address is sent to Zabbix server if connecting to it to retrieve list of active checks.
    #
    # Mandatory: no
    # Default:
    # ListenIP=0.0.0.0
    
    ### Option: StatusPort
    # Agent will listen on this port for HTTP status requests.
    #
    # Mandatory: no
    # Range: 1024-32767
    # Default:
    # StatusPort=
    
    ##### Active checks related
    
    ### Option: ServerActive
    # List of comma delimited IP:port (or DNS name:port) pairs of Zabbix servers and Zabbix proxies for active checks.
    # If port is not specified, default port is used.
    # IPv6 addresses must be enclosed in square brackets if port for that host is specified.
    # If port is not specified, square brackets for IPv6 addresses are optional.
    # If this parameter is not specified, active checks are disabled.
    # Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
    #
    # Mandatory: no
    # Default:
    # ServerActive=
    
    Server=127.0.0.1,10.10.10.248
    then on my zabbix server configured like this and shows green the agent but when i check on the triggers i see that the zabbix agent and docker service dead






    Thank you

  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1784

    #2
    The immediate problem is that you have the Server configuration twice, so the last line should probably be ServerActive.

    Markku

    Comment

    • killmasta93
      Member
      • Oct 2019
      • 45

      #3
      Thank you for the quick reply, so remove one of the lines that says?
      Server=127.0.0.1,10.10.10.248

      even though on the zabbix server it shows green the agent?

      Comment

      • Markku
        Senior Member
        Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
        • Sep 2018
        • 1784

        #4
        Green = passive agent checks are working = the first Server line is ok

        Tirigger activated for agent not available = active agent checks are not working = you don't have a ServerActive configuration

        Markku

        Comment

        • killmasta93
          Member
          • Oct 2019
          • 45

          #5
          thanks for the reply,

          edit the config to this

          Code:
          ##### Passive checks related
          
           
          
          ### Option: Server
          
          # List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of Zabbix servers and Zabbix proxies.
          
          # Incoming connections will be accepted only from the hosts listed here.
          
          # If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally
          
          # and '::/0' will allow any IPv4 or IPv6 address.
          
          # '0.0.0.0/0' can be used to allow any IPv4 address.
          
          # Example: Server=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.example.com
          
          #
          
          # Mandatory: yes, if StartAgents is not explicitly set to 0
          
          # Default:
          
          # Server=
          
           
          
          Server=127.0.0.1,10.10.10.248
          
          ### Option: ListenPort
          
          # Agent will listen on this port for connections from the server.
          
          #
          
          # Mandatory: no
          
          # Range: 1024-32767
          
          # Default:
          
          # ListenPort=10050
          
           
          
          ### Option: ListenIP
          
          # List of comma delimited IP addresses that the agent should listen on.
          
          # First IP address is sent to Zabbix server if connecting to it to retrieve list of active checks.
          
          #
          
          # Mandatory: no
          
          # Default:
          
          # ListenIP=0.0.0.0
          
           
          
          ### Option: StatusPort
          
          # Agent will listen on this port for HTTP status requests.
          
          #
          
          # Mandatory: no
          
          # Range: 1024-32767
          
          # Default:
          
          # StatusPort=
          
           
          
          ##### Active checks related
          
           
          
          ### Option: ServerActive
          
          # List of comma delimited IP:port (or DNS name:port) pairs of Zabbix servers and Zabbix proxies for active checks.
          
          # If port is not specified, default port is used.
          
          # IPv6 addresses must be enclosed in square brackets if port for that host is specified.
          
          # If port is not specified, square brackets for IPv6 addresses are optional.
          
          # If this parameter is not specified, active checks are disabled.
          
          # Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
          
          #
          
          # Mandatory: no
          
          # Default:
          ServerActive=127.0.0.1,10.10.10.248
          it fixed the trigger showing the agent not alive but shows docker service down not sure
          Last edited by killmasta93; 19-05-2022, 05:33.

          Comment

          • killmasta93
            Member
            • Oct 2019
            • 45

            #6
            solved it had to give permission

            usermod -a -G docker zabbix

            Comment

            Working...