You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1024 lines
39 KiB
1024 lines
39 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<zabbix_export>
|
|
<version>6.4</version>
|
|
<host_groups>
|
|
<host_group>
|
|
<uuid>c9ad86935aa14454a99f3bb442dccb2c</uuid>
|
|
<name>HG1</name>
|
|
</host_group>
|
|
<host_group>
|
|
<uuid>9a4a9554205541f1bb119cf1cfa3dfd4</uuid>
|
|
<name>HG1/Subgroup</name>
|
|
</host_group>
|
|
</host_groups>
|
|
<hosts>
|
|
<host>
|
|
<host>Host1</host>
|
|
<name>Host1a</name>
|
|
<proxy>
|
|
<name>Proxy</name>
|
|
</proxy>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<interfaces>
|
|
<interface>
|
|
<interface_ref>if1</interface_ref>
|
|
</interface>
|
|
</interfaces>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>Host2</host>
|
|
<name>Host2a</name>
|
|
<proxy>
|
|
<name>Proxy</name>
|
|
</proxy>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<interfaces>
|
|
<interface>
|
|
<type>SNMP</type>
|
|
<port>1611</port>
|
|
<details>
|
|
<community>public</community>
|
|
</details>
|
|
<interface_ref>if1</interface_ref>
|
|
</interface>
|
|
</interfaces>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>Host3</host>
|
|
<name>Host3a</name>
|
|
<proxy>
|
|
<name>Proxy</name>
|
|
</proxy>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<interfaces>
|
|
<interface>
|
|
<type>IPMI</type>
|
|
<port>624</port>
|
|
<interface_ref>if1</interface_ref>
|
|
</interface>
|
|
</interfaces>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>Host4</host>
|
|
<name>Host4a</name>
|
|
<proxy>
|
|
<name>Proxy</name>
|
|
</proxy>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>Host5</host>
|
|
<name>Host5a</name>
|
|
<proxy>
|
|
<name>Proxy</name>
|
|
</proxy>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>HostInventory</host>
|
|
<name>HostInventorya</name>
|
|
<proxy>
|
|
<name>Proxy</name>
|
|
</proxy>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<inventory>
|
|
<type>bbbbbbbb</type>
|
|
<type_full>bbbbbbbb</type_full>
|
|
<name>bbbbbbbb</name>
|
|
<alias>bbbbbbbb</alias>
|
|
<os>bbbbbbbb</os>
|
|
<os_full>bbbbbbbb</os_full>
|
|
<os_short>bbbbbbbb</os_short>
|
|
<serialno_a>bbbbbbbb</serialno_a>
|
|
<serialno_b>bbbbbbbb</serialno_b>
|
|
<tag>bbbbbbbb</tag>
|
|
<asset_tag>bbbbbbbb</asset_tag>
|
|
<macaddress_a>bbbbbbbb</macaddress_a>
|
|
<macaddress_b>bbbbbbbb</macaddress_b>
|
|
<hardware>bbbbbbbb</hardware>
|
|
<hardware_full>bbbbbbbb</hardware_full>
|
|
<software>bbbbbbbb</software>
|
|
<software_full>bbbbbbbb</software_full>
|
|
<software_app_a>bbbbbbbb</software_app_a>
|
|
<software_app_b>bbbbbbbb</software_app_b>
|
|
<software_app_c>bbbbbbbb</software_app_c>
|
|
<software_app_d>bbbbbbbb</software_app_d>
|
|
<software_app_e>bbbbbbbb</software_app_e>
|
|
<contact>bbbbbbbb</contact>
|
|
<location>bbbbbbbb</location>
|
|
<location_lat>bbbbbbbb</location_lat>
|
|
<location_lon>bbbbbbbb</location_lon>
|
|
<notes>bbbbbbbb</notes>
|
|
<chassis>bbbbbbbb</chassis>
|
|
<model>bbbbbbbb</model>
|
|
<hw_arch>bbbbbbbb</hw_arch>
|
|
<vendor>bbbbbbbb</vendor>
|
|
<contract_number>bbbbbbbb</contract_number>
|
|
<installer_name>bbbbbbbb</installer_name>
|
|
<deployment_status>bbbbbbbb</deployment_status>
|
|
<url_a>bbbbbbbb</url_a>
|
|
<url_b>bbbbbbbb</url_b>
|
|
<url_c>bbbbbbbb</url_c>
|
|
<host_networks>bbbbbbbb</host_networks>
|
|
<host_netmask>bbbbbbbb</host_netmask>
|
|
<host_router>bbbbbbbb</host_router>
|
|
<oob_ip>bbbbbbbb</oob_ip>
|
|
<oob_netmask>bbbbbbbb</oob_netmask>
|
|
<oob_router>bbbbbbbb</oob_router>
|
|
<date_hw_purchase>bbbbbbbb</date_hw_purchase>
|
|
<date_hw_install>bbbbbbbbbbbbbbbb</date_hw_install>
|
|
<date_hw_expiry>bbbbbbbb</date_hw_expiry>
|
|
<date_hw_decomm>bbbbbbbb</date_hw_decomm>
|
|
<site_address_a>bbbbbbbb</site_address_a>
|
|
<site_address_b>bbbbbbbb</site_address_b>
|
|
<site_address_c>bbbbbbbb</site_address_c>
|
|
<site_city>bbbbbbbb</site_city>
|
|
<site_state>bbbbbbbb</site_state>
|
|
<site_country>bbbbbbbb</site_country>
|
|
<site_zip>bbbbbbbb</site_zip>
|
|
<site_rack>bbbbbbbb</site_rack>
|
|
<site_notes>bbbbbbbb</site_notes>
|
|
<poc_1_name>bbbbbbbb</poc_1_name>
|
|
<poc_1_email>bbbbbbbb</poc_1_email>
|
|
<poc_1_phone_a>bbbbbbbb</poc_1_phone_a>
|
|
<poc_1_phone_b>bbbbbbbb</poc_1_phone_b>
|
|
<poc_1_cell>bbbbbbbb</poc_1_cell>
|
|
<poc_1_screen>bbbbbbbb</poc_1_screen>
|
|
<poc_1_notes>bbbbbbbb</poc_1_notes>
|
|
<poc_2_name>bbbbbbbb</poc_2_name>
|
|
<poc_2_email>bbbbbbbb</poc_2_email>
|
|
<poc_2_phone_a>bbbbbbbb</poc_2_phone_a>
|
|
<poc_2_phone_b>bbbbbbbb</poc_2_phone_b>
|
|
<poc_2_cell>bbbbbbbb</poc_2_cell>
|
|
<poc_2_screen>bbbbbbbb</poc_2_screen>
|
|
<poc_2_notes>bbbbbbbb</poc_2_notes>
|
|
</inventory>
|
|
</host>
|
|
<host>
|
|
<host>HostInventoryAutomatic</host>
|
|
<name>HostInventoryAutomatica</name>
|
|
<proxy>
|
|
<name>Proxy</name>
|
|
</proxy>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<interfaces>
|
|
<interface>
|
|
<ip>127.0.0.230</ip>
|
|
<interface_ref>if1</interface_ref>
|
|
</interface>
|
|
</interfaces>
|
|
<items>
|
|
<item>
|
|
<name>Hostname1</name>
|
|
<key>agent.hostname</key>
|
|
<trends>0</trends>
|
|
<delay>25s</delay>
|
|
<value_type>CHAR</value_type>
|
|
<inventory_link>NAME</inventory_link>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>Chassis1</name>
|
|
<key>system.hw.chassis[model]</key>
|
|
<trends>0</trends>
|
|
<delay>25s</delay>
|
|
<value_type>CHAR</value_type>
|
|
<inventory_link>HARDWARE_FULL</inventory_link>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>Uname1</name>
|
|
<key>system.uname</key>
|
|
<trends>0</trends>
|
|
<delay>25s</delay>
|
|
<value_type>CHAR</value_type>
|
|
<inventory_link>OS</inventory_link>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
</items>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>HostMultilevelTmpl</host>
|
|
<name>HostMultilevelTmpla</name>
|
|
<proxy>
|
|
<name>Proxy</name>
|
|
</proxy>
|
|
<templates>
|
|
<template>
|
|
<name>bbbtmpl</name>
|
|
</template>
|
|
</templates>
|
|
<groups>
|
|
<group>
|
|
<name>HG1/Subgroup</name>
|
|
</group>
|
|
</groups>
|
|
<interfaces>
|
|
<interface>
|
|
<ip>127.0.0.152</ip>
|
|
<interface_ref>if1</interface_ref>
|
|
</interface>
|
|
</interfaces>
|
|
<items>
|
|
<item>
|
|
<name>ItemWithMultilevelMacros11</name>
|
|
<key>vfs.dir.count[/tmp/{$UU},{$CHLDTMPLMACRO},{$PRNTTMPLMACRO}]</key>
|
|
<delay>{$PRNTTMPLMACRO}</delay>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
</items>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>HostWithDiscovery</host>
|
|
<name>HostWithDiscoverya</name>
|
|
<proxy>
|
|
<name>Proxy</name>
|
|
</proxy>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<discovery_rules>
|
|
<discovery_rule>
|
|
<name>DiscoveryRule</name>
|
|
<type>SCRIPT</type>
|
|
<key>dcrule</key>
|
|
<delay>25s</delay>
|
|
<params>return "";</params>
|
|
<filter>
|
|
<conditions>
|
|
<condition>
|
|
<macro>{#X}</macro>
|
|
<value>YA</value>
|
|
<formulaid>A</formulaid>
|
|
</condition>
|
|
</conditions>
|
|
</filter>
|
|
<item_prototypes>
|
|
<item_prototype>
|
|
<name>ItemProto1</name>
|
|
<type>CALCULATED</type>
|
|
<key>proto[{#X}]</key>
|
|
<params>1</params>
|
|
<trigger_prototypes>
|
|
<trigger_prototype>
|
|
<expression>last(/HostWithDiscovery/proto[{#X}])=2</expression>
|
|
<name>TriggerPrototype</name>
|
|
<priority>HIGH</priority>
|
|
<manual_close>YES</manual_close>
|
|
</trigger_prototype>
|
|
</trigger_prototypes>
|
|
</item_prototype>
|
|
</item_prototypes>
|
|
<host_prototypes>
|
|
<host_prototype>
|
|
<host>{#X}.HostPrototype</host>
|
|
<name>{#X}.HostPrototype</name>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
<group_links>
|
|
<group_link>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</group_link>
|
|
</group_links>
|
|
</host_prototype>
|
|
</host_prototypes>
|
|
<lld_macro_paths>
|
|
<lld_macro_path>
|
|
<lld_macro>{#X}</lld_macro>
|
|
<path>$.b</path>
|
|
</lld_macro_path>
|
|
</lld_macro_paths>
|
|
<preprocessing>
|
|
<step>
|
|
<type>STR_REPLACE</type>
|
|
<parameters>
|
|
<parameter>c</parameter>
|
|
<parameter>d</parameter>
|
|
</parameters>
|
|
</step>
|
|
</preprocessing>
|
|
<overrides>
|
|
<override>
|
|
<name>Override</name>
|
|
<step>1</step>
|
|
<stop>STOP</stop>
|
|
<filter>
|
|
<conditions>
|
|
<condition>
|
|
<macro>{#S}</macro>
|
|
<value>SSS</value>
|
|
<formulaid>A</formulaid>
|
|
</condition>
|
|
</conditions>
|
|
</filter>
|
|
<operations>
|
|
<operation>
|
|
<operationobject>ITEM_PROTOTYPE</operationobject>
|
|
<value>2</value>
|
|
<status>DISABLED</status>
|
|
<discover>NO_DISCOVER</discover>
|
|
</operation>
|
|
</operations>
|
|
</override>
|
|
</overrides>
|
|
</discovery_rule>
|
|
</discovery_rules>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>HostWithItems</host>
|
|
<name>HostWithItemsa</name>
|
|
<proxy>
|
|
<name>Proxy</name>
|
|
</proxy>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<interfaces>
|
|
<interface>
|
|
<interface_ref>if1</interface_ref>
|
|
</interface>
|
|
<interface>
|
|
<type>SNMP</type>
|
|
<port>1611</port>
|
|
<details>
|
|
<community>{$SNMP_COMMUNITY}</community>
|
|
</details>
|
|
<interface_ref>if2</interface_ref>
|
|
</interface>
|
|
<interface>
|
|
<type>IPMI</type>
|
|
<port>1623</port>
|
|
<interface_ref>if3</interface_ref>
|
|
</interface>
|
|
<interface>
|
|
<type>SNMP</type>
|
|
<port>20161</port>
|
|
<default>NO</default>
|
|
<details>
|
|
<version>SNMPV3</version>
|
|
<max_repetitions>12</max_repetitions>
|
|
</details>
|
|
<interface_ref>if4</interface_ref>
|
|
</interface>
|
|
<interface>
|
|
<type>SNMP</type>
|
|
<port>21161</port>
|
|
<default>NO</default>
|
|
<details>
|
|
<community>public1</community>
|
|
<max_repetitions>12</max_repetitions>
|
|
</details>
|
|
<interface_ref>if5</interface_ref>
|
|
</interface>
|
|
</interfaces>
|
|
<items>
|
|
<item>
|
|
<name>NormalItemPreproc11</name>
|
|
<key>agent.hostmetadata</key>
|
|
<trends>0</trends>
|
|
<delay>20s</delay>
|
|
<value_type>CHAR</value_type>
|
|
<preprocessing>
|
|
<step>
|
|
<type>STR_REPLACE</type>
|
|
<parameters>
|
|
<parameter>3</parameter>
|
|
<parameter>4</parameter>
|
|
</parameters>
|
|
</step>
|
|
</preprocessing>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>Agent ping (active)1</name>
|
|
<type>ZABBIX_ACTIVE</type>
|
|
<key>agent.ping</key>
|
|
<delay>20s</delay>
|
|
<tags>
|
|
<tag>
|
|
<tag>qw</tag>
|
|
<value>w1e</value>
|
|
</tag>
|
|
</tags>
|
|
<triggers>
|
|
<trigger>
|
|
<expression>now()>2 and baselinedev(/HostWithItems/agent.ping,1M:now/M,"h",3)=0</expression>
|
|
<name>TimeBasedAndOrdFuncTrigger</name>
|
|
<priority>HIGH</priority>
|
|
<description>HIGH</description>
|
|
</trigger>
|
|
</triggers>
|
|
</item>
|
|
<item>
|
|
<name>Agent version (1passive)</name>
|
|
<key>agent.version</key>
|
|
<delay>20s</delay>
|
|
<trends>0</trends>
|
|
<value_type>CHAR</value_type>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>alculated1</name>
|
|
<type>CALCULATED</type>
|
|
<key>calc</key>
|
|
<params>1+1+1</params>
|
|
<triggers>
|
|
<trigger>
|
|
<expression>last(/HostWithItems/calc)=2</expression>
|
|
<name>DepTrigger</name>
|
|
<priority>HIGH</priority>
|
|
<manual_close>YES</manual_close>
|
|
<description>HIGH</description>
|
|
<dependencies>
|
|
<dependency>
|
|
<name>SimpleTrigger2</name>
|
|
<expression>last(/HostWithItems/calc)=22</expression>
|
|
</dependency>
|
|
</dependencies>
|
|
</trigger>
|
|
<trigger>
|
|
<expression>last(/HostWithItems/calc)=2</expression>
|
|
<name>SimpleTrigger</name>
|
|
<event_name>SimpleTriggerEvent</event_name>
|
|
<priority>DISASTER</priority>
|
|
<manual_close>YES</manual_close>
|
|
<description>HIGH</description>
|
|
<tags>
|
|
<tag>
|
|
<tag>aae</tag>
|
|
<value>bbeq1</value>
|
|
</tag>
|
|
</tags>
|
|
</trigger>
|
|
<trigger>
|
|
<expression>last(/HostWithItems/calc)=22</expression>
|
|
<name>SimpleTrigger2</name>
|
|
<event_name>SimpleTriggerEvent2</event_name>
|
|
<priority>WARNING</priority>
|
|
<manual_close>YES</manual_close>
|
|
<description>HIGH</description>
|
|
<tags>
|
|
<tag>
|
|
<tag>aae1</tag>
|
|
<value>bxisxbe1</value>
|
|
</tag>
|
|
</tags>
|
|
</trigger>
|
|
</triggers>
|
|
</item>
|
|
<item>
|
|
<name>CalculatedAsAggregated1</name>
|
|
<type>CALCULATED</type>
|
|
<key>calc_as_aggr</key>
|
|
<params>sum(last_foreach(/*/agent.version?[group="HG1"]))</params>
|
|
</item>
|
|
<item>
|
|
<name>CalculatedPreproc1</name>
|
|
<type>CALCULATED</type>
|
|
<key>calc_preproc</key>
|
|
<params>1</params>
|
|
<preprocessing>
|
|
<step>
|
|
<type>STR_REPLACE</type>
|
|
<parameters>
|
|
<parameter>3</parameter>
|
|
<parameter>4</parameter>
|
|
</parameters>
|
|
</step>
|
|
</preprocessing>
|
|
</item>
|
|
<item>
|
|
<name>ODBC monito1r</name>
|
|
<type>ODBC</type>
|
|
<key>db.odbc.select[x,y,z]</key>
|
|
<params>select null from dual;</params>
|
|
</item>
|
|
<item>
|
|
<name>Dependent item1</name>
|
|
<type>DEPENDENT</type>
|
|
<key>depitem</key>
|
|
<delay>10s</delay>
|
|
<master_item>
|
|
<key>calc</key>
|
|
</master_item>
|
|
</item>
|
|
<item>
|
|
<name>DepItemOnCalcPreproc1</name>
|
|
<type>DEPENDENT</type>
|
|
<key>depitem_calc_preproc</key>
|
|
<delay>10s</delay>
|
|
<preprocessing>
|
|
<step>
|
|
<type>STR_REPLACE</type>
|
|
<parameters>
|
|
<parameter>aa</parameter>
|
|
<parameter>ab</parameter>
|
|
</parameters>
|
|
</step>
|
|
</preprocessing>
|
|
<master_item>
|
|
<key>calc</key>
|
|
</master_item>
|
|
</item>
|
|
<item>
|
|
<name>DepItemOnDepCalcItem1</name>
|
|
<type>DEPENDENT</type>
|
|
<key>depitem_depitem</key>
|
|
<delay>10s</delay>
|
|
<preprocessing>
|
|
<step>
|
|
<type>STR_REPLACE</type>
|
|
<parameters>
|
|
<parameter>3</parameter>
|
|
<parameter>322</parameter>
|
|
</parameters>
|
|
</step>
|
|
</preprocessing>
|
|
<master_item>
|
|
<key>depitem_calc_preproc</key>
|
|
</master_item>
|
|
</item>
|
|
<item>
|
|
<name>DepItemOnNormalDepItem1</name>
|
|
<type>DEPENDENT</type>
|
|
<key>depitem_depitem_normal</key>
|
|
<delay>10s</delay>
|
|
<preprocessing>
|
|
<step>
|
|
<type>STR_REPLACE</type>
|
|
<parameters>
|
|
<parameter>aa</parameter>
|
|
<parameter>bab</parameter>
|
|
</parameters>
|
|
</step>
|
|
</preprocessing>
|
|
<master_item>
|
|
<key>depitem_normalitem</key>
|
|
</master_item>
|
|
</item>
|
|
<item>
|
|
<name>Zabbix internal1</name>
|
|
<type>INTERNAL</type>
|
|
<key>zabbix[boottime]</key>
|
|
</item>
|
|
<item>
|
|
<name>DepItemOnInternalItem1</name>
|
|
<type>DEPENDENT</type>
|
|
<key>depitem_internal</key>
|
|
<delay>30s</delay>
|
|
<preprocessing>
|
|
<step>
|
|
<type>STR_REPLACE</type>
|
|
<parameters>
|
|
<parameter>1</parameter>
|
|
<parameter>2a</parameter>
|
|
</parameters>
|
|
</step>
|
|
</preprocessing>
|
|
<master_item>
|
|
<key>zabbix[boottime]</key>
|
|
</master_item>
|
|
</item>
|
|
<item>
|
|
<name>DepItemOnNormalItem1</name>
|
|
<type>DEPENDENT</type>
|
|
<key>depitem_normalitem</key>
|
|
<delay>30s</delay>
|
|
<preprocessing>
|
|
<step>
|
|
<type>REGEX</type>
|
|
<parameters>
|
|
<parameter>cd</parameter>
|
|
<parameter>dd</parameter>
|
|
</parameters>
|
|
</step>
|
|
</preprocessing>
|
|
<master_item>
|
|
<key>agent.ping</key>
|
|
</master_item>
|
|
</item>
|
|
<item>
|
|
<name>DepItemOnInternalItemPreproc1</name>
|
|
<type>DEPENDENT</type>
|
|
<key>depitem_normal_preproc</key>
|
|
<delay>10s</delay>
|
|
<preprocessing>
|
|
<step>
|
|
<type>STR_REPLACE</type>
|
|
<parameters>
|
|
<parameter>41</parameter>
|
|
<parameter>51</parameter>
|
|
</parameters>
|
|
</step>
|
|
</preprocessing>
|
|
<master_item>
|
|
<key>agent.version</key>
|
|
</master_item>
|
|
</item>
|
|
<item>
|
|
<name>External check1</name>
|
|
<type>EXTERNAL</type>
|
|
<key>extcheck</key>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>HTTP agent1</name>
|
|
<type>HTTP_AGENT</type>
|
|
<key>httpagent</key>
|
|
<authtype>BASIC</authtype>
|
|
<username>qqqqqqqqqqqqq</username>
|
|
<password>wwwwwwwwww</password>
|
|
<interface_ref>if1</interface_ref>
|
|
<url>localhost</url>
|
|
<query_fields>
|
|
<query_field>
|
|
<name>a</name>
|
|
<value>ba</value>
|
|
</query_field>
|
|
</query_fields>
|
|
<posts>test</posts>
|
|
<headers>
|
|
<header>
|
|
<name>x</name>
|
|
<value>yq</value>
|
|
</header>
|
|
</headers>
|
|
<retrieve_mode>BOTH</retrieve_mode>
|
|
<output_format>JSON</output_format>
|
|
<allow_traps>YES</allow_traps>
|
|
</item>
|
|
<item>
|
|
<name>Simple chec1k</name>
|
|
<type>SIMPLE</type>
|
|
<key>icmpping[127.1.0.1]</key>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>IPMI agent1</name>
|
|
<type>IPMI</type>
|
|
<key>ipmi.get</key>
|
|
<trends>0</trends>
|
|
<value_type>TEXT</value_type>
|
|
<ipmi_sensor>1234</ipmi_sensor>
|
|
<interface_ref>if3</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>ItemPreproc1</name>
|
|
<type>CALCULATED</type>
|
|
<key>preproc</key>
|
|
<params>1</params>
|
|
<preprocessing>
|
|
<step>
|
|
<type>REGEX</type>
|
|
<parameters>
|
|
<parameter>.*</parameter>
|
|
<parameter>vvv</parameter>
|
|
</parameters>
|
|
<error_handler>CUSTOM_VALUE</error_handler>
|
|
<error_handler_params>fail</error_handler_params>
|
|
</step>
|
|
</preprocessing>
|
|
</item>
|
|
<item>
|
|
<name>Script1</name>
|
|
<type>SCRIPT</type>
|
|
<key>script</key>
|
|
<params>return "1";</params>
|
|
<inventory_link>HARDWARE</inventory_link>
|
|
<parameters>
|
|
<parameter>
|
|
<name>aaa</name>
|
|
<value>bbbf</value>
|
|
</parameter>
|
|
</parameters>
|
|
</item>
|
|
<item>
|
|
<name>SNMP trap1</name>
|
|
<type>SNMP_TRAP</type>
|
|
<key>snmptrap.fallback</key>
|
|
<delay>10s</delay>
|
|
<interface_ref>if2</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>SNMP agent1</name>
|
|
<type>SNMP_AGENT</type>
|
|
<snmp_oid>SNMPv2-MIB::sysContact.0</snmp_oid>
|
|
<key>snmp_test</key>
|
|
<interface_ref>if2</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>SSH agent1</name>
|
|
<type>SSH</type>
|
|
<key>ssh.run[x,localhost]</key>
|
|
<params>echo</params>
|
|
<username>username</username>
|
|
<password>password1</password>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>Telnet agent1</name>
|
|
<type>TELNET</type>
|
|
<key>telnet.run[a,localhost]</key>
|
|
<params>echo</params>
|
|
<username>use1rname</username>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>Zabbix trapper1</name>
|
|
<type>TRAP</type>
|
|
<key>trap</key>
|
|
<delay>10s</delay>
|
|
</item>
|
|
<item>
|
|
<name>delay_globmacro11</name>
|
|
<key>vfs.file.get[/tmp/{$UU}]</key>
|
|
<delay>{$GLOBDELAY}</delay>
|
|
<trends>0</trends>
|
|
<value_type>TEXT</value_type>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>walk</name>
|
|
<type>SNMP_AGENT</type>
|
|
<snmp_oid>walk[.1.3.6.1.39]</snmp_oid>
|
|
<key>walk</key>
|
|
<trends>0</trends>
|
|
<value_type>TEXT</value_type>
|
|
<interface_ref>if5</interface_ref>
|
|
</item>
|
|
</items>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>HostWithMacros</host>
|
|
<name>HostWithMacrosa</name>
|
|
<proxy>
|
|
<name>Proxy</name>
|
|
</proxy>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<interfaces>
|
|
<interface>
|
|
<ip>127.0.0.223</ip>
|
|
<interface_ref>if1</interface_ref>
|
|
</interface>
|
|
</interfaces>
|
|
<items>
|
|
<item>
|
|
<name>item11</name>
|
|
<type>CALCULATED</type>
|
|
<key>itm</key>
|
|
<trends>0</trends>
|
|
<value_type>TEXT</value_type>
|
|
<params>1</params>
|
|
<triggers>
|
|
<trigger>
|
|
<expression>bytelength(last(/HostWithMacros/itm))>bytelength({$HM1})</expression>
|
|
<name>trigger with macro</name>
|
|
<description>HIGH</description>
|
|
</trigger>
|
|
</triggers>
|
|
</item>
|
|
<item>
|
|
<name>ItemWithGlobalAndHostMacro11</name>
|
|
<key>sensor[{$UU},{$HM1}]</key>
|
|
<delay>{$GLOBDELAY}</delay>
|
|
<value_type>FLOAT</value_type>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>ItemWithMacro1</name>
|
|
<key>vfs.file.get[/tmp/{$HM1}]</key>
|
|
<trends>0</trends>
|
|
<value_type>TEXT</value_type>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
</items>
|
|
<macros>
|
|
<macro>
|
|
<macro>{$HM1}</macro>
|
|
<value>hm1a</value>
|
|
</macro>
|
|
</macros>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>HostWithTags</host>
|
|
<name>HostWithTagsa</name>
|
|
<proxy>
|
|
<name>Proxy</name>
|
|
</proxy>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<tags>
|
|
<tag>
|
|
<tag>aaa</tag>
|
|
<value>bbba</value>
|
|
</tag>
|
|
<tag>
|
|
<tag>ccc</tag>
|
|
<value>dadd</value>
|
|
</tag>
|
|
<tag>
|
|
<tag>macro</tag>
|
|
<value>{$MACRO}</value>
|
|
</tag>
|
|
</tags>
|
|
<macros>
|
|
<macro>
|
|
<macro>{$MACRO}</macro>
|
|
<value>macroa</value>
|
|
</macro>
|
|
</macros>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>HostWithTemplate</host>
|
|
<name>HostWithTemplatea</name>
|
|
<proxy>
|
|
<name>Proxy</name>
|
|
</proxy>
|
|
<templates>
|
|
<template>
|
|
<name>SampleTemplate</name>
|
|
</template>
|
|
</templates>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>HostWithWebScenario</host>
|
|
<name>HostWithWebScenarioa</name>
|
|
<proxy>
|
|
<name>Proxy</name>
|
|
</proxy>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<items>
|
|
<item>
|
|
<name>DepItemOnWebScenario11</name>
|
|
<type>DEPENDENT</type>
|
|
<key>dep_webscenario</key>
|
|
<delay>20s</delay>
|
|
<master_item>
|
|
<key>web.test.in[WebScenario,,bps]</key>
|
|
</master_item>
|
|
</item>
|
|
</items>
|
|
<httptests>
|
|
<httptest>
|
|
<name>WebScenario</name>
|
|
<http_proxy>127.0.0.33</http_proxy>
|
|
<variables>
|
|
<variable>
|
|
<name>{a}</name>
|
|
<value>ba</value>
|
|
</variable>
|
|
</variables>
|
|
<headers>
|
|
<header>
|
|
<name>c</name>
|
|
<value>de</value>
|
|
</header>
|
|
</headers>
|
|
<steps>
|
|
<step>
|
|
<name>Step1</name>
|
|
<url>localhost/aaaa</url>
|
|
<query_fields>
|
|
<query_field>
|
|
<name>qwea</name>
|
|
<value>erta</value>
|
|
</query_field>
|
|
</query_fields>
|
|
<posts>asdf=zxcv</posts>
|
|
<variables>
|
|
<variable>
|
|
<name>{A}</name>
|
|
<value>{A}</value>
|
|
</variable>
|
|
</variables>
|
|
<headers>
|
|
<header>
|
|
<name>rtyau</name>
|
|
<value>ghajk</value>
|
|
</header>
|
|
</headers>
|
|
<retrieve_mode>BOTH</retrieve_mode>
|
|
<timeout>22s</timeout>
|
|
<required>pattern</required>
|
|
<status_codes>201</status_codes>
|
|
</step>
|
|
</steps>
|
|
</httptest>
|
|
</httptests>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>HostWithComprehensiveTemplate</host>
|
|
<name>HostWithComprehensiveTemplate1</name>
|
|
<proxy>
|
|
<name>Proxy</name>
|
|
</proxy>
|
|
<templates>
|
|
<template>
|
|
<name>ComprehensiveTemplate</name>
|
|
</template>
|
|
</templates>
|
|
<groups>
|
|
<group>
|
|
<name>HG1/Subgroup</name>
|
|
</group>
|
|
</groups>
|
|
<interfaces>
|
|
<interface>
|
|
<ip>127.0.1.1</ip>
|
|
<interface_ref>if1</interface_ref>
|
|
</interface>
|
|
<interface>
|
|
<type>SNMP</type>
|
|
<ip>127.0.1.3</ip>
|
|
<port>161</port>
|
|
<details>
|
|
<community>{$SNMP_COMMUNITY}</community>
|
|
</details>
|
|
<interface_ref>if2</interface_ref>
|
|
</interface>
|
|
<interface>
|
|
<type>IPMI</type>
|
|
<ip>127.0.1.1</ip>
|
|
<port>623</port>
|
|
<interface_ref>if4</interface_ref>
|
|
</interface>
|
|
<interface>
|
|
<type>JMX</type>
|
|
<ip>127.0.1.1</ip>
|
|
<port>12345</port>
|
|
<interface_ref>if3</interface_ref>
|
|
</interface>
|
|
</interfaces>
|
|
<macros>
|
|
<macro>
|
|
<macro>{$HM1}</macro>
|
|
<value>hm1b</value>
|
|
</macro>
|
|
</macros>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
</hosts>
|
|
</zabbix_export>
|