Ad Widget

Collapse

Exporting template in Zabbix 2.2 with web scenarios

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cozancin
    Junior Member
    • Nov 2012
    • 10

    #1

    Exporting template in Zabbix 2.2 with web scenarios

    I am moving our environment to Zabbix 2.2.

    I have setup a test environment for doing proof-of-concept testing.

    I created a template to check the zabbix front-end as described in the manual. It works great. I love being able to have this in a template. It becomes much more portable and easier to manage.

    I wanted to export this template for import into our production environment when it is upgraded to 2.2. The export was successful, but when I look at the xml, none of the web scenario steps were included.

    Has this issue been noticed by others? Is this a limitation of Zabbix?

    It is an important issue for me. I like to do all new template development in a controlled test environment to be exported and then imported into the production environment when completed. It helps keep our production environment clean and prevents false positives or incorrect alerts during the development process.
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    See: ZBXNEXT-178

    Comment

    • cozancin
      Junior Member
      • Nov 2012
      • 10

      #3
      That explains. Thanks for posting the info.

      Comment

      • emmanux
        Member
        Zabbix Certified Specialist
        • Mar 2013
        • 47

        #4
        In fact, it is doable by API:



        Scripting it would be matter of some hours (minutes?) of intense creative energy. May the Force be with you.

        I think ZABBIX SIA is planning to release that feature in the near future.

        Comment

        • emmanux
          Member
          Zabbix Certified Specialist
          • Mar 2013
          • 47

          #5
          Or, you can use my script. It creates templates in the new Zabbix Server, with the names of the hosts in the old one as hint. You need to apply those templates to the actual hosts in the new environment.

          https://gitlab.com/emmanux/zabbix-to...eb-migrator.pl
          Last edited by emmanux; 14-07-2015, 16:39.

          Comment

          • joanypony
            Junior Member
            • Dec 2015
            • 6

            #6
            Exporting template in Zabbix 2.2 with web scenarios

            Hi All,

            Re exporting the Web Scenarios - thanks emmanux for your script.

            I have another query - how does one export triggers/screens etc, associated with web scenarios?

            Or realistically, is the best way to create and export web scenarios plus associated components to try and automatically recreate every component via the Zabbix API?

            Regards,
            Joan

            Comment

            Working...