Ad Widget

Collapse

Install Zabbix agent into K8s (via Rancher) ; send to a remote Zabbix server.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Birl
    Junior Member
    • Jan 2021
    • 6

    #1

    Install Zabbix agent into K8s (via Rancher) ; send to a remote Zabbix server.

    Totally new to Zabbix; I come from the world of Xymon [admin] (and Zenoss [end-user]). Trying out latest Zabbix 5.2 as a POC to monitor our Kubernetes/K8s environment. Our K8s environment is managed via Rancher.
    I have a Zabbix 5.2 server running a RHEL 7 already, now I am looking to deploy agents.

    I tried my hand at Cetic's helm-zabbix, but either Im too new to figure out what's going on with it, or it's not a good fit -- that Helm chart wants to install a Zabbix server, proxy, etc in addition to an agent, but I only need the agent.
    I tried to point that agent over to remote server, but no data collection occurred.

    My web searching skills are finding it difficult to find a straightforward approach to installing an agent and point it to the remote server.

    The K8s nodes are running latest Ubuntu 20.

    Looking for any help and should be able to provide more detail. (Honestly, Im still rather new to K8s and Rancher as well .)

    Thanks.
  • NilsA
    Senior Member
    • Sep 2020
    • 102

    #2
    First off: I don't know what kind of environment you are working in - I am working on Debian only with my Zabbix servers and proxies. So I won't be able to give you any input on that part.
    Anyway you'll probably want a VPN connection or an SSL certificate at the very least for communications between your remote Zabbix server and your "to be installed" agent.
    The agent installation via package is documented here: https://www.zabbix.com/download (go to the Zabbix packages tab). Simply follow the instructions and just use "apt install zabbix-agent" or "dnf install zabbix-agent" instead of everything.
    Now that you installed your first Zabbix agent, you need to configure a couple things. I'm going to assume an end-to-end VPN connection for the config so you might need to change a bit to make it work.

    You can find the config file under /etc/zabbix/....agent.conf. There you need to add the entries: Server, ServerActive (just in case you will use active agent keys), Hostname at the very least.
    Then add this agent as a new host in your Zabbix frontend with IP and everything.

    Let me know if it works or if you need more help.

    Comment

Working...