Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,30 +32,6 @@ About the ZoL version, this template is intended to be used by ZoL version 0.7.0

To use this template, follow those steps:

## Create the needed regular expressions
On your zabbix server web UI, go to:
- Administration
- General
- Regular expressions

Then Create 2 new regular expressions:
- "ZFS fileset"

Expression type: `Character string included`

Expression: `/`

![ZFS fileset](images/zfs_fileset.png)

- "not docker ZFS dataset"

Expression type: `Result is FALSE`

Expression: `([a-z-0-9]{64}$|[a-z-0-9]{64}-init$)`

![not docker ZFS dataset](images/zfs_not_docker.png)

The second expression is to avoid this template to discover docker ZFS datasets because there can be *a lot* of them and they are not that useful to monitor as long as you monitor the parent dataset. This is especially true on host that create and destroy a lot of docker containers all day, creating dataset that disapear shortly after creation.
## Create the Value mapping "ZFS zpool scrub status"
Go to:
- Administration
Expand Down
Binary file removed images/zfs_fileset.png
Binary file not shown.
Binary file removed images/zfs_not_docker.png
Binary file not shown.
27 changes: 8 additions & 19 deletions template/zol_template.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>4.0</version>
<date>2020-11-12T14:41:00Z</date>
<date>2021-01-04T21:27:59Z</date>
<groups>
<group>
<name>Templates</name>
Expand All @@ -11,7 +11,9 @@
<template>
<template>ZFS on Linux</template>
<name>ZFS on Linux</name>
<description/>
<description>OpenZFS (formerly ZFS on Linux) template.&#13;
&#13;
Home of the project: https://github.com/Cosium/zabbix_zfs-on-linux</description>
<groups>
<group>
<name>Templates</name>
Expand All @@ -36,7 +38,7 @@
</applications>
<items>
<item>
<name>ZFS on Linux version</name>
<name>OpenZFS version</name>
<type>7</type>
<snmp_community/>
<snmp_oid/>
Expand Down Expand Up @@ -1507,23 +1509,10 @@
<filter>
<evaltype>1</evaltype>
<formula/>
<conditions>
<condition>
<macro>{#FILESETNAME}</macro>
<value>@ZFS fileset</value>
<operator>8</operator>
<formulaid>A</formulaid>
</condition>
<condition>
<macro>{#FILESETNAME}</macro>
<value>@not docker ZFS dataset</value>
<operator>8</operator>
<formulaid>B</formulaid>
</condition>
</conditions>
<conditions/>
</filter>
<lifetime>2d</lifetime>
<description>Discover ZFS dataset. Dataset names must contain a &quot;/&quot; else it's a zpool.</description>
<description>Discover ZFS dataset.</description>
<item_prototypes>
<item_prototype>
<name>Zfs dataset $1 compressratio</name>
Expand Down Expand Up @@ -3661,7 +3650,7 @@ You may also run a zpool scrub to check if some other undetected errors are pres
<expression>{ZFS on Linux:vfs.file.contents[/sys/module/zfs/version].diff(0)}&gt;0</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>Version of ZoL is now {ITEM.VALUE} on {HOST.NAME}</name>
<name>Version of OpenZFS is now {ITEM.VALUE} on {HOST.NAME}</name>
<correlation_mode>0</correlation_mode>
<correlation_tag/>
<url/>
Expand Down