Update Template_App_ZFS

tags/zabbix-agent-addons-0.2.135-1
Daniel Berteaud 4 years ago
parent 831b6d9be1
commit 8d8c90e31a
  1. 66
      zabbix_templates/Template_App_ZFS.xml

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<zabbix_export> <zabbix_export>
<version>4.4</version> <version>5.0</version>
<date>2020-02-17T07:55:13Z</date> <date>2020-12-17T15:28:00Z</date>
<groups> <groups>
<group> <group>
<name>Templates</name> <name>Templates</name>
@ -62,17 +62,29 @@
</item> </item>
<item> <item>
<name>ZFS: ARC: compression win</name> <name>ZFS: ARC: compression win</name>
<type>CALCULATED</type> <type>DEPENDENT</type>
<key>vfs.zfs.stats[arcstats,compress_win]</key> <key>vfs.zfs.stats[arcstats,compress_win]</key>
<delay>300</delay> <delay>0</delay>
<trends>1825d</trends> <trends>1825d</trends>
<units>B</units> <units>B</units>
<params>last(&quot;vfs.zfs.stats[arcstats,uncompressed_size]&quot;)-last(&quot;vfs.zfs.stats[arcstats,compressed_size]&quot;)</params>
<applications> <applications>
<application> <application>
<name>Memory</name> <name>Memory</name>
</application> </application>
</applications> </applications>
<preprocessing>
<step>
<type>JAVASCRIPT</type>
<params>json = JSON.parse(value);
uncomp = json.uncompressed_size;
comp = json.compressed_size;
diff = uncomp - comp;
return (diff &lt; 0 ? 0 : diff);</params>
</step>
</preprocessing>
<master_item>
<key>vfs.zfs.stats.all[arcstats]</key>
</master_item>
</item> </item>
<item> <item>
<name>ZFS: ARC: $2</name> <name>ZFS: ARC: $2</name>
@ -308,7 +320,7 @@
</applications> </applications>
<triggers> <triggers>
<trigger> <trigger>
<expression>{avg(1h)}&gt;(100-{$ZFS_ARC_HIT_METADATA_PCT_WARN})</expression> <expression>{avg(900)}&gt;(100-{$ZFS_ARC_HIT_METADATA_PCT_WARN})</expression>
<name>ZFS: Low ARC metadata efficiency</name> <name>ZFS: Low ARC metadata efficiency</name>
<priority>INFO</priority> <priority>INFO</priority>
</trigger> </trigger>
@ -1084,12 +1096,11 @@
</item_prototype> </item_prototype>
<item_prototype> <item_prototype>
<name>ZFS: fs {#ZFS_FS} compression win</name> <name>ZFS: fs {#ZFS_FS} compression win</name>
<type>CALCULATED</type> <type>DEPENDENT</type>
<key>vfs.zfs.dataset[{#ZFS_FS},fs,compression_win]</key> <key>vfs.zfs.dataset[{#ZFS_FS},fs,compression_win]</key>
<delay>300s</delay> <delay>0</delay>
<trends>1825d</trends> <trends>1825d</trends>
<units>B</units> <units>B</units>
<params>last(&quot;vfs.zfs.dataset[{#ZFS_FS},fs,logicalused]&quot;)-last(&quot;vfs.zfs.dataset[{#ZFS_FS},fs,used]&quot;)</params>
<applications> <applications>
<application> <application>
<name>Storage</name> <name>Storage</name>
@ -1097,10 +1108,16 @@
</applications> </applications>
<preprocessing> <preprocessing>
<step> <step>
<type>MULTIPLIER</type> <type>JAVASCRIPT</type>
<params>1</params> <params>json = JSON.parse(value);
logicalused = json.logicalused;
used = json.used;
return (logicalused &gt; used ? logicalused - used : 0);</params>
</step> </step>
</preprocessing> </preprocessing>
<master_item>
<key>vfs.zfs.dataset.info[{#ZFS_FS},fs]</key>
</master_item>
</item_prototype> </item_prototype>
<item_prototype> <item_prototype>
<name>ZFS: fs {#ZFS_FS} compression ratio</name> <name>ZFS: fs {#ZFS_FS} compression ratio</name>
@ -1942,7 +1959,8 @@
<item_prototype> <item_prototype>
<name>ZFS: Sanoid {#ZFS_SANOID}</name> <name>ZFS: Sanoid {#ZFS_SANOID}</name>
<key>vfs.zfs.sanoid.check[{#ZFS_SANOID}]</key> <key>vfs.zfs.sanoid.check[{#ZFS_SANOID}]</key>
<delay>322s</delay> <delay>300s</delay>
<history>30d</history>
<trends>0</trends> <trends>0</trends>
<value_type>CHAR</value_type> <value_type>CHAR</value_type>
<applications> <applications>
@ -1955,6 +1973,11 @@
<type>DISCARD_UNCHANGED_HEARTBEAT</type> <type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>1800</params> <params>1800</params>
</step> </step>
<step>
<type>NOT_MATCHES_REGEX</type>
<params>^print</params>
<error_handler>DISCARD_VALUE</error_handler>
</step>
</preprocessing> </preprocessing>
<trigger_prototypes> <trigger_prototypes>
<trigger_prototype> <trigger_prototype>
@ -1987,17 +2010,28 @@
</item_prototype> </item_prototype>
<item_prototype> <item_prototype>
<name>ZFS: Zvol {#ZFS_ZVOL} compression win</name> <name>ZFS: Zvol {#ZFS_ZVOL} compression win</name>
<type>CALCULATED</type> <type>DEPENDENT</type>
<key>vfs.zfs.dataset[{#ZFS_ZVOL},zvol,compression_win]</key> <key>vfs.zfs.dataset[{#ZFS_ZVOL},zvol,compression_win]</key>
<delay>300s</delay> <delay>0</delay>
<value_type>FLOAT</value_type> <value_type>FLOAT</value_type>
<units>B</units> <units>B</units>
<params>last(&quot;vfs.zfs.dataset[{#ZFS_ZVOL},zvol,logicalused]&quot;)-last(&quot;vfs.zfs.dataset[{#ZFS_ZVOL},zvol,used]&quot;)</params>
<applications> <applications>
<application> <application>
<name>Storage</name> <name>Storage</name>
</application> </application>
</applications> </applications>
<preprocessing>
<step>
<type>JAVASCRIPT</type>
<params>json = JSON.parse(value);
logicalused = json.logicalused;
used = json.used;
return (logicalused &gt; used ? logicalused - used : 0);</params>
</step>
</preprocessing>
<master_item>
<key>vfs.zfs.dataset.info[{#ZFS_ZVOL},zvol]</key>
</master_item>
</item_prototype> </item_prototype>
<item_prototype> <item_prototype>
<name>ZFS: Zvol {#ZFS_ZVOL} compression ratio</name> <name>ZFS: Zvol {#ZFS_ZVOL} compression ratio</name>
@ -2214,7 +2248,7 @@
</macro> </macro>
<macro> <macro>
<macro>{$ZFS_POOL_ALLOC_WARN}</macro> <macro>{$ZFS_POOL_ALLOC_WARN}</macro>
<value>75</value> <value>80</value>
</macro> </macro>
</macros> </macros>
</template> </template>

Loading…
Cancel
Save