Ad Widget

Collapse

Simple Zabbix POC failing. What's wrong?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • olegus
    Member
    • Dec 2023
    • 68

    #1

    Simple Zabbix POC failing. What's wrong?

    ​ I'm trying to setup the simplest Zabbix POC possible -
    - Zabbix server in docker
    - Zabbix agent on server's host
    - Zabbix agent on my desktop

    and I could not figure out how to make them talk on each other.

    I use official zabbix docs to install server from docker-compose - https://www.zabbix.com/documentation...docker-compose
    I installed agent2 by
    Code:
    sudo apt install zabbix-agent2
    I run it by
    Code:
    sudo systemctl start zabbix-agent2
    I did not change agent conf file as it seems it points correctly to 127.0.0.1 server
    My host system is Ubuntu 22.04
    I can open Zabbix web at 192.168.x.x/zabbix
    Server cannot communicate with agent -



    127.0.0.1 can be pinged from docker
    but zabbix get returns error



    zabbix agent log does not show any errors

    Code:
    2023/12/20 04:07:02.868336 [Modbus] Config is valid
    2023/12/20 04:07:02.868413 Plugin communication protocol version is 6.0.13
    2023/12/20 04:07:02.868438 Zabbix Agent2 hostname: [Zabbix server]
    2023/12/20 04:07:02.868584 starting manager
    2023/12/20 04:07:02.868606 [101] starting memory cache
    2023/12/20 04:07:02.868700 [101] starting server connector for [127.0.0.1:10051]
    2023/12/20 04:07:02.868745 [0] starting listener for '0.0.0.0:10050'
    2023/12/20 04:07:02.869278 listening for control connections on /tmp/agent.sock
    2023/12/20 04:07:03.869333 [101] In refreshActiveChecks() from [127.0.0.1:10051]
    2023/12/20 04:07:03.870597 [101] End of refreshActiveChecks() from [127.0.0.1:10051]
    2023/12/20 04:07:03.870618 [101] processing update request (0 requests)
    2023/12/20 04:07:03.870633 [101] skipping empty update for unregistered client
    ​ufw is inactive

    it looks like it fails to listen on 10050 tcp ?

    Code:
    netstat -na | grep 10051
    tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN
    tcp6 0 0 :::10051 :::* LISTEN
    Code:
    netstat -na | grep 10050
    tcp6 0 0 :::10050 :::* LISTEN
    Here is also ss -nltp output
    Code:
    ss -nltp | grep 10050
    LISTEN 0 4096 *:10050 *:*
    On my windows desktop I installed agent from msi.
    zabbix get returns 1 fro this agent
    zabbix_get -s 192.168.0.141 -k agent.ping

    I added new Host for my desktop , but it shows grey

    What to try next?
    Also, should I manually add a Host on server after installing agent on machine? Can it be done automatically? We were planning to install Zabbix to monitor ~700 hosts and it will be a real showstopper if we auto onboarding does not work.






    ​​​
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    All your questions are answered by the Zabbix documentation. You're definitely going to want to be familiar with the documentation and the product's features to get the best configuration for your site, so why not take a look at the documentation now?

    Third sentence in the overview for items: "Once you have configured a host, you must add items to get actual data." Items: https://www.zabbix.com/documentation...l/config/items

    Automatic host discovery: https://www.zabbix.com/documentation...work_discovery

    Comment

    • olegus
      Member
      • Dec 2023
      • 68

      #3
      Thanks for responding and for the links, they give me a hint why my host is grey and how to automate discovery.

      I dont see an answer to my main question - how to setup an agent on Host to talk to Server running in docker on the same host? What is wrong with my networking?

      Thanks.

      Comment

      Working...