Ad Widget

Collapse

One agent and two zabbix servers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • remold
    Junior Member
    • Apr 2011
    • 2

    #1

    One agent and two zabbix servers

    Is it possible to have one agent sent notifications to two separate Zabbix server and if so is it possible to send 1 set of notifications to 1 server and another set to the 2nd server?

    If not possible, how to install 2 agents on 1 box?

    Thanks,
    Remold
  • Matthieu
    Member
    • Mar 2011
    • 41

    #2
    Hi,

    Yes it's possible but you must have 2 agents. See my topic for the solution:

    Comment

    • nelsonab
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2006
      • 1233

      #3
      You can have one agent talk to two servers, however it will only work passively. Here is the snippet from agent conf file:

      Code:
      ### Option: Server
      #       List of comma delimited IP addresses (or hostnames) of Zabbix servers.
      #       No spaces allowed. First entry is used for receiving list of and sending active checks.
      #       If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally.
      If you need one client to talk to two servers using active mode then you need to run two agents.
      RHCE, author of zbxapi
      Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
      Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

      Comment

      • remold
        Junior Member
        • Apr 2011
        • 2

        #4
        Matthieu & nelsonab

        Thanks for your response

        I have already implemented/tested both solutions in my test environment

        Comment

        Working...