Batch build Zabbix screen XML file

Source: Internet
Author: User

Zabbix Bulk Import Screen script

Usage, sir into XML file, select Import Imports

In the text of the OPT directory, can be replaced by other, you can extrapolate

Of course, this method is not fast, but it is suitable for children's shoes that do not want to operate with APIs.

The best way to do this is to add screen through the API

#!/bin/bash #function: Import Zabbix opt partion screen #author: Itnihao #mail: itnihao@qq.com # www.bianceng.cn #date: 2013-03-22 cat >disk.xml << EOF <?xml version= "1.0" encoding= "UTF-8"?> <zabbix_export&    
    Gt    
        <version>2.0</version> <date>2013-03-22T02:34:22Z</date> <screens>    
            <screen> <name>opt</name>  

This article comes from "Itnihao Technology blog" blog, please be sure to keep this source http://itnihao.blog.51cto.com/1741976/1160323

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.