Hello,
I search forum for template dependency, but can't find solution.
I have installed Zabbix 2.0rc1 , where should be new functions.
We have this installation:
And I need trigger dependency in template.
I'm using hostgroups Servers, Routers1, Routers2, Switches, PCs
Hostgroup Servers contains Server1 .. Server X
...
Hostgroup PCs contains PC1 .. PC X
What I need is to create dependency in template, then link hosts to templates
status of PC1..4 depend on status of switch
status of Server depend on status of switch
status of switch depend on status of router2
status of router2 depend on status of router1
status of router1 depend of status of DSL line
I was able create this dependency in templates, but I can't link templates to hosts. I have this error
here are exported templates
Is there a solution ?
I search forum for template dependency, but can't find solution.
I have installed Zabbix 2.0rc1 , where should be new functions.
We have this installation:
And I need trigger dependency in template.
I'm using hostgroups Servers, Routers1, Routers2, Switches, PCs
Hostgroup Servers contains Server1 .. Server X
...
Hostgroup PCs contains PC1 .. PC X
What I need is to create dependency in template, then link hosts to templates
status of PC1..4 depend on status of switch
status of Server depend on status of switch
status of switch depend on status of router2
status of router2 depend on status of router1
status of router1 depend of status of DSL line
I was able create this dependency in templates, but I can't link templates to hosts. I have this error
Code:
Trigger in template [ server ] has dependency with trigger in template [ router2 ] [CTemplate.update -> CTemplate.massUpdate -> CTemplate.massAdd -> CTemplate.link]
Code:
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2012-03-14T14:25:50Z</date>
<groups>
<group>
<name>Templates_CS</name>
</group>
<group>
<name>test</name>
</group>
</groups>
<templates>
<template>
<template>router1</template>
<name>router1</name>
<groups>
<group>
<name>Templates_CS</name>
</group>
<group>
<name>test</name>
</group>
</groups>
<applications/>
<items>
<item>
<name>link_router1</name>
<type>0</type>
<snmp_community></snmp_community>
<multiplier>0</multiplier>
<snmp_oid></snmp_oid>
<key>icmpping[<ip>,<count>,<interval>,<size>,<timeout>]</key>
<delay>30</delay>
<history>90</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts></allowed_hosts>
<units></units>
<delta>0</delta>
<snmpv3_securityname></snmpv3_securityname>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authpassphrase></snmpv3_authpassphrase>
<snmpv3_privpassphrase></snmpv3_privpassphrase>
<formula>1</formula>
<delay_flex></delay_flex>
<params></params>
<ipmi_sensor></ipmi_sensor>
<data_type>0</data_type>
<authtype>0</authtype>
<username></username>
<password></password>
<publickey></publickey>
<privatekey></privatekey>
<port></port>
<description></description>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
</item>
</items>
<discovery_rules/>
<macros/>
<templates/>
<screens/>
</template>
<template>
<template>router2</template>
<name>router2</name>
<groups>
<group>
<name>Templates_CS</name>
</group>
<group>
<name>test</name>
</group>
</groups>
<applications/>
<items>
<item>
<name>link_router2</name>
<type>3</type>
<snmp_community></snmp_community>
<multiplier>0</multiplier>
<snmp_oid></snmp_oid>
<key>icmpping[<ip>,<count>,<interval>,<size>,<timeout>]</key>
<delay>30</delay>
<history>90</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts></allowed_hosts>
<units></units>
<delta>0</delta>
<snmpv3_securityname></snmpv3_securityname>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authpassphrase></snmpv3_authpassphrase>
<snmpv3_privpassphrase></snmpv3_privpassphrase>
<formula>1</formula>
<delay_flex></delay_flex>
<params></params>
<ipmi_sensor></ipmi_sensor>
<data_type>0</data_type>
<authtype>0</authtype>
<username></username>
<password></password>
<publickey></publickey>
<privatekey></privatekey>
<port></port>
<description></description>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
</item>
</items>
<discovery_rules/>
<macros/>
<templates/>
<screens/>
</template>
<template>
<template>server</template>
<name>server</name>
<groups>
<group>
<name>test</name>
</group>
</groups>
<applications/>
<items>
<item>
<name>server_ping</name>
<type>0</type>
<snmp_community></snmp_community>
<multiplier>0</multiplier>
<snmp_oid></snmp_oid>
<key>icmpping[<ip>,<count>,<interval>,<size>,<timeout>]</key>
<delay>30</delay>
<history>90</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts></allowed_hosts>
<units></units>
<delta>0</delta>
<snmpv3_securityname></snmpv3_securityname>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authpassphrase></snmpv3_authpassphrase>
<snmpv3_privpassphrase></snmpv3_privpassphrase>
<formula>1</formula>
<delay_flex></delay_flex>
<params></params>
<ipmi_sensor></ipmi_sensor>
<data_type>0</data_type>
<authtype>0</authtype>
<username></username>
<password></password>
<publickey></publickey>
<privatekey></privatekey>
<port></port>
<description></description>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
</item>
</items>
<discovery_rules/>
<macros/>
<templates/>
<screens/>
</template>
</templates>
<triggers>
<trigger>
<expression>{router1:icmpping[<ip>,<count>,<interval>,<size>,<timeout>].last(0)}=1</expression>
<name>router1 status</name>
<url></url>
<status>0</status>
<priority>0</priority>
<description></description>
<type>0</type>
<dependencies/>
</trigger>
<trigger>
<expression>{router2:icmpping[<ip>,<count>,<interval>,<size>,<timeout>].last(0)}=1</expression>
<name>router2 status</name>
<url></url>
<status>0</status>
<priority>0</priority>
<description></description>
<type>0</type>
<dependencies>
<dependency>
<name>router1 status</name>
<expression>{router1:icmpping[<ip>,<count>,<interval>,<size>,<timeout>].last(0)}=1</expression>
</dependency>
</dependencies>
</trigger>
<trigger>
<expression>{server:icmpping[<ip>,<count>,<interval>,<size>,<timeout>].last(0)}=1</expression>
<name>server status</name>
<url></url>
<status>0</status>
<priority>0</priority>
<description></description>
<type>0</type>
<dependencies>
<dependency>
<name>router2 status</name>
<expression>{router2:icmpping[<ip>,<count>,<interval>,<size>,<timeout>].last(0)}=1</expression>
</dependency>
</dependencies>
</trigger>
</triggers>
</zabbix_export>
Comment