Ad Widget

Collapse

Active Zabbix Proxy not sending zabbix Agent checks to Zabbix Server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sarhan
    Junior Member
    • Oct 2021
    • 2

    #1

    Active Zabbix Proxy not sending zabbix Agent checks to Zabbix Server

    Hi,

    I am installing Zabbix in a Distributed Environment. Zabbix Proxies are deployed in Active mode on several clusters and all are connected to one cluster which has the Zabbix server.

    all types of checks are sent from the Proxy to the server while the checks of Type Zabbix Agent and simple checks are not sent to the Zabbix server and accumulated in the Queue of Zabbix proxy.

    Configuration of the server :

    /usr/bin/podman run --name zabbix-server \
    --net host \
    --memory-reservation "2g" \
    --cpus "2" \
    -v /var/log/zabbix/snmptraps:/var/lib/zabbix/snmptraps \
    -v /var/lib/zabbix/mibs:/var/lib/zabbix/mibs \
    -v /usr/lib/zabbix/alertscripts/:/usr/lib/zabbix/alertscripts/ \
    -v /usr/lib/zabbix/externalscripts:/usr/lib/zabbix/externalscripts \
    -v /var/log/zabbix/zabbix-server.log:/var/lib/zabbix/zabbix-server.log \
    -v /etc/cbis-snmp/:/etc/cbis-snmp/ \
    -v /var/log/zabbix/:/var/log/zabbix/ \
    -e ZBX_LOG_TYPE=file \
    -e ZBX_LOG_FILE=/var/lib/zabbix/zabbix-server.log \
    -e ZBX_LOG_FILE_SIZE=0 \
    -e DB_SERVER_HOST=172.31.0.4 \
    -e ZBX_DEBUGLEVEL=5 \
    -e MYSQL_ROOT_PASSWORD=Z-95e4583a46e3510737531b6fe76c1e46b9a11496ac3bd5 \
    -e MYSQL_DATABASE=zabbixdb \
    -e MYSQL_USER=zabbix \
    -e MYSQL_PASSWORD=sCLSwYZ9jUV3f8uH \
    -e ZBX_STARTPOLLERS=20 \
    -e ZBX_STARTPOLLERSUNREACHABLE=5 \
    -e ZBX_STARTTRAPPERS=32 \
    -e ZBX_STARTPINGERS=10 \
    -e ZBX_STARTDISCOVERERS=10 \
    -e ZBX_STARTALERTERS=3 \
    -e ZBX_STARTTIMERS=4 \
    -e ZBX_CACHESIZE=1024M \
    -e ZBX_TRENDCACHESIZE=256M \
    -e ZBX_VALUECACHESIZE=128M \
    -e ZBX_STARTPREPROCESSORS=40 \
    -e ZBX_ENABLE_SNMP_TRAPS=true \
    -e ZBX_TIMEOUT=10 \
    -e TZ=Europe/Helsinki \
    -p 10051:10051 \
    --expose 10051/tcp 172.31.0.4:8787/zabbix-server-mysql:zabbix-centos-5.4-latest


    configuration of the proxy:

    /usr/bin/podman run \
    --conmon-pidfile %t/container-zabbix-proxy-mysql.pid \
    --cidfile %t/container-zabbix-proxy-mysql.ctr-id \
    --cgroups=no-conmon \
    --replace \
    --name zabbix-proxy-mysql \
    --net host \
    -e ZBX_ENABLE_SNMP_TRAPS=true \
    -e ZBX_LISTENIP=172.31.9.4 \
    -e ZBX_SOURCEIP=172.31.9.4 \
    -e MYSQL_USER=zabbix \
    -e ZBX_STARTPINGERS=5 \
    -e ZBX_STARTDISCOVERERS=5 \
    -e ZBX_STARTTRAPPERS=22 \
    -e ZBX_STARTTIMERS=4 \
    -e ZBX_STARTPREPROCESSORS=30 \
    -e ZBX_STARTPOLLERSUNREACHABLE=5 \
    -e ZBX_STARTPOLLERS=10 \
    -e ZBX_TIMEOUT=30 \
    -e MYSQL_DATABASE=zabbixdb \
    -e DB_SERVER_HOST=172.31.9.4 \
    -e ZBX_SERVER_HOST=172.31.0.4 \
    -e ZBX_DEBUGLEVEL=5 \
    -e MYSQL_PASSWORD=sCLSwYZ9jUV3f8uH \
    -e ZBX_HOSTNAME=honda-civic \
    --memory-reservation "2g" \
    --cpus "2" \
    -d 172.31.0.4:8787/zabbix-proxy-mysql:zabbix-centos-5.4-latest



    is there any configuration that needs to be added to the server or the proxy to allow the flow of Zabbix-agent checks and simple checks to the Zabbix server?
    does active proxy support both Zabbix agent checks and zabbix Agent (Active) checks ?

    thanks,
  • Hernandes Martins
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Apr 2011
    • 900

    #2
    Hi

    Look in this case, just use type: zabbix agent active.


    __

    Att.
    Hernandes Martins - Zabbix Trainer

    Zabbix Brazil Partner - www.luniobr.com

    Zabbix Brazil Community - www.zabbixbrasil.org

    Blog: hernandesmartins.blogspot.com.br

    Skype: hernandss
    Telegram: @MrHernandes

    Español
    Facebook: facebook.com/groups/zabbixlatam
    Telegram: https://t.me/ZabbixEspañol

    Português
    Facebook: facebook.com/groups/zabbixbrasil/
    Telegram: https://t.me/ZabbixBrasil

    Comment

    • sarhan
      Junior Member
      • Oct 2021
      • 2

      #3
      thanks for the answers,
      this is the configuration of the zabbix-agent on the remote nodes monitored by the proxy :

      Hostname=rca-test-cluster1-allinone-0
      Server=127.0.0.1,172.31.9.4,172.31.9.0/24
      ServerActive=172.31.9.4
      SourceIP=172.31.9.5
      AllowKey=system.run[*]
      Timeout=10
      PidFile=/var/run/zabbix/zabbix_agentd.pid
      LogFile=/var/log/zabbix/zabbix_agentd.log
      LogFileSize=20
      Include=/etc/zabbix/zabbix_agentd.d/

      the agent is collecting and sending to the proxy. but the proxy Queue for the Zabbix agent items are building up. its not sending any of the zabbix agents items to the zabbix-server. Any idea how to check why is this failing to send those values?

      how exactly those zabbix-agent items are being sent from the proxy to the server? I don't get why active items are being sent but not the Zabbix-agent ones.

      thanks for the help

      Comment

      Working...