Lars Kruse
2c9121708a
Fix some spelling mistakes
...
Thanks, codespell!
2021-04-05 23:24:50 +02:00
HaseHarald
a1e346bcb7
Fix warning on btrfs_device_stats.
...
It's always those typos!
2021-04-05 23:05:44 +02:00
Lars Kruse
da87fcd6c7
Fix spelling issues
2021-03-31 20:39:12 +02:00
Florian Sager
842acaef1a
Prevent escaping of internal names with leading numbers to fix graph processing
...
With serials like
Node SN Model Namespace Usage Format FW Rev
---------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
/dev/nvme0n1 285S100HTYST KXG50ZNV512G TOSHIBA 1 512,11 GB / 512,11 GB 512 B + 0 B AAGA4106
/dev/nvme1n1 S4GENX0N713949 SAMSUNG MZVLB512HBJQ-00000 1 474,89 GB / 512,11 GB 512 B + 0 B EXF7201Q
the internal names (by serial number) were rewritten to
Field Internal name Type Warn Crit Info
/dev/nvme0n1 _85S100HTYST_w derive
/dev/nvme1n1 S4GENX0N713949_w derive
--> the trailing underscore in case of nvme0n1 created problems in graph processing:
[RRD ERROR] Unable to graph /var/cache/munin/www/lxdserver/....agitos.de/nvme_bytes-month.png : undefined vname c285S100HTYST_r
Therefore I added a prefix 'SN_' for internal names.
2021-03-18 14:25:23 +01:00
Kjetil Torgrim Homme
c7299aeba2
nvme: add graph for spare capacity. add support for limits
...
The default limits are sort of randomly chosen. My nvme drives report
a warning level at 10% spare capacity, so I kept that here.
2021-03-14 16:02:24 +01:00
Steve Schnepp
0d13497ed8
Merge pull request #1174 from steveschnepp/plugin/smart_
...
Adding a new C plugin : smart_
2021-02-07 12:27:56 +01:00
Steve Schnepp
b86f1d0ffe
smart_: port to openbsd & macos
2021-02-07 12:19:39 +01:00
Steve Schnepp
6eff786eef
smart: importing common.{h,c} from munin-c
...
The compilation is very easy, a simple `make` should work, as I provided
a convenient `Makefile`
2021-02-07 12:17:14 +01:00
Steve Schnepp
a420c4eb58
smart_: renaming the file
...
The destination file is a wildcard one. Therefore the C file should be
named with a trailing `_`.
2021-02-07 12:15:07 +01:00
Bastiaan van Kesteren
2fd3eec87c
Hacked together a smart_ plugin in C
...
There is some trickery going on to not wakeup the disk when it's in standby
Note: this was aimed at munin-c, but was rejected since it uses a
subprocess that calls the `smartctl` tool.
2021-02-07 12:03:41 +01:00
Andreas Perhab
82644213e3
during DELAYED/PENDING resyncs mark reshape/recovery percent as unknown instead of 0
2021-01-29 16:22:34 +01:00
Kim B. Heino
a45257a64a
stratis: code cleanup and use perlpod format for documentation
2021-01-10 17:47:54 +01:00
Kim B. Heino
7d31b4ce25
stratis: new plugin to monitor stratis filesystem
2021-01-10 17:47:54 +01:00
Samuel Smith
f90427c32a
Update for extra fields in newer kernels
...
The fields have changed from 11 or 15 on recent kernels but does not effect what the plugin gathers.
See 5.4 https://www.kernel.org/doc/html/v5.4/block/stat.html versus 4.16 https://mjmwired.net/kernel/Documentation/block/stat.txt
2021-01-08 15:33:58 +01:00
Kjetil Torgrim Homme
6c7ad652b9
silly bug: writecycles must be calculated from *written* bytes
...
This fixes issue #1127
2020-11-13 22:54:19 +01:00
rantal
14e5261e27
Fix to work with old lsblk version...
2020-10-29 00:00:23 +01:00
Lars Kruse
a7139bcaee
Unify shebang for python scripts
2020-10-28 23:38:41 +01:00
Lars Kruse
09b88141b3
Improve documantion of many plugins
...
Specifically the configuration examples are now indented properly.
2020-10-24 17:29:08 +02:00
Lars Kruse
0ff03ad469
Remove dummy plugins containing only references to external repositories
2020-09-23 05:06:01 +02:00
Lars Kruse
bd872f7af1
btrfs_*_usage: add example graphs
...
Provided by HaseHarald.
See https://github.com/munin-monitoring/contrib/pull/1114 .
2020-08-26 03:24:37 +02:00
HaseHarald
3f92394b23
Touchups on configuration.
2020-08-25 22:01:19 +02:00
HaseHarald
6f0e91f850
Add perldoc-style header.
2020-08-25 20:21:19 +02:00
HaseHarald
bffbc23a4e
Fix linting issues.
2020-08-24 21:37:29 +02:00
HaseHarald
675dedf1d4
[plugins/disk/btrfs_device_usage] Reformat linebreaks.
...
Following suggestions from linting.
2020-08-23 18:17:21 +02:00
HaseHarald
f12bfed795
[plugins/disk/btrfs_device_stats] Remove unused variable.
2020-08-23 18:15:40 +02:00
HaseHarald
7d220d0ae6
[plugins/disk/btrfs_device_usage] Fix issues brought up by CI.
...
- Remove trailing whitespace.
- Add whitespace around operators.
- Add linebreaks to shorten the lines.
2020-08-23 17:45:08 +02:00
HaseHarald
5f88f9ad06
Fix issues brought up by CI.
...
- Remove trailing whitespace
- Remove unused variable.
2020-08-23 17:34:21 +02:00
HaseHarald
7bf77a008d
[plugins/disk/btrfs_device_stats] Add a plugin to monitor device stats from btrfs.
...
Monitors the different device-counters (mostly for errors) of the disks in a btrfs pool.
2020-08-23 16:43:21 +02:00
HaseHarald
10f2d97ffe
[plugins/disk/btrfs_device_usage] Add plugin to monitor btrfs usage on a device level.
...
Shows the used size of each device in a btrfs pool in bytes and percent.
2020-08-23 16:38:38 +02:00
zivillian
ca2484b357
extend workaround for multiple dashes
2020-08-14 01:11:08 +02:00
zivillian
58e371308a
extend workaround for multiple dashes
2020-08-14 01:11:08 +02:00
Lars Kruse
cdb9a4456f
Plugin xfs_frag: fix shellcheck issues
2020-03-26 04:23:21 +01:00
Lars Kruse
8713eb3722
Fix spelling mistakes in comments and descriptions
...
Thanks, codespell!
2020-03-26 04:23:21 +01:00
root
3cd15a8220
improved ext2, ext3, ext4 filesystems search
2019-09-05 23:32:56 +02:00
rantal
735689d47a
btrfs_subvol_usage: fix "btrfs qgroup show" output format
...
Switch "btrfs qgroup show" for raw output format, because by default it's human readable form and can't be read by scripts.
2019-08-17 01:58:40 +02:00
Lars Kruse
95623db8d2
Merge pull request #997 from rantal/master
...
Update megaraid-controller-information to support "megacli" executable name
2019-07-26 01:44:58 +02:00
rantal
5bebfeea9e
Update megaraid-controller-information
2019-07-25 14:46:08 +03:00
rantal
e5f7966dfb
Update megaraid-controller-information to support "megacli" name of tools executable
2019-07-23 18:03:33 +03:00
Lars Kruse
a77f299642
Merge pull request #948 from kjetilho/plugin-nvme
...
nvme - Munin plugin to monitor the use of NVMe devices
2019-07-21 23:39:37 +02:00
Edward Plainview
5fcad70008
Fix spaces in directory names. Glob directories.
2019-01-08 15:54:42 +01:00
Mikkel Kirkgaard Nielsen
21c28638e3
Generate cache file if missing
...
Don't exit with error if cache file is missing, instead refrain from sending values and daemonize() in an attempt to generate one.
Invocation using 'config' before generation is successful will fail, as mentioned in #914 , but configuration will get picked up as soon as it is present.
2018-10-04 19:53:31 +02:00
Kjetil Torgrim Homme
a2267c05ed
more sanity checking. give appropriate feedback to autoconf.
2018-10-02 10:29:23 +02:00
Kjetil Torgrim Homme
cca33b3984
nvme - Munin plugin to monitor the use of NVMe devices
...
This is a multigraph plugin which makes three graphs, nvme_usage, nvme_bytes and nvme_writecycles
2018-09-26 19:57:13 +02:00
Christopher Desjardins
a5ed119b6e
Add sort to the du command to keep things in order of size
2018-09-20 12:06:05 +02:00
Christopher Desjardins
725d904131
Add clean_path back, it got dropped when clean_fieldname was added
...
This allows you to tidy up your munin dir stats
2018-09-20 12:05:42 +02:00
Lars Kruse
2ec4e4c1f7
Improve incorrect or unspecific output for "autoconf"
...
Some plugins emit wrongly formatted "no" messages or lack the "yes"
message on success.
2018-09-16 15:13:38 +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
Samuel Smith
37b533a5c3
Fix Odd number of elements in hash at linux_diskstat_ line 321
...
Reading from /sys/block/*/stat does not provide the disk major and minor
numbers (versus reading from /proc/diskstats). When saving the disk data
back to a temp state file, these empty values for the disk major and
minor numbers get turned into undef values on state restore.
On the line: `my ( $prev_time, %prev_diskstat ) = restore_state();`
`%prev_diskstat` will 'slurp' up all returned values from the function
call (converting the list into key value pairs) but if one of last
values is from the major or minor number (which will be undef), the key
(major or minor) will be sent but the undef value will not be
sent. Hence this results in an attempted hash assignment where one of
the key values pairs is missing a value and thus the 'Odd number of
elements in hash assignment ' warning is thrown.
2018-07-18 13:22:27 -05:00
Vincas Dargis
29dd82be36
Fix du-2 to use clean_fieldname()
...
Update du-2 to fix "No .label provided" error by using clean_fieldname().
2018-03-28 11:43:28 +00:00