Created
December 22, 2018 09:35
-
-
Save chusiang/ae344828ed1b3ec85a4ad53607943357 to your computer and use it in GitHub Desktop.
Fork "chrony accuracy Template" for Zabbix 3.2 from https://share.zabbix.com/cat-app/ntp/chrony-accuracy-template-english .
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<zabbix_export> | |
<version>3.2</version> | |
<date>2018-12-22T09:33:22Z</date> | |
<groups> | |
<group> | |
<name>Templates</name> | |
</group> | |
</groups> | |
<templates> | |
<template> | |
<template>Template App Chrony Service</template> | |
<name>Template App Chrony Service</name> | |
<description/> | |
<groups> | |
<group> | |
<name>Templates</name> | |
</group> | |
</groups> | |
<applications> | |
<application> | |
<name>chrony</name> | |
</application> | |
</applications> | |
<items> | |
<item> | |
<name>chrony Version</name> | |
<type>7</type> | |
<snmp_community/> | |
<multiplier>0</multiplier> | |
<snmp_oid/> | |
<key>system.run[chronyc -v]</key> | |
<delay>3600</delay> | |
<history>90</history> | |
<trends>0</trends> | |
<status>0</status> | |
<value_type>1</value_type> | |
<allowed_hosts/> | |
<units/> | |
<delta>0</delta> | |
<snmpv3_contextname/> | |
<snmpv3_securityname/> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authprotocol>0</snmpv3_authprotocol> | |
<snmpv3_authpassphrase/> | |
<snmpv3_privprotocol>0</snmpv3_privprotocol> | |
<snmpv3_privpassphrase/> | |
<formula>1</formula> | |
<delay_flex/> | |
<params/> | |
<ipmi_sensor/> | |
<data_type>0</data_type> | |
<authtype>0</authtype> | |
<username/> | |
<password/> | |
<publickey/> | |
<privatekey/> | |
<port/> | |
<description/> | |
<inventory_link>0</inventory_link> | |
<applications> | |
<application> | |
<name>chrony</name> | |
</application> | |
</applications> | |
<valuemap/> | |
<logtimefmt/> | |
</item> | |
<item> | |
<name>chronyc sources</name> | |
<type>7</type> | |
<snmp_community/> | |
<multiplier>0</multiplier> | |
<snmp_oid/> | |
<key>system.run[chronyc sources]</key> | |
<delay>600</delay> | |
<history>60</history> | |
<trends>0</trends> | |
<status>0</status> | |
<value_type>4</value_type> | |
<allowed_hosts/> | |
<units/> | |
<delta>0</delta> | |
<snmpv3_contextname/> | |
<snmpv3_securityname/> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authprotocol>0</snmpv3_authprotocol> | |
<snmpv3_authpassphrase/> | |
<snmpv3_privprotocol>0</snmpv3_privprotocol> | |
<snmpv3_privpassphrase/> | |
<formula>1</formula> | |
<delay_flex/> | |
<params/> | |
<ipmi_sensor/> | |
<data_type>0</data_type> | |
<authtype>0</authtype> | |
<username/> | |
<password/> | |
<publickey/> | |
<privatekey/> | |
<port/> | |
<description/> | |
<inventory_link>0</inventory_link> | |
<applications> | |
<application> | |
<name>chrony</name> | |
</application> | |
</applications> | |
<valuemap/> | |
<logtimefmt/> | |
</item> | |
<item> | |
<name>NTP synchronized server</name> | |
<type>7</type> | |
<snmp_community/> | |
<multiplier>0</multiplier> | |
<snmp_oid/> | |
<key>system.run[chronyc sources | grep \* | awk '{print $2}']</key> | |
<delay>600</delay> | |
<history>90</history> | |
<trends>0</trends> | |
<status>0</status> | |
<value_type>1</value_type> | |
<allowed_hosts/> | |
<units/> | |
<delta>0</delta> | |
<snmpv3_contextname/> | |
<snmpv3_securityname/> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authprotocol>0</snmpv3_authprotocol> | |
<snmpv3_authpassphrase/> | |
<snmpv3_privprotocol>0</snmpv3_privprotocol> | |
<snmpv3_privpassphrase/> | |
<formula>1</formula> | |
<delay_flex/> | |
<params/> | |
<ipmi_sensor/> | |
<data_type>0</data_type> | |
<authtype>0</authtype> | |
<username/> | |
<password/> | |
<publickey/> | |
<privatekey/> | |
<port/> | |
<description/> | |
<inventory_link>0</inventory_link> | |
<applications> | |
<application> | |
<name>chrony</name> | |
</application> | |
</applications> | |
<valuemap/> | |
<logtimefmt/> | |
</item> | |
<item> | |
<name>NTP stratum</name> | |
<type>7</type> | |
<snmp_community/> | |
<multiplier>0</multiplier> | |
<snmp_oid/> | |
<key>system.run[chronyc sources | grep \* | awk '{print $3}']</key> | |
<delay>1800</delay> | |
<history>90</history> | |
<trends>365</trends> | |
<status>0</status> | |
<value_type>3</value_type> | |
<allowed_hosts/> | |
<units/> | |
<delta>0</delta> | |
<snmpv3_contextname/> | |
<snmpv3_securityname/> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authprotocol>0</snmpv3_authprotocol> | |
<snmpv3_authpassphrase/> | |
<snmpv3_privprotocol>0</snmpv3_privprotocol> | |
<snmpv3_privpassphrase/> | |
<formula>1</formula> | |
<delay_flex/> | |
<params/> | |
<ipmi_sensor/> | |
<data_type>0</data_type> | |
<authtype>0</authtype> | |
<username/> | |
<password/> | |
<publickey/> | |
<privatekey/> | |
<port/> | |
<description>The stratum of the synchronous NTP server</description> | |
<inventory_link>0</inventory_link> | |
<applications> | |
<application> | |
<name>chrony</name> | |
</application> | |
</applications> | |
<valuemap/> | |
<logtimefmt/> | |
</item> | |
<item> | |
<name>chronyReach</name> | |
<type>7</type> | |
<snmp_community/> | |
<multiplier>0</multiplier> | |
<snmp_oid/> | |
<key>system.run[chronyc sources | grep \* | awk '{print $5}']</key> | |
<delay>600</delay> | |
<history>90</history> | |
<trends>365</trends> | |
<status>0</status> | |
<value_type>3</value_type> | |
<allowed_hosts/> | |
<units/> | |
<delta>0</delta> | |
<snmpv3_contextname/> | |
<snmpv3_securityname/> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authprotocol>0</snmpv3_authprotocol> | |
<snmpv3_authpassphrase/> | |
<snmpv3_privprotocol>0</snmpv3_privprotocol> | |
<snmpv3_privpassphrase/> | |
<formula>1</formula> | |
<delay_flex/> | |
<params/> | |
<ipmi_sensor/> | |
<data_type>1</data_type> | |
<authtype>0</authtype> | |
<username/> | |
<password/> | |
<publickey/> | |
<privatekey/> | |
<port/> | |
<description>過去8回の問合せ成功回数を8ビットで表現します。</description> | |
<inventory_link>0</inventory_link> | |
<applications> | |
<application> | |
<name>chrony</name> | |
</application> | |
</applications> | |
<valuemap/> | |
<logtimefmt/> | |
</item> | |
<item> | |
<name>chronyc tracking</name> | |
<type>7</type> | |
<snmp_community/> | |
<multiplier>0</multiplier> | |
<snmp_oid/> | |
<key>system.run[chronyc tracking]</key> | |
<delay>600</delay> | |
<history>60</history> | |
<trends>0</trends> | |
<status>0</status> | |
<value_type>4</value_type> | |
<allowed_hosts/> | |
<units/> | |
<delta>0</delta> | |
<snmpv3_contextname/> | |
<snmpv3_securityname/> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authprotocol>0</snmpv3_authprotocol> | |
<snmpv3_authpassphrase/> | |
<snmpv3_privprotocol>0</snmpv3_privprotocol> | |
<snmpv3_privpassphrase/> | |
<formula>1</formula> | |
<delay_flex/> | |
<params/> | |
<ipmi_sensor/> | |
<data_type>0</data_type> | |
<authtype>0</authtype> | |
<username/> | |
<password/> | |
<publickey/> | |
<privatekey/> | |
<port/> | |
<description/> | |
<inventory_link>0</inventory_link> | |
<applications> | |
<application> | |
<name>chrony</name> | |
</application> | |
</applications> | |
<valuemap/> | |
<logtimefmt/> | |
</item> | |
<item> | |
<name>NTP offset</name> | |
<type>7</type> | |
<snmp_community/> | |
<multiplier>1</multiplier> | |
<snmp_oid/> | |
<key>system.run[chronyc tracking | grep "Last offset" | awk '{print $4}']</key> | |
<delay>600</delay> | |
<history>90</history> | |
<trends>365</trends> | |
<status>0</status> | |
<value_type>0</value_type> | |
<allowed_hosts/> | |
<units>ms</units> | |
<delta>0</delta> | |
<snmpv3_contextname/> | |
<snmpv3_securityname/> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authprotocol>0</snmpv3_authprotocol> | |
<snmpv3_authpassphrase/> | |
<snmpv3_privprotocol>0</snmpv3_privprotocol> | |
<snmpv3_privpassphrase/> | |
<formula>1000</formula> | |
<delay_flex/> | |
<params/> | |
<ipmi_sensor/> | |
<data_type>0</data_type> | |
<authtype>0</authtype> | |
<username/> | |
<password/> | |
<publickey/> | |
<privatekey/> | |
<port/> | |
<description>Time deviation between the NTP server</description> | |
<inventory_link>0</inventory_link> | |
<applications> | |
<application> | |
<name>chrony</name> | |
</application> | |
</applications> | |
<valuemap/> | |
<logtimefmt/> | |
</item> | |
<item> | |
<name>Leap status</name> | |
<type>7</type> | |
<snmp_community/> | |
<multiplier>0</multiplier> | |
<snmp_oid/> | |
<key>system.run[chronyc tracking | grep "Leap status" | awk -F': ' '{ print $2 }']</key> | |
<delay>600</delay> | |
<history>90</history> | |
<trends>0</trends> | |
<status>0</status> | |
<value_type>1</value_type> | |
<allowed_hosts/> | |
<units/> | |
<delta>0</delta> | |
<snmpv3_contextname/> | |
<snmpv3_securityname/> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authprotocol>0</snmpv3_authprotocol> | |
<snmpv3_authpassphrase/> | |
<snmpv3_privprotocol>0</snmpv3_privprotocol> | |
<snmpv3_privpassphrase/> | |
<formula>1</formula> | |
<delay_flex/> | |
<params/> | |
<ipmi_sensor/> | |
<data_type>0</data_type> | |
<authtype>0</authtype> | |
<username/> | |
<password/> | |
<publickey/> | |
<privatekey/> | |
<port/> | |
<description>Leap status | |
Normal | |
Insert second | |
Delete second | |
Not synchronized</description> | |
<inventory_link>0</inventory_link> | |
<applications> | |
<application> | |
<name>chrony</name> | |
</application> | |
</applications> | |
<valuemap/> | |
<logtimefmt/> | |
</item> | |
<item> | |
<name>NTP offset (long term average)</name> | |
<type>7</type> | |
<snmp_community/> | |
<multiplier>1</multiplier> | |
<snmp_oid/> | |
<key>system.run[chronyc tracking | grep "RMS offset" | awk '{print $4}']</key> | |
<delay>600</delay> | |
<history>90</history> | |
<trends>365</trends> | |
<status>0</status> | |
<value_type>0</value_type> | |
<allowed_hosts/> | |
<units>ms</units> | |
<delta>0</delta> | |
<snmpv3_contextname/> | |
<snmpv3_securityname/> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authprotocol>0</snmpv3_authprotocol> | |
<snmpv3_authpassphrase/> | |
<snmpv3_privprotocol>0</snmpv3_privprotocol> | |
<snmpv3_privpassphrase/> | |
<formula>1000</formula> | |
<delay_flex/> | |
<params/> | |
<ipmi_sensor/> | |
<data_type>0</data_type> | |
<authtype>0</authtype> | |
<username/> | |
<password/> | |
<publickey/> | |
<privatekey/> | |
<port/> | |
<description>Time deviation between the NTP server (long term average)</description> | |
<inventory_link>0</inventory_link> | |
<applications> | |
<application> | |
<name>chrony</name> | |
</application> | |
</applications> | |
<valuemap/> | |
<logtimefmt/> | |
</item> | |
<item> | |
<name>Network total delay</name> | |
<type>7</type> | |
<snmp_community/> | |
<multiplier>1</multiplier> | |
<snmp_oid/> | |
<key>system.run[chronyc tracking | grep "Root delay" | awk '{print $4}']</key> | |
<delay>10</delay> | |
<history>90</history> | |
<trends>365</trends> | |
<status>0</status> | |
<value_type>0</value_type> | |
<allowed_hosts/> | |
<units>ms</units> | |
<delta>0</delta> | |
<snmpv3_contextname/> | |
<snmpv3_securityname/> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authprotocol>0</snmpv3_authprotocol> | |
<snmpv3_authpassphrase/> | |
<snmpv3_privprotocol>0</snmpv3_privprotocol> | |
<snmpv3_privpassphrase/> | |
<formula>1000</formula> | |
<delay_flex/> | |
<params/> | |
<ipmi_sensor/> | |
<data_type>0</data_type> | |
<authtype>0</authtype> | |
<username/> | |
<password/> | |
<publickey/> | |
<privatekey/> | |
<port/> | |
<description>Network total delay up to stratum-1.</description> | |
<inventory_link>0</inventory_link> | |
<applications> | |
<application> | |
<name>chrony</name> | |
</application> | |
</applications> | |
<valuemap/> | |
<logtimefmt/> | |
</item> | |
<item> | |
<name>NTP time difference (ms)</name> | |
<type>7</type> | |
<snmp_community/> | |
<multiplier>1</multiplier> | |
<snmp_oid/> | |
<key>system.run[chronyc tracking |grep "System time" | awk '{print $4}']</key> | |
<delay>10</delay> | |
<history>90</history> | |
<trends>365</trends> | |
<status>0</status> | |
<value_type>0</value_type> | |
<allowed_hosts/> | |
<units>ms</units> | |
<delta>0</delta> | |
<snmpv3_contextname/> | |
<snmpv3_securityname/> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authprotocol>0</snmpv3_authprotocol> | |
<snmpv3_authpassphrase/> | |
<snmpv3_privprotocol>0</snmpv3_privprotocol> | |
<snmpv3_privpassphrase/> | |
<formula>1000</formula> | |
<delay_flex/> | |
<params/> | |
<ipmi_sensor/> | |
<data_type>0</data_type> | |
<authtype>0</authtype> | |
<username/> | |
<password/> | |
<publickey/> | |
<privatekey/> | |
<port/> | |
<description>Displays the difference between NTP time and system time.</description> | |
<inventory_link>0</inventory_link> | |
<applications> | |
<application> | |
<name>chrony</name> | |
</application> | |
</applications> | |
<valuemap/> | |
<logtimefmt/> | |
</item> | |
<item> | |
<name>NTP time difference (direction)</name> | |
<type>7</type> | |
<snmp_community/> | |
<multiplier>0</multiplier> | |
<snmp_oid/> | |
<key>system.run[chronyc tracking | grep "System time" | awk '{print $6}']</key> | |
<delay>10</delay> | |
<history>90</history> | |
<trends>0</trends> | |
<status>0</status> | |
<value_type>1</value_type> | |
<allowed_hosts/> | |
<units/> | |
<delta>0</delta> | |
<snmpv3_contextname/> | |
<snmpv3_securityname/> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authprotocol>0</snmpv3_authprotocol> | |
<snmpv3_authpassphrase/> | |
<snmpv3_privprotocol>0</snmpv3_privprotocol> | |
<snmpv3_privpassphrase/> | |
<formula>1</formula> | |
<delay_flex/> | |
<params/> | |
<ipmi_sensor/> | |
<data_type>0</data_type> | |
<authtype>0</authtype> | |
<username/> | |
<password/> | |
<publickey/> | |
<privatekey/> | |
<port/> | |
<description>Displays the direction of the difference between NTP time and system time.</description> | |
<inventory_link>0</inventory_link> | |
<applications> | |
<application> | |
<name>chrony</name> | |
</application> | |
</applications> | |
<valuemap/> | |
<logtimefmt/> | |
</item> | |
<item> | |
<name>NTP polling</name> | |
<type>7</type> | |
<snmp_community/> | |
<multiplier>0</multiplier> | |
<snmp_oid/> | |
<key>system.run[chronyc tracking | grep "Update interval" | awk '{print $4}']</key> | |
<delay>600</delay> | |
<history>90</history> | |
<trends>365</trends> | |
<status>0</status> | |
<value_type>0</value_type> | |
<allowed_hosts/> | |
<units>s</units> | |
<delta>0</delta> | |
<snmpv3_contextname/> | |
<snmpv3_securityname/> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authprotocol>0</snmpv3_authprotocol> | |
<snmpv3_authpassphrase/> | |
<snmpv3_privprotocol>0</snmpv3_privprotocol> | |
<snmpv3_privpassphrase/> | |
<formula>1</formula> | |
<delay_flex/> | |
<params/> | |
<ipmi_sensor/> | |
<data_type>0</data_type> | |
<authtype>0</authtype> | |
<username/> | |
<password/> | |
<publickey/> | |
<privatekey/> | |
<port/> | |
<description>Displays the synchronization interval with the NTP server.</description> | |
<inventory_link>0</inventory_link> | |
<applications> | |
<application> | |
<name>chrony</name> | |
</application> | |
</applications> | |
<valuemap/> | |
<logtimefmt/> | |
</item> | |
</items> | |
<discovery_rules/> | |
<httptests/> | |
<macros> | |
<macro> | |
<macro>{$NTP_OFFSET}</macro> | |
<value>50</value> | |
</macro> | |
<macro> | |
<macro>{$NTP_OFFSET_LARGE}</macro> | |
<value>5000</value> | |
</macro> | |
</macros> | |
<templates/> | |
<screens/> | |
</template> | |
</templates> | |
<triggers> | |
<trigger> | |
<expression>{Template App Chrony Service:system.run[chronyc tracking | grep "Last offset" | awk '{print $4}'].last()}>{$NTP_OFFSET_LARGE} or | |
{Template App Chrony Service:system.run[chronyc tracking | grep "Last offset" | awk '{print $4}'].last()}<-{$NTP_OFFSET_LARGE}</expression> | |
<recovery_mode>0</recovery_mode> | |
<recovery_expression/> | |
<name>Misalignment of the upper NTP has exceeded the {$NTP_OFFSET_LARGE}ms</name> | |
<correlation_mode>0</correlation_mode> | |
<correlation_tag/> | |
<url/> | |
<status>0</status> | |
<priority>2</priority> | |
<description/> | |
<type>0</type> | |
<manual_close>0</manual_close> | |
<dependencies/> | |
<tags/> | |
</trigger> | |
<trigger> | |
<expression>{Template App Chrony Service:system.run[chronyc tracking | grep "Last offset" | awk '{print $4}'].last()}>{$NTP_OFFSET_SMALL} or | |
{Template App Chrony Service:system.run[chronyc tracking | grep "Last offset" | awk '{print $4}'].last()}<-{$NTP_OFFSET_SMALL}</expression> | |
<recovery_mode>0</recovery_mode> | |
<recovery_expression/> | |
<name>Misalignment of the upper NTP has exceeded the {$NTP_OFFSET_SMALL}ms</name> | |
<correlation_mode>0</correlation_mode> | |
<correlation_tag/> | |
<url/> | |
<status>0</status> | |
<priority>1</priority> | |
<description/> | |
<type>0</type> | |
<manual_close>0</manual_close> | |
<dependencies> | |
<dependency> | |
<name>Misalignment of the upper NTP has exceeded the {$NTP_OFFSET_LARGE}ms</name> | |
<expression>{Template App Chrony Service:system.run[chronyc tracking | grep "Last offset" | awk '{print $4}'].last()}>{$NTP_OFFSET_LARGE} or | |
{Template App Chrony Service:system.run[chronyc tracking | grep "Last offset" | awk '{print $4}'].last()}<-{$NTP_OFFSET_LARGE}</expression> | |
<recovery_expression/> | |
</dependency> | |
</dependencies> | |
<tags/> | |
</trigger> | |
<trigger> | |
<expression>(({Template App Chrony Service:system.run[chronyc tracking | grep "Leap status" | awk -F': ' '{ print $2 }'].regexp(Not synchronized)})<>0)</expression> | |
<recovery_mode>0</recovery_mode> | |
<recovery_expression/> | |
<name>Not synchronized with the NTP server.</name> | |
<correlation_mode>0</correlation_mode> | |
<correlation_tag/> | |
<url/> | |
<status>0</status> | |
<priority>2</priority> | |
<description/> | |
<type>1</type> | |
<manual_close>0</manual_close> | |
<dependencies/> | |
<tags/> | |
</trigger> | |
</triggers> | |
</zabbix_export> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment