<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
    <version>4.4</version>
    <date>2020-01-23T13:50:45Z</date>
    <groups>
        <group>
            <name>Templates</name>
        </group>
    </groups>
    <templates>
        <template>
            <template>Template Zcash</template>
            <name>Template Zcash</name>
            <groups>
                <group>
                    <name>Templates</name>
                </group>
            </groups>
            <applications>
                <application>
                    <name>Zcash</name>
                </application>
            </applications>
            <items>
                <item>
                    <name>Blockchaininfo</name>
                    <type>HTTP_AGENT</type>
                    <key>blockchaininfo</key>
                    <delay>60s</delay>
                    <history>30d</history>
                    <trends>0</trends>
                    <value_type>TEXT</value_type>
                    <applications>
                        <application>
                            <name>Zcash</name>
                        </application>
                    </applications>
                    <url>http://username:password@10.20.1.18:8232/</url>
                    <posts>{&quot;jsonrpc&quot;:&quot;1.0&quot;,&quot;id&quot;:&quot;curltext&quot;,&quot;method&quot;:&quot;getblockchaininfo&quot;,&quot;params&quot;:[]}</posts>
                    <post_type>JSON</post_type>
                    <request_method>POST</request_method>
                </item>
                <item>
                    <name>Blocks</name>
                    <type>DEPENDENT</type>
                    <key>blocks</key>
                    <delay>0</delay>
                    <history>30d</history>
                    <trends>90d</trends>
                    <applications>
                        <application>
                            <name>Zcash</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JSONPATH</type>
                            <params>$.result.blocks</params>
                        </step>
                    </preprocessing>
                    <master_item>
                        <key>blockchaininfo</key>
                    </master_item>
                </item>
                <item>
                    <name>Headers</name>
                    <type>DEPENDENT</type>
                    <key>headers</key>
                    <delay>0</delay>
                    <history>30d</history>
                    <trends>90d</trends>
                    <applications>
                        <application>
                            <name>Zcash</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JSONPATH</type>
                            <params>$.result.headers</params>
                        </step>
                    </preprocessing>
                    <master_item>
                        <key>blockchaininfo</key>
                    </master_item>
                </item>
                <item>
                    <name>Networkactive</name>
                    <type>DEPENDENT</type>
                    <key>networkactive</key>
                    <delay>0</delay>
                    <history>30d</history>
                    <trends>0</trends>
                    <value_type>TEXT</value_type>
                    <applications>
                        <application>
                            <name>Zcash</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JSONPATH</type>
                            <params>$.result.networks[:1].reachable</params>
                        </step>
                    </preprocessing>
                    <master_item>
                        <key>networkinfo</key>
                    </master_item>
                    <triggers>
                        <trigger>
                            <expression>{str(true,1)}=0</expression>
                            <name>Networkactive on {HOST.NAME} is not true</name>
                            <priority>AVERAGE</priority>
                            <description>networkactive not true</description>
                            <manual_close>YES</manual_close>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>Networkinfo</name>
                    <type>HTTP_AGENT</type>
                    <key>networkinfo</key>
                    <delay>60s</delay>
                    <history>30d</history>
                    <trends>0</trends>
                    <value_type>TEXT</value_type>
                    <applications>
                        <application>
                            <name>Zcash</name>
                        </application>
                    </applications>
                    <url>http://username:password@10.20.1.18:8232/</url>
                    <posts>{&quot;jsonrpc&quot;:&quot;1.0&quot;,&quot;id&quot;:&quot;curltext&quot;,&quot;method&quot;:&quot;getnetworkinfo&quot;,&quot;params&quot;:[]}</posts>
                    <post_type>JSON</post_type>
                    <request_method>POST</request_method>
                </item>
                <item>
                    <name>Service zcashd status</name>
                    <key>proc.num[zcashd]</key>
                    <history>30d</history>
                    <trends>90d</trends>
                    <applications>
                        <application>
                            <name>Zcash</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{last()}=0</expression>
                            <name>Service zcashd not work</name>
                            <priority>AVERAGE</priority>
                            <description>Служба zcashd не работает</description>
                            <manual_close>YES</manual_close>
                        </trigger>
                    </triggers>
                </item>
            </items>
        </template>
    </templates>
    <triggers>
        <trigger>
            <expression>{Template Zcash:headers.last()}-{Template Zcash:blocks.last()}&gt;9</expression>
            <name>Node {HOST.NAME} sync failed</name>
            <priority>AVERAGE</priority>
            <description>Headers - Blocks &gt; 9</description>
            <manual_close>YES</manual_close>
        </trigger>
    </triggers>
</zabbix_export>
