Ad Widget

Collapse

Automation of nodes....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jsosic
    Member
    • Apr 2008
    • 47

    #1

    Automation of nodes....

    Hi guys,

    I would like to create a following scenario with my monitoring solution:

    1) node gets installed, starts up zabbix-agent
    2) zabbix-agent reports to server
    3) zabbix-server creates a node, adds it in appropriate groups by some rule, links predefined templates

    Now, for step 3 I would like to be able to somehow send information from agent - for example agent can say "I want to be in groups: Linux, SMTP and have templates A,B,C,D,E"

    Is this, or something similar possible?
  • Emir Imamagic
    Member
    • Mar 2008
    • 67

    #2
    Hello,

    one way to do this is by using auto-registration functionality described here:


    Scenario is the following:
    1. on the agent side use HostMetadata to define templates to which you want to connect the client, e.g.
    HostMetadata=Linux Template_SMTP Group_Something
    2. on the server side define multiple actions by using Condition Host metadata like to map the agent to group or link to templates, e.g.
    Condition: Host metadata like Template_SMTP -> Link to templates: Template_SMTP, Add to host groups: SMTP_servers
    Condition: Host metadata like Group_Something -> Add to host groups: Group_Something

    There are some drawbacks here:
    - as far as I understood & tested autoregistration actions are executed only the first time agent appears, meaning you cannot manage change with this approach. The only way to reassign things automatically is to delete the agent and do autoregistration again (or manually change things via web interface)
    - HostMetadata is limited to 256 characters so you need to use them wisely

    Cheers,
    emir

    Comment

    • natalia
      Senior Member
      • Apr 2013
      • 159

      #3
      Originally posted by Emir Imamagic
      autoregistration actions are executed only the first time agent appears, meaning you cannot manage change with this approach. The only way to reassign things automatically is to delete the agent and do autoregistration again (or manually change things via web interface)
      Hi,

      could you vote my feature request :


      Thanks

      Comment

      • jsosic
        Member
        • Apr 2008
        • 47

        #4
        Thanks Natalia, upvoted!

        Comment

        • natalia
          Senior Member
          • Apr 2013
          • 159

          #5
          Originally posted by jsosic
          Thanks Natalia, upvoted!
          Thank you :-)

          Comment

          • Emir Imamagic
            Member
            • Mar 2008
            • 67

            #6
            Voted as well

            cheers

            Comment

            • natalia
              Senior Member
              • Apr 2013
              • 159

              #7
              Originally posted by Emir Imamagic
              Voted as well

              cheers
              Thanks ! :-)

              Comment

              Working...