Ad Widget

Collapse

Multiple zabbix agents with different versions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vnbgv
    Junior Member
    • Jul 2022
    • 1

    #1

    Multiple zabbix agents with different versions

    I am in a situation where I have production zabbix environment (zabbix server and zabbix agent are 2.0 ) (all centos 7), now I am trying to replicate this setup with zabbix 6.0

    I have setup zabbix 6.0 server on a new linux server, trying to add all hosts to this without impacting the production setup
    I was able to do this by referring to https://www.zabbix.com/forum/zabbix-...e-zabbix-agent

    But have a couple of questions

    1.This kind of setup does not give me flexibility to see service status like - service zabbix-agent status, and will have to rely on ps aux
    2. Is it possible to run 2nd agent through a systemd service - zabbix-agent2.service
    3. The second agent I am running is also 2.0, can I run multiple versions of agent on the same machine
    4. are zabbix server 6.0 and agent 2.0 compatible (is there any feature loss in this kind of setup)

    if mentioned points are possible, please provide or redirect me to any good documentation which details these steps.

  • vladimir_lv
    Senior Member
    • May 2022
    • 240

    #2
    Yes, you can use multiple agents, but for different ports.
    Here is a dispute about Zabbix server 6 and agent 2 compatible

    Comment


    • vnbgv
      vnbgv commented
      Editing a comment
      Thank you, I managed to run multiple agents, now looking for possibility of running different versions of agent on same machine (for example 1st agent instance is 2.0 and 2nd agent instance is 6.0)
  • vladimir_lv
    Senior Member
    • May 2022
    • 240

    #3
    (for example 1st agent instance is 2.0 and 2nd agent instance is 6.0)
    Yes, it'd possible, just use different ports for each instance.

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1782

      #4
      Originally posted by vladimir_lv
      Yes, it'd possible, just use different ports for each instance.
      Also note that if you don't need passive items at all, you can configure the agents with StartAgents=0, then the agents don't listen any ports so there is no need for special agent port configurations anywhere. Some security teams also like that unused ports are not opened. (This is valid for classic agent only, agent2 (the Go version) does not have that setting.)

      Markku

      Comment

      Working...