Ad Widget

Collapse

Run Many instances of Agent in one machine

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • WagnerEits
    Junior Member
    • Aug 2017
    • 28

    #1

    Run Many instances of Agent in one machine

    Hi everybody, i need to collect many hosts datas from the same machinne, i supose that i cant do it with one instance of agent, cause i need to specify the hostname on zabbix_agentd.conf. So, is there a way to run many instances of zabbix agent on one single server?
  • andris
    Zabbix developer
    • Feb 2012
    • 228

    #2
    Originally posted by WagnerEits
    So, is there a way to run many instances of zabbix agent on one single server?
    Each instance should be started with its own configuration file with a different Hostname, ListenPort, LogFile, PidFile values configured.

    Comment

    • WagnerEits
      Junior Member
      • Aug 2017
      • 28

      #3
      How do i set many agents conf files?

      Comment

      • andris
        Zabbix developer
        • Feb 2012
        • 228

        #4
        For example, to start 2 instances from command line :

        zabbix_agentd -c /home/zabbix/zabbix_agentd1.conf
        zabbix_agentd -c /home/zabbix/zabbix_agentd2.conf

        Comment

        • Semiadmin
          Senior Member
          • Oct 2014
          • 1625

          #5
          Originally posted by WagnerEits
          i need to collect many hosts datas from the same machinne, i supose that i cant do it with one instance of agent
          In fact, while you are not using Zabbix agent active checks, you don't need multiple instances of Zabbix agent.

          Comment

          • WagnerEits
            Junior Member
            • Aug 2017
            • 28

            #6
            Originally posted by andris
            For example, to start 2 instances from command line :

            zabbix_agentd -c /home/zabbix/zabbix_agentd1.conf
            zabbix_agentd -c /home/zabbix/zabbix_agentd2.conf
            Ok, thanks. I will do something like that

            Comment

            • WagnerEits
              Junior Member
              • Aug 2017
              • 28

              #7
              Originally posted by Semiadmin
              In fact, while you are not using Zabbix agent active checks, you don't need multiple instances of Zabbix agent.
              But i'm using active checks

              Comment

              Working...