Skip to content

Commit ffc0105

Browse files
AceSlashJeremie Grauer
andauthored
Removed the global expressions (#24)
* Fix #22 Fix #23 removed the global expressions - the "ZFS fileset" actually hide reals dataset, so I've removed it. - I also tested the "not docker ZFS dataset" and it doesn't work anymore, so removing it too. * removed the pictures for the old global expressions Co-authored-by: Jeremie Grauer <jgrauer@cosium.com>
1 parent 12eecbf commit ffc0105

File tree

4 files changed

+8
-43
lines changed

4 files changed

+8
-43
lines changed

README.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,30 +32,6 @@ About the ZoL version, this template is intended to be used by ZoL version 0.7.0
3232

3333
To use this template, follow those steps:
3434

35-
## Create the needed regular expressions
36-
On your zabbix server web UI, go to:
37-
- Administration
38-
- General
39-
- Regular expressions
40-
41-
Then Create 2 new regular expressions:
42-
- "ZFS fileset"
43-
44-
Expression type: `Character string included`
45-
46-
Expression: `/`
47-
48-
![ZFS fileset](images/zfs_fileset.png)
49-
50-
- "not docker ZFS dataset"
51-
52-
Expression type: `Result is FALSE`
53-
54-
Expression: `([a-z-0-9]{64}$|[a-z-0-9]{64}-init$)`
55-
56-
![not docker ZFS dataset](images/zfs_not_docker.png)
57-
58-
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.
5935
## Create the Value mapping "ZFS zpool scrub status"
6036
Go to:
6137
- Administration

images/zfs_fileset.png

-15.7 KB
Binary file not shown.

images/zfs_not_docker.png

-17.5 KB
Binary file not shown.

template/zol_template.xml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<zabbix_export>
33
<version>4.0</version>
4-
<date>2020-11-12T14:41:00Z</date>
4+
<date>2021-01-04T21:27:59Z</date>
55
<groups>
66
<group>
77
<name>Templates</name>
@@ -11,7 +11,9 @@
1111
<template>
1212
<template>ZFS on Linux</template>
1313
<name>ZFS on Linux</name>
14-
<description/>
14+
<description>OpenZFS (formerly ZFS on Linux) template.&#13;
15+
&#13;
16+
Home of the project: https://github.com/Cosium/zabbix_zfs-on-linux</description>
1517
<groups>
1618
<group>
1719
<name>Templates</name>
@@ -36,7 +38,7 @@
3638
</applications>
3739
<items>
3840
<item>
39-
<name>ZFS on Linux version</name>
41+
<name>OpenZFS version</name>
4042
<type>7</type>
4143
<snmp_community/>
4244
<snmp_oid/>
@@ -1507,23 +1509,10 @@
15071509
<filter>
15081510
<evaltype>1</evaltype>
15091511
<formula/>
1510-
<conditions>
1511-
<condition>
1512-
<macro>{#FILESETNAME}</macro>
1513-
<value>@ZFS fileset</value>
1514-
<operator>8</operator>
1515-
<formulaid>A</formulaid>
1516-
</condition>
1517-
<condition>
1518-
<macro>{#FILESETNAME}</macro>
1519-
<value>@not docker ZFS dataset</value>
1520-
<operator>8</operator>
1521-
<formulaid>B</formulaid>
1522-
</condition>
1523-
</conditions>
1512+
<conditions/>
15241513
</filter>
15251514
<lifetime>2d</lifetime>
1526-
<description>Discover ZFS dataset. Dataset names must contain a &quot;/&quot; else it's a zpool.</description>
1515+
<description>Discover ZFS dataset.</description>
15271516
<item_prototypes>
15281517
<item_prototype>
15291518
<name>Zfs dataset $1 compressratio</name>
@@ -3661,7 +3650,7 @@ You may also run a zpool scrub to check if some other undetected errors are pres
36613650
<expression>{ZFS on Linux:vfs.file.contents[/sys/module/zfs/version].diff(0)}&gt;0</expression>
36623651
<recovery_mode>0</recovery_mode>
36633652
<recovery_expression/>
3664-
<name>Version of ZoL is now {ITEM.VALUE} on {HOST.NAME}</name>
3653+
<name>Version of OpenZFS is now {ITEM.VALUE} on {HOST.NAME}</name>
36653654
<correlation_mode>0</correlation_mode>
36663655
<correlation_tag/>
36673656
<url/>

0 commit comments

Comments
 (0)