Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to display a whole pool's status instead of just single vdevs. #32

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ I have maintained and modified this template over the years and the different ve

Thanks to external contributors, this template was extended and is now more complete than ever. However, if you find a metric that you need and is missing, don't hesitate to open a ticket or even better, to create a PR!

Tested Zabbix server version include 4.0, 4.4, 5.0 and 5.2 . The template shipped here is in 4.0 format to allow import to all those versions.
Tested Zabbix server version include 4.0, 4.4, 5.0, 5.2 and 5.4 . The template shipped here is in 4.0 format to allow import to all those versions.

This template will give you screens and graphs for memory usage, zpool usage and performance, dataset usage, etc. It includes triggers for low disk space (customizable via Zabbix own macros), disks errors, etc.

Expand Down
63 changes: 63 additions & 0 deletions template/zol_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2403,6 +2403,69 @@ Home of the project: https://github.com/Cosium/zabbix_zfs-on-linux</description>
<application_prototypes/>
<master_item/>
</item_prototype>
<item_prototype>
<name>Zpool {#POOLNAME} Status</name>
<type>7</type>
<snmp_community/>
<snmp_oid/>
<key>zfs.zpool.status[{#POOLNAME}]</key>
<delay>5m</delay>
<history>30d</history>
<trends>0</trends>
<status>0</status>
<value_type>4</value_type>
<allowed_hosts/>
<units/>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<params/>
<ipmi_sensor/>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>ZFS</name>
</application>
<application>
<name>ZFS zpool</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<preprocessing/>
<jmx_endpoint/>
<timeout>3s</timeout>
<url/>
<query_fields/>
<posts/>
<status_codes>200</status_codes>
<follow_redirects>1</follow_redirects>
<post_type>0</post_type>
<http_proxy/>
<headers/>
<retrieve_mode>0</retrieve_mode>
<request_method>0</request_method>
<output_format>0</output_format>
<allow_traps>0</allow_traps>
<ssl_cert_file/>
<ssl_key_file/>
<ssl_key_password/>
<verify_peer>0</verify_peer>
<verify_host>0</verify_host>
<application_prototypes/>
<master_item/>
</item_prototype>
<item_prototype>
<name>Zpool {#POOLNAME} read throughput</name>
<type>18</type>
Expand Down
1 change: 1 addition & 0 deletions userparameters/ZoL_with_sudo.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ UserParameter=zfs.vdev.discovery,/usr/bin/sudo /sbin/zpool list -Hv | grep '^[[:

# pool health
UserParameter=zfs.zpool.health[*],/usr/bin/sudo /sbin/zpool list -H -o health $1
UserParameter=zfs.zpool.status[*],/usr/bin/sudo /sbin/zpool status $1

# get any fs option
UserParameter=zfs.get.fsinfo[*],/usr/bin/sudo /sbin/zfs get -o value -Hp $2 $1
Expand Down
1 change: 1 addition & 0 deletions userparameters/ZoL_without_sudo.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ UserParameter=zfs.vdev.discovery,/sbin/zpool list -Hv | grep '^[[:blank:]]' | eg

# pool health
UserParameter=zfs.zpool.health[*],/sbin/zpool list -H -o health $1
UserParameter=zfs.zpool.status[*],/sbin/zpool status $1

# get any fs option
UserParameter=zfs.get.fsinfo[*],/sbin/zfs get -o value -Hp $2 $1
Expand Down