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.
974 lines
38 KiB
974 lines
38 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>Host1</name>
|
|
<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>Host2</name>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<interfaces>
|
|
<interface>
|
|
<type>SNMP</type>
|
|
<port>161</port>
|
|
<details>
|
|
<community>{$SNMP_COMMUNITY}</community>
|
|
</details>
|
|
<interface_ref>if1</interface_ref>
|
|
</interface>
|
|
</interfaces>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>Host3</host>
|
|
<name>Host3</name>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<interfaces>
|
|
<interface>
|
|
<type>IPMI</type>
|
|
<port>623</port>
|
|
<interface_ref>if1</interface_ref>
|
|
</interface>
|
|
</interfaces>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>Host4_ActiveProxy</host>
|
|
<name>Host4_ActiveProxy</name>
|
|
<proxy>
|
|
<name>ProxyA</name>
|
|
</proxy>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>Host5_PassiveProxy</host>
|
|
<name>Host5_PassiveProxy</name>
|
|
<proxy>
|
|
<name>ProxyP</name>
|
|
</proxy>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>HostInventory</host>
|
|
<name>HostInventory</name>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<inventory>
|
|
<type>aaaaaaaaaaaaaaaa</type>
|
|
<type_full>aaaaaaaaaaaaaaaa</type_full>
|
|
<name>aaaaaaaaaaaaaaaa</name>
|
|
<alias>aaaaaaaaaaaaaaaa</alias>
|
|
<os>aaaaaaaaaaaaaaaa</os>
|
|
<os_full>aaaaaaaaaaaaaaaa</os_full>
|
|
<os_short>aaaaaaaaaaaaaaaa</os_short>
|
|
<serialno_a>aaaaaaaaaaaaaaaa</serialno_a>
|
|
<serialno_b>aaaaaaaaaaaaaaaa</serialno_b>
|
|
<tag>aaaaaaaaaaaaaaaa</tag>
|
|
<asset_tag>aaaaaaaaaaaaaaaa</asset_tag>
|
|
<macaddress_a>aaaaaaaaaaaaaaaa</macaddress_a>
|
|
<macaddress_b>aaaaaaaaaaaaaaaa</macaddress_b>
|
|
<hardware>aaaaaaaaaaaaaaaa</hardware>
|
|
<hardware_full>aaaaaaaaaaaaaaaa</hardware_full>
|
|
<software>aaaaaaaaaaaaaaaa</software>
|
|
<software_full>aaaaaaaaaaaaaaaa</software_full>
|
|
<software_app_a>aaaaaaaaaaaaaaaa</software_app_a>
|
|
<software_app_b>aaaaaaaaaaaaaaaa</software_app_b>
|
|
<software_app_c>aaaaaaaaaaaaaaaa</software_app_c>
|
|
<software_app_d>aaaaaaaaaaaaaaaa</software_app_d>
|
|
<software_app_e>aaaaaaaaaaaaaaaa</software_app_e>
|
|
<contact>aaaaaaaaaaaaaaaa</contact>
|
|
<location>aaaaaaaaaaaaaaaa</location>
|
|
<location_lat>aaaaaaaaaaaaaaaa</location_lat>
|
|
<location_lon>aaaaaaaaaaaaaaaa</location_lon>
|
|
<notes>aaaaaaaaaaaaaaaa</notes>
|
|
<chassis>aaaaaaaaaaaaaaaa</chassis>
|
|
<model>aaaaaaaaaaaaaaaa</model>
|
|
<hw_arch>aaaaaaaaaaaaaaaa</hw_arch>
|
|
<vendor>aaaaaaaaaaaaaaaa</vendor>
|
|
<contract_number>aaaaaaaaaaaaaaaa</contract_number>
|
|
<installer_name>aaaaaaaaaaaaaaaa</installer_name>
|
|
<deployment_status>aaaaaaaaaaaaaaaa</deployment_status>
|
|
<url_a>aaaaaaaaaaaaaaaa</url_a>
|
|
<url_b>aaaaaaaaaaaaaaaa</url_b>
|
|
<url_c>aaaaaaaaaaaaaaaa</url_c>
|
|
<host_networks>aaaaaaaaaaaaaaaa</host_networks>
|
|
<host_netmask>aaaaaaaaaaaaaaaa</host_netmask>
|
|
<host_router>aaaaaaaaaaaaaaaa</host_router>
|
|
<oob_ip>aaaaaaaaaaaaaaaa</oob_ip>
|
|
<oob_netmask>aaaaaaaaaaaaaaaa</oob_netmask>
|
|
<oob_router>aaaaaaaaaaaaaaaa</oob_router>
|
|
<date_hw_purchase>aaaaaaaaaaaaaaaa</date_hw_purchase>
|
|
<date_hw_install>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</date_hw_install>
|
|
<date_hw_expiry>aaaaaaaaaaaaaaaa</date_hw_expiry>
|
|
<date_hw_decomm>aaaaaaaaaaaaaaaa</date_hw_decomm>
|
|
<site_address_a>aaaaaaaaaaaaaaaa</site_address_a>
|
|
<site_address_b>aaaaaaaaaaaaaaaa</site_address_b>
|
|
<site_address_c>aaaaaaaaaaaaaaaa</site_address_c>
|
|
<site_city>aaaaaaaaaaaaaaaa</site_city>
|
|
<site_state>aaaaaaaaaaaaaaaa</site_state>
|
|
<site_country>aaaaaaaaaaaaaaaa</site_country>
|
|
<site_zip>aaaaaaaaaaaaaaaa</site_zip>
|
|
<site_rack>aaaaaaaaaaaaaaaa</site_rack>
|
|
<site_notes>aaaaaaaaaaaaaaaa</site_notes>
|
|
<poc_1_name>aaaaaaaaaaaaaaaa</poc_1_name>
|
|
<poc_1_email>aaaaaaaaaaaaaaaa</poc_1_email>
|
|
<poc_1_phone_a>aaaaaaaaaaaaaaaa</poc_1_phone_a>
|
|
<poc_1_phone_b>aaaaaaaaaaaaaaaa</poc_1_phone_b>
|
|
<poc_1_cell>aaaaaaaaaaaaaaaa</poc_1_cell>
|
|
<poc_1_screen>aaaaaaaaaaaaaaaa</poc_1_screen>
|
|
<poc_1_notes>aaaaaaaaaaaaaaaa</poc_1_notes>
|
|
<poc_2_name>aaaaaaaaaaaaaaaa</poc_2_name>
|
|
<poc_2_email>aaaaaaaaaaaaaaaa</poc_2_email>
|
|
<poc_2_phone_a>aaaaaaaaaaaaaaaa</poc_2_phone_a>
|
|
<poc_2_phone_b>aaaaaaaaaaaaaaaa</poc_2_phone_b>
|
|
<poc_2_cell>aaaaaaaaaaaaaaaa</poc_2_cell>
|
|
<poc_2_screen>aaaaaaaaaaaaaaaa</poc_2_screen>
|
|
<poc_2_notes>aaaaaaaaaaaaaaaa</poc_2_notes>
|
|
</inventory>
|
|
</host>
|
|
<host>
|
|
<host>HostInventoryAutomatic</host>
|
|
<name>HostInventoryAutomatic</name>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<interfaces>
|
|
<interface>
|
|
<ip>127.0.0.111</ip>
|
|
<interface_ref>if1</interface_ref>
|
|
</interface>
|
|
</interfaces>
|
|
<items>
|
|
<item>
|
|
<name>Hostname</name>
|
|
<key>agent.hostname</key>
|
|
<trends>0</trends>
|
|
<delay>15s</delay>
|
|
<value_type>CHAR</value_type>
|
|
<inventory_link>NAME</inventory_link>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>Chassis</name>
|
|
<key>system.hw.chassis[model]</key>
|
|
<trends>0</trends>
|
|
<value_type>CHAR</value_type>
|
|
<inventory_link>HARDWARE_FULL</inventory_link>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>Uname</name>
|
|
<key>system.uname</key>
|
|
<trends>0</trends>
|
|
<value_type>CHAR</value_type>
|
|
<inventory_link>OS</inventory_link>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
</items>
|
|
<inventory_mode>AUTOMATIC</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>HostMultilevelTmpl</host>
|
|
<name>HostMultilevelTmpl</name>
|
|
<templates>
|
|
<template>
|
|
<name>bbbtmpl</name>
|
|
</template>
|
|
</templates>
|
|
<groups>
|
|
<group>
|
|
<name>HG1/Subgroup</name>
|
|
</group>
|
|
</groups>
|
|
<interfaces>
|
|
<interface>
|
|
<ip>127.0.0.122</ip>
|
|
<interface_ref>if1</interface_ref>
|
|
</interface>
|
|
</interfaces>
|
|
<items>
|
|
<item>
|
|
<name>ItemWithMultilevelMacros</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>HostWithDiscovery</name>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<discovery_rules>
|
|
<discovery_rule>
|
|
<name>DiscoveryRule</name>
|
|
<type>SCRIPT</type>
|
|
<key>dcrule</key>
|
|
<delay>22s</delay>
|
|
<params>return "";</params>
|
|
<filter>
|
|
<conditions>
|
|
<condition>
|
|
<macro>{#X}</macro>
|
|
<value>Y</value>
|
|
<formulaid>A</formulaid>
|
|
</condition>
|
|
</conditions>
|
|
</filter>
|
|
<item_prototypes>
|
|
<item_prototype>
|
|
<name>ItemProto</name>
|
|
<type>CALCULATED</type>
|
|
<key>proto[{#X}]</key>
|
|
<params>1</params>
|
|
<trigger_prototypes>
|
|
<trigger_prototype>
|
|
<expression>last(/HostWithDiscovery/proto[{#X}])=1</expression>
|
|
<name>TriggerPrototype</name>
|
|
<priority>DISASTER</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>$.a</path>
|
|
</lld_macro_path>
|
|
</lld_macro_paths>
|
|
<preprocessing>
|
|
<step>
|
|
<type>STR_REPLACE</type>
|
|
<parameters>
|
|
<parameter>a</parameter>
|
|
<parameter>b</parameter>
|
|
</parameters>
|
|
</step>
|
|
</preprocessing>
|
|
<overrides>
|
|
<override>
|
|
<name>Override</name>
|
|
<step>1</step>
|
|
<stop>STOP</stop>
|
|
<filter>
|
|
<conditions>
|
|
<condition>
|
|
<macro>{#S}</macro>
|
|
<value>s</value>
|
|
<formulaid>A</formulaid>
|
|
</condition>
|
|
</conditions>
|
|
</filter>
|
|
<operations>
|
|
<operation>
|
|
<operationobject>ITEM_PROTOTYPE</operationobject>
|
|
<value>991</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>HostWithItems</name>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<interfaces>
|
|
<interface>
|
|
<interface_ref>if1</interface_ref>
|
|
</interface>
|
|
<interface>
|
|
<type>SNMP</type>
|
|
<port>161</port>
|
|
<details>
|
|
<community>{$SNMP_COMMUNITY}</community>
|
|
</details>
|
|
<interface_ref>if2</interface_ref>
|
|
</interface>
|
|
<interface>
|
|
<type>IPMI</type>
|
|
<port>623</port>
|
|
<interface_ref>if3</interface_ref>
|
|
</interface>
|
|
<interface>
|
|
<type>SNMP</type>
|
|
<port>20161</port>
|
|
<default>NO</default>
|
|
<details>
|
|
<version>SNMPV3</version>
|
|
<max_repetitions>11</max_repetitions>
|
|
</details>
|
|
<interface_ref>if4</interface_ref>
|
|
</interface>
|
|
<interface>
|
|
<type>SNMP</type>
|
|
<port>21161</port>
|
|
<default>NO</default>
|
|
<details>
|
|
<community>public</community>
|
|
<max_repetitions>11</max_repetitions>
|
|
</details>
|
|
<interface_ref>if5</interface_ref>
|
|
</interface>
|
|
</interfaces>
|
|
<items>
|
|
<item>
|
|
<name>NormalItemPreproc</name>
|
|
<key>agent.hostmetadata</key>
|
|
<trends>0</trends>
|
|
<value_type>CHAR</value_type>
|
|
<preprocessing>
|
|
<step>
|
|
<type>STR_REPLACE</type>
|
|
<parameters>
|
|
<parameter>2</parameter>
|
|
<parameter>3</parameter>
|
|
</parameters>
|
|
</step>
|
|
</preprocessing>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>Agent ping (active)</name>
|
|
<type>ZABBIX_ACTIVE</type>
|
|
<key>agent.ping</key>
|
|
<tags>
|
|
<tag>
|
|
<tag>qw</tag>
|
|
<value>we</value>
|
|
</tag>
|
|
</tags>
|
|
<triggers>
|
|
<trigger>
|
|
<expression>now()>1 and baselinedev(/HostWithItems/agent.ping,1M:now/M,"h",2)=0</expression>
|
|
<name>TimeBasedAndOrdFuncTrigger</name>
|
|
</trigger>
|
|
</triggers>
|
|
</item>
|
|
<item>
|
|
<name>Agent version (passive)</name>
|
|
<key>agent.version</key>
|
|
<trends>0</trends>
|
|
<value_type>CHAR</value_type>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>Calculated</name>
|
|
<type>CALCULATED</type>
|
|
<key>calc</key>
|
|
<params>1+1</params>
|
|
<triggers>
|
|
<trigger>
|
|
<expression>last(/HostWithItems/calc)=1</expression>
|
|
<name>DepTrigger</name>
|
|
<priority>DISASTER</priority>
|
|
<manual_close>YES</manual_close>
|
|
<dependencies>
|
|
<dependency>
|
|
<name>SimpleTrigger</name>
|
|
<expression>last(/HostWithItems/calc)=1</expression>
|
|
</dependency>
|
|
</dependencies>
|
|
</trigger>
|
|
<trigger>
|
|
<expression>last(/HostWithItems/calc)=1</expression>
|
|
<name>SimpleTrigger</name>
|
|
<event_name>SimpleTriggerEvent</event_name>
|
|
<priority>WARNING</priority>
|
|
<manual_close>YES</manual_close>
|
|
<tags>
|
|
<tag>
|
|
<tag>aae</tag>
|
|
<value>bbeq</value>
|
|
</tag>
|
|
</tags>
|
|
</trigger>
|
|
<trigger>
|
|
<expression>last(/HostWithItems/calc)=2</expression>
|
|
<name>SimpleTrigger2</name>
|
|
<event_name>SimpleTriggerEvent2</event_name>
|
|
<priority>DISASTER</priority>
|
|
<manual_close>YES</manual_close>
|
|
<tags>
|
|
<tag>
|
|
<tag>aae</tag>
|
|
<value>bxisxbe</value>
|
|
</tag>
|
|
</tags>
|
|
</trigger>
|
|
</triggers>
|
|
</item>
|
|
<item>
|
|
<name>CalculatedAsAggregated</name>
|
|
<type>CALCULATED</type>
|
|
<key>calc_as_aggr</key>
|
|
<params>sum(last_foreach(/*/agent.ping?[group="HG1"]))</params>
|
|
</item>
|
|
<item>
|
|
<name>CalculatedPreproc</name>
|
|
<type>CALCULATED</type>
|
|
<key>calc_preproc</key>
|
|
<params>1</params>
|
|
<preprocessing>
|
|
<step>
|
|
<type>STR_REPLACE</type>
|
|
<parameters>
|
|
<parameter>994</parameter>
|
|
<parameter>995</parameter>
|
|
</parameters>
|
|
</step>
|
|
</preprocessing>
|
|
</item>
|
|
<item>
|
|
<name>ODBC monitor</name>
|
|
<type>ODBC</type>
|
|
<key>db.odbc.select[x,y,z]</key>
|
|
<params>select null;</params>
|
|
</item>
|
|
<item>
|
|
<name>Dependent item</name>
|
|
<type>DEPENDENT</type>
|
|
<key>depitem</key>
|
|
<delay>0</delay>
|
|
<master_item>
|
|
<key>calc</key>
|
|
</master_item>
|
|
</item>
|
|
<item>
|
|
<name>DepItemOnCalcPreproc</name>
|
|
<type>DEPENDENT</type>
|
|
<key>depitem_calc_preproc</key>
|
|
<delay>0</delay>
|
|
<preprocessing>
|
|
<step>
|
|
<type>STR_REPLACE</type>
|
|
<parameters>
|
|
<parameter>a</parameter>
|
|
<parameter>b</parameter>
|
|
</parameters>
|
|
</step>
|
|
</preprocessing>
|
|
<master_item>
|
|
<key>calc</key>
|
|
</master_item>
|
|
</item>
|
|
<item>
|
|
<name>DepItemOnDepCalcItem</name>
|
|
<type>DEPENDENT</type>
|
|
<key>depitem_depitem</key>
|
|
<delay>0</delay>
|
|
<preprocessing>
|
|
<step>
|
|
<type>STR_REPLACE</type>
|
|
<parameters>
|
|
<parameter>2</parameter>
|
|
<parameter>22</parameter>
|
|
</parameters>
|
|
</step>
|
|
</preprocessing>
|
|
<master_item>
|
|
<key>depitem_calc_preproc</key>
|
|
</master_item>
|
|
</item>
|
|
<item>
|
|
<name>DepItemOnNormalDepItem</name>
|
|
<type>DEPENDENT</type>
|
|
<key>depitem_depitem_normal</key>
|
|
<delay>0</delay>
|
|
<preprocessing>
|
|
<step>
|
|
<type>STR_REPLACE</type>
|
|
<parameters>
|
|
<parameter>aa</parameter>
|
|
<parameter>bb</parameter>
|
|
</parameters>
|
|
</step>
|
|
</preprocessing>
|
|
<master_item>
|
|
<key>depitem_normalitem</key>
|
|
</master_item>
|
|
</item>
|
|
<item>
|
|
<name>DepItemOnInternalItem</name>
|
|
<type>DEPENDENT</type>
|
|
<key>depitem_internal</key>
|
|
<delay>0</delay>
|
|
<preprocessing>
|
|
<step>
|
|
<type>STR_REPLACE</type>
|
|
<parameters>
|
|
<parameter>992</parameter>
|
|
<parameter>993</parameter>
|
|
</parameters>
|
|
</step>
|
|
</preprocessing>
|
|
<master_item>
|
|
<key>zabbix[boottime]</key>
|
|
</master_item>
|
|
</item>
|
|
<item>
|
|
<name>DepItemOnNormalItem</name>
|
|
<type>DEPENDENT</type>
|
|
<key>depitem_normalitem</key>
|
|
<delay>0</delay>
|
|
<preprocessing>
|
|
<step>
|
|
<type>REGEX</type>
|
|
<parameters>
|
|
<parameter>c</parameter>
|
|
<parameter>d</parameter>
|
|
</parameters>
|
|
</step>
|
|
</preprocessing>
|
|
<master_item>
|
|
<key>agent.ping</key>
|
|
</master_item>
|
|
</item>
|
|
<item>
|
|
<name>DepItemOnInternalItemPreproc</name>
|
|
<type>DEPENDENT</type>
|
|
<key>depitem_normal_preproc</key>
|
|
<delay>0</delay>
|
|
<preprocessing>
|
|
<step>
|
|
<type>STR_REPLACE</type>
|
|
<parameters>
|
|
<parameter>4</parameter>
|
|
<parameter>5</parameter>
|
|
</parameters>
|
|
</step>
|
|
</preprocessing>
|
|
<master_item>
|
|
<key>agent.version</key>
|
|
</master_item>
|
|
</item>
|
|
<item>
|
|
<name>External check</name>
|
|
<type>EXTERNAL</type>
|
|
<key>extcheck</key>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>HTTP agent</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>b</value>
|
|
</query_field>
|
|
</query_fields>
|
|
<posts>test</posts>
|
|
<headers>
|
|
<header>
|
|
<name>x</name>
|
|
<value>y</value>
|
|
</header>
|
|
</headers>
|
|
<retrieve_mode>BOTH</retrieve_mode>
|
|
<output_format>JSON</output_format>
|
|
<allow_traps>YES</allow_traps>
|
|
</item>
|
|
<item>
|
|
<name>Simple check</name>
|
|
<type>SIMPLE</type>
|
|
<key>icmpping[127.0.0.1]</key>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>IPMI agent</name>
|
|
<type>IPMI</type>
|
|
<key>ipmi.get</key>
|
|
<trends>0</trends>
|
|
<value_type>TEXT</value_type>
|
|
<ipmi_sensor>123</ipmi_sensor>
|
|
<interface_ref>if3</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>ItemPreproc</name>
|
|
<type>CALCULATED</type>
|
|
<key>preproc</key>
|
|
<params>1</params>
|
|
<preprocessing>
|
|
<step>
|
|
<type>REGEX</type>
|
|
<parameters>
|
|
<parameter>.*</parameter>
|
|
<parameter>v</parameter>
|
|
</parameters>
|
|
<error_handler>CUSTOM_VALUE</error_handler>
|
|
<error_handler_params>fail</error_handler_params>
|
|
</step>
|
|
</preprocessing>
|
|
</item>
|
|
<item>
|
|
<name>Script</name>
|
|
<type>SCRIPT</type>
|
|
<key>script</key>
|
|
<params>return "1";</params>
|
|
<inventory_link>NAME</inventory_link>
|
|
<parameters>
|
|
<parameter>
|
|
<name>aaa</name>
|
|
<value>bbb</value>
|
|
</parameter>
|
|
</parameters>
|
|
</item>
|
|
<item>
|
|
<name>SNMP trap</name>
|
|
<type>SNMP_TRAP</type>
|
|
<key>snmptrap.fallback</key>
|
|
<delay>0</delay>
|
|
<interface_ref>if2</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>SNMP agent</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 agent</name>
|
|
<type>SSH</type>
|
|
<key>ssh.run[x,localhost]</key>
|
|
<params>echo</params>
|
|
<username>password</username>
|
|
<password>password</password>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>Telnet agent</name>
|
|
<type>TELNET</type>
|
|
<key>telnet.run[a,localhost]</key>
|
|
<params>echo</params>
|
|
<username>username</username>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>Zabbix trapper</name>
|
|
<type>TRAP</type>
|
|
<key>trap</key>
|
|
<delay>0</delay>
|
|
</item>
|
|
<item>
|
|
<name>delay_globmacro</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>Zabbix internal</name>
|
|
<type>INTERNAL</type>
|
|
<key>zabbix[boottime]</key>
|
|
</item>
|
|
<item>
|
|
<name>walk</name>
|
|
<type>SNMP_AGENT</type>
|
|
<snmp_oid>walk[.1.3.6.1.2.1.1.9.1.3]</snmp_oid>
|
|
<key>walk</key>
|
|
<trends>0</trends>
|
|
<value_type>TEXT</value_type>
|
|
<interface_ref>if4</interface_ref>
|
|
</item>
|
|
</items>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>HostWithMacros</host>
|
|
<name>HostWithMacros</name>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<interfaces>
|
|
<interface>
|
|
<ip>127.0.0.123</ip>
|
|
<interface_ref>if1</interface_ref>
|
|
</interface>
|
|
</interfaces>
|
|
<items>
|
|
<item>
|
|
<name>item1</name>
|
|
<type>CALCULATED</type>
|
|
<key>itm</key>
|
|
<trends>0</trends>
|
|
<value_type>TEXT</value_type>
|
|
<params>1</params>
|
|
<triggers>
|
|
<trigger>
|
|
<expression>bitlength(last(/HostWithMacros/itm))>bitlength({$HM1})</expression>
|
|
<name>trigger with macro</name>
|
|
</trigger>
|
|
</triggers>
|
|
</item>
|
|
<item>
|
|
<name>ItemWithGlobalAndHostMacro</name>
|
|
<key>sensor[{$UU},{$HM1}]</key>
|
|
<delay>{$GLOBDELAY}</delay>
|
|
<value_type>FLOAT</value_type>
|
|
<interface_ref>if1</interface_ref>
|
|
</item>
|
|
<item>
|
|
<name>ItemWithMacro</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>hm1</value>
|
|
</macro>
|
|
</macros>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>HostWithTags</host>
|
|
<name>HostWithTags</name>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<tags>
|
|
<tag>
|
|
<tag>aaa</tag>
|
|
<value>bbb</value>
|
|
</tag>
|
|
<tag>
|
|
<tag>ccc</tag>
|
|
<value>ddd</value>
|
|
</tag>
|
|
<tag>
|
|
<tag>macro</tag>
|
|
<value>{$MACRO}</value>
|
|
</tag>
|
|
</tags>
|
|
<macros>
|
|
<macro>
|
|
<macro>{$MACRO}</macro>
|
|
<value>macro</value>
|
|
</macro>
|
|
</macros>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>HostWithTemplate</host>
|
|
<name>HostWithTemplate</name>
|
|
<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>HostWithWebScenario</name>
|
|
<groups>
|
|
<group>
|
|
<name>HG1</name>
|
|
</group>
|
|
</groups>
|
|
<items>
|
|
<item>
|
|
<name>DepItemOnWebScenario</name>
|
|
<type>DEPENDENT</type>
|
|
<key>dep_webscenario</key>
|
|
<delay>0</delay>
|
|
<master_item>
|
|
<key>web.test.in[WebScenario,,bps]</key>
|
|
</master_item>
|
|
</item>
|
|
</items>
|
|
<httptests>
|
|
<httptest>
|
|
<name>WebScenario</name>
|
|
<http_proxy>127.0.0.2</http_proxy>
|
|
<variables>
|
|
<variable>
|
|
<name>{a}</name>
|
|
<value>b</value>
|
|
</variable>
|
|
</variables>
|
|
<headers>
|
|
<header>
|
|
<name>c</name>
|
|
<value>d</value>
|
|
</header>
|
|
</headers>
|
|
<steps>
|
|
<step>
|
|
<name>Step1</name>
|
|
<url>localhost/aaa</url>
|
|
<query_fields>
|
|
<query_field>
|
|
<name>qwe</name>
|
|
<value>ert</value>
|
|
</query_field>
|
|
</query_fields>
|
|
<posts>asdf=zxcv</posts>
|
|
<variables>
|
|
<variable>
|
|
<name>{A}</name>
|
|
<value>{A}</value>
|
|
</variable>
|
|
</variables>
|
|
<headers>
|
|
<header>
|
|
<name>rtyu</name>
|
|
<value>ghjk</value>
|
|
</header>
|
|
</headers>
|
|
<retrieve_mode>BOTH</retrieve_mode>
|
|
<timeout>21s</timeout>
|
|
<required>pattern</required>
|
|
<status_codes>201</status_codes>
|
|
</step>
|
|
</steps>
|
|
</httptest>
|
|
</httptests>
|
|
<inventory_mode>DISABLED</inventory_mode>
|
|
</host>
|
|
<host>
|
|
<host>HostWithComprehensiveTemplate</host>
|
|
<name>HostWithComprehensiveTemplate</name>
|
|
<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.1</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>AUTOMATIC</inventory_mode>
|
|
</host>
|
|
</hosts>
|
|
</zabbix_export>
|