Commit Graph

92 Commits

Author SHA1 Message Date
Kenyon Ralph e27c47b426
Merge pull request #1394 from spacelama/zfs_labels
fix munin-update logs filling up with some values not having labels
2023-10-16 10:33:10 -07:00
Tim Connors c8bbf97e30 fix munin-node logs filling up with some values not having labels 2023-10-16 23:04:41 +11:00
Kenyon Ralph 112ea7d02c
Merge pull request #1317 from quotengrote/header_ksm
Fix formatting for Munin Plugin Gallery
2023-04-21 14:11:51 -07:00
Kenyon Ralph e5f366d3d1
Merge pull request #1361 from quotengrote/quotengrote-patch-2
zfs_pool_dataset_count: Integers
2023-04-10 09:29:56 -07:00
Michael Grote 69d890ee11 zfs_list: set better labels 2023-04-10 10:28:31 +02:00
Michael Grote cf5f375b8b
zfs_pool_dataset_count: Integers 2023-03-28 21:24:49 +02:00
Michael Grote 841c4b9522 Moved MAGIC MARKERS to the bottom 2022-06-13 22:30:05 +02:00
Michael Grote 69db9ea437 Extend NAME with Comment 2022-06-13 22:28:31 +02:00
Michael Grote 396c2c2d1f Fixed formatting for all my Plugins 2022-06-12 22:08:57 +02:00
Michael Grote db27ad4597 repaired perldoc header: zfs_fragmentation 2021-12-13 14:40:48 +01:00
Michael Grote f63321c567 repaired perldoc header: zfs_pool_dataset_count 2021-12-13 14:40:48 +01:00
Michael Grote d41a94b184 repaired perldoc header: zfs_list 2021-12-13 14:40:48 +01:00
Michael Grote 4612c1bc90
plugin zfs_list: add "ignore_datasets_pattern" configuration
Allow to ignore certain volumes.
2021-12-12 20:59:52 +01:00
Michael Grote 02630d318c
add zfs plugins (#1250) 2021-11-13 19:53:54 +01:00
Tim Connors 60600d6b63 zfs list -t filesystem,volume to suppress snapshots
zfs list might list a bunch of transient snapshots if `zpool
listsnapshots=on` and something like zfs-auto-snapshot is used.  It's
also not useful to graph them since they're unchanging in time, and
the parent volume is graphed anyway.  Limit zfs list to
"filesystem,volume" instead of "all" including snapshots
2021-11-05 22:54:14 +01:00
Tim Düsterhus d5dffef840 Use exact values in zfs/zpool_capacity#allocated
As per the zpool(8) man page:

> zpool list [-HgLpPv] [-o property[,property]...] [-T u|d] [pool]... [interval [count]]
>         Lists the given pools along with a health status and space usage.  If no pools are specified, all pools in the system are listed.  When given an interval, the information is printed every
>         interval seconds until ^C is pressed.  If count is specified, the command exits after count reports are printed.
> [...]
>         -p      Display numbers in parsable (exact) values.
2021-02-17 20:10:49 +01:00
Michael Fritscher aee6a15240 Fixes quota für zvols. Without this, the log gets spammed with
> 2020/08/16 04:45:24 [ERROR] In RRD: Error updating /var/lib/munin/localdomain/localhost.localdomain-zfs_list_rpool__name-quota-g.rrd: /var/lib/munin/localdomain/localhost.localdomain-zfs_list_rpool__name-quota-g.rrd: Function update_pdp_prep, case DST_GAUGE - Cannot convert '-' to float
2020-08-17 02:41:54 +02:00
Lars Kruse 8713eb3722 Fix spelling mistakes in comments and descriptions
Thanks, codespell!
2020-03-26 04:23:21 +01:00
Lars Kruse 94434e4bd8 Plugin zfs-filesystem-graph: fix here-document 2019-08-13 05:16:13 +02:00
Lars Kruse e68a0308fe Plugin zfs-filesystem-graph: fix autoconf and remove "suggest" 2019-08-13 05:16:13 +02:00
Lars Kruse 7fed3b9765 Fix multiple shellcheck issues 2019-08-13 05:16:13 +02:00
rantal 4864783fca zpool_capacity: Added fragmentation % graph
Added fragmentation % graph
2019-07-25 03:41:01 +02:00
Sephtex f72390cb13
replace the / by __ anyway
To make it more clear that we had a subdevice it's better to use the __ for it's replacement anyway
2019-02-03 19:55:16 +01:00
Sephtex c35eee0255
indentation fix
added same indentation of the echo as all the rest in the for loop
2019-02-03 19:12:54 +01:00
Sephtex f6dbe9bd57
add usage of clean_fieldname
Used the correct munin way by soursing "$MUNIN_LIBDIR/plugins/plugin.sh" and use clean_fieldname.
For the title I removed the replacement of / by __ and on the multigraph value I added the usage of clean_fieldname to make it backwards compatible.
2019-02-03 19:10:56 +01:00
Sephtex 0429e63be5
Add support for dash in zfs_list
#969 zfs/zfs_list: Add support for dash in zfs_list
2019-02-03 15:10:13 +01:00
Lars Kruse 9cef55a3ed Restructure incomplete or broken "autoconf" implementations
Some plugins with non-zero autoconf exitcodes (it must be zero instead)
deserved a bit of code cleanup for improved readability.
2018-09-16 15:17:14 +02:00
Lars Kruse e4cd049b01 Fix trivial instances of wrong autoconf exitcodes 2018-09-16 04:03:31 +02:00
Lars Kruse 17f784270a Whitespace cleanup
* remove trailing whitespace
* remove empty lines at the end of files
2018-08-02 02:33:25 +02:00
Wanpeng Qian 8ccf6e8ef4 change dependency from gawk to awk 2018-06-13 12:01:04 +09:00
Lars Kruse c81c20ab3b unify DIRTYCONFIG handling in shell and python plugins
The following issues were fixed:
* comparison too broad (e.g. "0" misinterpreted as "true")
* python: comparing string with number (is never equal in python)
* unwanted non-zero exitcode (compound command "&&" as last command in
  shell code block (e.g. "case" or "if" branch))
* access to unset variable (shell style issue)
2018-04-07 02:17:06 +02:00
Lars Kruse c4c73eae4c zfs_usage_: explain the slash/underscore substitutions
see 608a2a5ad7
2018-03-09 03:55:41 +01:00
sumpfralle 413f7c444d
Merge pull request #875 from yoe/patch-1
Allow for _ in original dataset name
2018-03-09 03:48:16 +01:00
Lars Kruse 277730393d zpool_iostat: fix 'checkbashisms' issue
It was not a shell syntax problem - but just a checkbashisms issue.
2018-03-08 04:26:29 +01:00
Wouter Verhelst 608a2a5ad7 Allow for _ in original dataset name
The current code escapes / (which is legal as part of a dataset name for ZFS, but illegal as part of a munin graph name) into _ (which is legal for both). The result is that any _ characters in the original filename get changed into / in the legend, which is confusing.

Fix by escaping any existing _ characters into __ first, and then later replacing // into _ again. // is a sequence that will not occur in a ZFS dataset name, so any double-/ sequence must therefore have been a _ originally.
2017-09-18 13:56:29 +02:00
sumpfralle 61b6e28539 Merge pull request #867 from shakemid/add_zpool_cap
Add zpool_capacity plugin
2017-08-15 20:12:22 +02:00
K.Cima b2acd0514d Fix for pullreq #867 2017-08-14 12:04:00 +09:00
K.Cima 3f0af3802a Add zpool_capacity plugin 2017-08-04 17:05:12 +09:00
K.Cima a6b505540f Add illumos, FreeBSD, Linux support for zfs_arcstats plugin, cleanup code 2017-08-04 16:52:48 +09:00
Lars Kruse e384268157 [zpool_iostat] added example graphs (by @Rayziltl) 2017-07-22 16:02:25 +02:00
Lars Kruse 14fae65757 [zpool_iostat] keep previous fieldnames 2017-07-22 16:02:25 +02:00
Lars Kruse aa9a39f043 [zpool_iostat] improve formatting and variable names 2017-07-22 16:02:25 +02:00
Lars Kruse 2ad0dfec78 [zpool_iostat] fix whitespace issues 2017-07-22 16:02:25 +02:00
Lars Kruse 0e5e9cbdfb [zpool_iostat] use backward compatible fieldnames 2017-07-22 16:02:25 +02:00
Lars Kruse dd9cf0c0b9 [zpool_iostat] change category from 'filesystem' to 'disk' 2017-07-22 16:02:25 +02:00
Lars Kruse 7b2cefa45d [zpool_iostat] add POD documentation 2017-07-22 16:01:45 +02:00
Lars Kruse 77b9a515a5 [zpool_iostat] enable 'exit_on_error' and 'exit_on_unset' via 'set -eu' 2017-07-22 16:01:45 +02:00
Lars Kruse 3e86f2b80a [zpool_iostat] use 'clean_fieldname' and separate function 'get_pool_iostat'
FIeldnames possibly started with a digit before.
Closes: #779
2017-07-22 16:01:45 +02:00
Lars Kruse 9640be3646 [zpool_iostat] remove usage of temporary file 2017-07-22 16:01:45 +02:00
Lars Kruse 64c30de05f [zpool_iostat] autoconf checks zpool executable 2017-07-22 16:01:45 +02:00