Ad Widget

Collapse

Automate Zabbix using DevOps Tools

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • osamazx
    Junior Member
    • Jan 2020
    • 15

    #1

    Automate Zabbix using DevOps Tools

    Hello Everyone

    Happy New Year and wish all the best for everyone.

    The idea Like the following : I configured couple of templates using Zabbix but these templates deployed on different servers around 15 server , the idea is for example once i update one of configuration files let's assume on the master server, using DevOps tools, this configuration file will be uploaded to Github and then apply it to the other 15 server , my questions like the following :-

    is this possible ? if Yes
    what tools i can use ?
    is it nessercy for me to use DevOps or i can just Zabbix API or webhook with GitHub CI integration ?
    what is the best way to do that ?

    This is will save time instead of redeploy the updated configuration files to 15 server, that's why i am asking.

    Thank you Guys

  • astrinrow
    Junior Member
    • Jan 2020
    • 2

    #2
    are these ready-made puppets are free of cost?

    Comment

    • osamazx
      Junior Member
      • Jan 2020
      • 15

      #3
      It's not possible to use Puppet actually because each site in different network and country

      Comment

      • LenR
        Senior Member
        • Sep 2009
        • 1005

        #4
        If you have ssh access, you can use ansible.

        You could use hostmetadata, autoregistration and actions to add templates depending on metadata contents.

        Comment

        • osamazx
          Junior Member
          • Jan 2020
          • 15

          #5
          Originally posted by LenR
          If you have ssh access, you can use ansible.

          You could use hostmetadata, autoregistration and actions to add templates depending on metadata contents.


          i will automate export and import template from one site to another site but the problem when i import the template/s from Site A the host-name of the site A will be imported to site B which is totally different from each other and causing an issue, is there a way i can avoid this ? i am using "import.configuration" API, can i import the template/overwrite the existing one without updating the host-name and keep the original one in each site

          Comment

          • osamazx
            Junior Member
            • Jan 2020
            • 15

            #6
            Originally posted by splitek

            What problem may be with template? Because, what is template: "A template is a set of entities that can be conveniently applied to multiple hosts." https://www.zabbix.com/documentation...nfig/templates
            Import template and add it to particular hosts. What problems you expect here? Are you not using macors like {HOST.HOST}, {HOST.NAME} and others just strict real host names in items, triggers, graphs etc.?
            If so, then this templates are not a real templates.

            I am using Macros inside the template, but the question every time i have to import the template to different location either the host is empty or will be the name for Site A, include to this Linked templates and Linked it's always empty and i have to do them manually which will take so much time and efforts, how to avoid this ?
            Last edited by osamazx; 18-02-2020, 16:52.

            Comment

            Working...