Ad Widget

Collapse

Mass update on zabbix_agentd.conf in network

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saintxseiya
    Junior Member
    • Oct 2010
    • 17

    #1

    Mass update on zabbix_agentd.conf in network

    Hi all!

    I searched a bit, but did not find any usefull solution, regarding this task.

    This is the problem.

    I have already running

    1x Server
    1x Proxy

    due to the overload of the proxy, i would love to move some groups from one proxy to the new one.

    Here is the problem:

    in the agent config file there is the host the agent is listening at.
    How do you manage to update that in large environments?
    Certainly nobody does that by hand right?

    My environment consists of Ubuntu and Windows machines.

    Thanks for help

    Saint!
  • saintxseiya
    Junior Member
    • Oct 2010
    • 17

    #2
    Nobody has any clue or hint?

    Comment

    • dale
      Junior Member
      • Oct 2011
      • 26

      #3
      Originally posted by saintxseiya
      Here is the problem:

      in the agent config file there is the host the agent is listening at.
      How do you manage to update that in large environments?
      Certainly nobody does that by hand right?
      I'm not sure I understand the question, I'm not sure what you mean by "the host the agent is listening at." You can update the Hostname and the Server parameters in zabbix_agentd.conf using sed. Set the Server parameter to zabbix-proxy,zabbix with no spaces.

      Put the commands in a little script then run that script on all your machines with something like dsh or puppet. Restart zabbix-agentd on them, then go into the Zabbix UI and do a mass update to set the 'Monitored by proxy' to the proxy you want to use.

      Comment

      Working...