Ad Widget

Collapse

Can't connect Zabbix Server to Zabbix agent on another VPS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • snikitin-de
    Junior Member
    • Sep 2021
    • 1

    #1

    Can't connect Zabbix Server to Zabbix agent on another VPS

    Hello!

    I have Zabbix server on Google VPS. It works good. I have Zabbix agent on another VPS.

    I've created host T1 on Zabbix server with IP another VPS.

    ZBX status is unknown.

    telnet <another VPS> 10050

    Code:
    Trying  <another VPS> ...
    Connected to <another VPS>.
    Escape character is '^]'.
    Connection closed by foreign host.
    Zabbix agent is running.

    Code:
    sudo service zabbix-agent status ● zabbix-agent.service - Zabbix Agent
    Loaded: loaded (/lib/systemd/system/zabbix-agent.service; enabled; vendor > Active: active (running) since Tue 2021-09-14 06:29:29 CEST; 22min ago
    Docs: man:zabbix_agentd
    Main PID: 93741 (zabbix_agentd)
    Tasks: 6 (limit: 2280)
    Memory: 3.4M
    CGroup: /system.slice/zabbix-agent.service
    ├─93741 /usr/sbin/zabbix_agentd --foreground
    ├─93752 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
    ├─93753 /usr/sbin/zabbix_agentd: listener #1 [waiting for connecti> ├─93754 /usr/sbin/zabbix_agentd: listener #2 [waiting for connecti> ├─93755 /usr/sbin/zabbix_agentd: listener #3 [waiting for connecti> └─93756 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]
    
    Sep 14 06:29:29 ubuntu-2gb-fsn1-1 systemd[1]: Started Zabbix Agent.
    Sep 14 06:29:29 ubuntu-2gb-fsn1-1 zabbix_agentd[93741]: Starting Zabbix Agent [>Sep 14 06:29:29 ubuntu-2gb-fsn1-1 zabbix_agentd[93741]: Press Ctrl+C to exit.
    lines 1-18/18 (END)
    Zabbix agent config:

    Code:
    Server=Google VPS IP
    ServerActive=Google VPS IP
    SourceIP=Another VPS IP
    StartAgents=3

Working...