Ad Widget

Collapse

zabbix-server on kubernetes agent failed to accept connection from exposed service IP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • simha.chow
    Junior Member
    • Dec 2020
    • 2

    #1

    zabbix-server on kubernetes agent failed to accept connection from exposed service IP

    HI

    i setup zabbix server in kubrernetes..and my agent also running as pod in the worker nodes


    zabbix-server service is exposed with clusterIP ..
    zabbix-agent has the config with servername=zabbix-server...but the agent is dropping the connection with error " failed to accept an incoming connection: connection from "IP" rejected, allowed hosts: "zabbix-server". "
    that makes sense. bcoz zabbix-server is resolving to the cluster IP..but the Zabbix server is polling the agent with POD IP


    when i changed my agent's servername string to IP of POD. where zabbix is running everything is normal , but pod IP cant be hardcoded as it will change when pod restarts
    am stuck with this
    any help

  • Zdenek_OMNISENSUIT
    Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Nov 2020
    • 55

    #2
    Hello

    Your zabbix agent config should have this value specified: Server=<clusterIP or DNS>
    If you are using only passive checks, you don't need the Hostname defined in config.
    If you want use active checks, you must config agent with Hostname<some unique name which must be used on zabbix server too) and ServerActive=<clusterIP or DNS>.

    Comment

    Working...