Skip to content

Latest commit

 

History

History
275 lines (216 loc) · 11.1 KB

CHANGELOG.md

File metadata and controls

275 lines (216 loc) · 11.1 KB

Change Log

This project adheres to Semantic Versioning.

This CHANGELOG follows the format listed here

Fixed

  • check-smart-status.rb: - Check was ignoring all parameters, when ignore was not defined. @VeselaHouba
  • check-smart-status.rb: Now returns disk path instead of Disk Class instance reference. @VeselaHouba

[5.1.4] - 2020-11-05

Fixed

  • change Sensu asset build definition to match ruby-runtime build collection. No change to underlying plugin functionality

5.1.3 - 2020-06-02

Fixed

  • fix for incorrect Ruby literal string freeze in binaries

5.1.2 - 2020-05-20

Fixed

  • check-disk-usage.rb: More accurate disk percent usage ignoring privileged bytes (@SaviourSelf)

5.1.1 - 2020-04-22

Changed

  • Removed centos from .bonsai.yml to make Bonsai happy again

5.1.0 - 2020-04-22

Changed

  • Updated bundler dependancy to '~> 2.1'
  • Added option to ignore privileged bytes
  • Updated rubocop dependency to '~> 0.81.0'
  • Remediated rubocop issues
  • Updated sys-filesystem gem dependency from 1.3.2 to 1.3.4

5.0.1 - 2019-12-10

Changed

  • Updated readme for compliance with proposed plugins style guide
  • Updated sys-filesystem gem dependency from 1.1.7 to 1.3.2

Added

  • Updated asset build targets to support centos6

5.0.0 - 2019-04-10

Breaking Changes

  • Update minimum required ruby version to 2.3. Drop unsupported ruby versions.
  • Bump sensu-plugin dependency from ~> 1.2 to ~> 4.0 you can read the changelog entries for 4.0, 3.0, and 2.0

Added

  • Travis build automation to generate Sensu Asset tarballs that can be used n conjunction with Sensu provided ruby runtime assets and the Bonsai Asset Index
  • Require latest sensu-plugin for Sensu Go support

Fixed

  • check-smart-status.rb: Check for overrides when --device is used (@GwennG)

Breaking Changes

  • check-smart.rb: fixing a undefined error by renaming no-smart-capable-disks to --zero-smart-capable_disks as the parser sees any --no- argument and attempts to negate it which a (True|False)Class can not be cast to a symbol (@bdeluca)

3.1.1 - 2018-01-07

Fixed

  • metrics-disk-capacity.rb: incorrect translation of devicenames by switching to sub. This differs by replacing only the first occurrence of /dev/ as opposed to all occurrences (@nmollerup)

Added

  • check-disk-usage: adds documentation for -x and -p options

3.1.0 - 2018-05-02

Added

  • metrics-disk-capacity.rb, added solaris compatibility. Does not support inodes on solaris (@makaveli0129).
  • metrics-disk-usage.rb: added solaris compatibility. Does not support block_size for config (@makaveli0129)

3.0.1 - 2018-03-27

Security

3.0.0 - 2018-03-07

Security

Breaking Changes

  • removed ruby < 2.1 support (@majormoses)

Changed

  • updated the changelog location guidelines (@majormoses)
  • appeased the cops and created TODOs for refactoring (@majormoses)

2.5.1 - 2017-12-05

Fixed

  • check-disk-usage.rb: now exits unknown instead of critical when retrieving mountpoints fail (@exeral)

2.5.0 - 2017-08-28

Changed

  • check-smart.rb: The JSON file is now does not need to exist (@ChrisPortman)

Added

  • check-smart.rb: Add support for legacy smartctl output relating to Available and Enabled (@ChrisPortman)
  • check-smart.rb: Add option to specify the exit code to use when there are no smart capable devices (@ChrisPortman)

Removed

  • check-smart.rb: Removed duplicated smartctl runs

2.4.2 - 2017-08-17

Fixed

  • check-smart-status.rb: fixed regex for Available and Enabled (@nagyt234)

2.4.1 - 2017-08-08

Fixed

  • check-smart.rb: Fixed 'override' being ignored (@sovaa)

2.4.0 - 2017-07-20

  • check-smart.rb: Add path overrides via smart.json (@ArakniD)
  • check-smart-status.rb: Add path overrides via smart.json (@ArakniD)

2.3.0 - 2017-07-03

Added

  • travis testing on ruby 2.4.1 (@majormoses)

Fixed

  • fixed spelling of "Compatibility" in PR template (@majormoses)
  • check-smart.rb: deal with long keys in the info output (@robx)
  • check-smart.rb: accept "OK" disk health status (@robx)

2.2.0 - 2017-06-24

Added

  • check-smart-tests.rb: a plugin to check S.M.A.R.T. self tests status (@sndl)

2.1.0 - 2017-05-04

Changed

  • check-disk-usage.rb: show the decimals for disk usage figures
  • check-disk-usage.rb: dont do utilization check of devfs filesystems
  • bump sys-filesystem to 1.1.7

Fixed

  • check-fstab-mounts.rb: support swap mounts defined using UUID or LABEL
  • check-fstab-mounts.rb: support swap mounts defined using LVM /dev/mapper/*

2.0.1 - 2016-06-15

Fixed

  • metrics-disk-capacity.rb: fixed invalid string matching with =~ operator

2.0.0 - 2016-06-14

Changed

  • Updated Rubocop to 0.40, applied auto-correct.
  • metrics-disk.rb: Now using sysfs instead of lsblk for translating device mapper numbers to names
  • check-disk-usage.rb: values =< 1024 will not be modified for display in output

Removed

  • Remove Ruby 1.9.3 support; add Ruby 2.3.0 support

1.1.3 - 2016-01-15

Added

  • Add --json option to check-smart-status.rb

Changed

  • Let check-smart-status.rb skip SMART incapable disks

Fixed

  • metrics-disk-usage.rb: fix regular expression in unless statement
  • check-disk-usage.rb: fix wrong TiB formatting in to_human function

1.1.2 - 2015-12-14

Added

  • check-disk-usage.rb: Add option to include only certain mount points

1.1.1 - 2015-12-11

Fixed

  • check-disk-usage.rb fails on Windows with sys-filesystem (1.1.4)
  • bump sys-filesystem to 1.1.5

1.1.0 - 2015-12-08

Added

  • check-disk-usage.rb: Add ignore option to exclude mount point(s) based on regular expression
  • metrics-disk.rb: Add ignore and include options to exclude or include devices

Fixed

  • check-disk-usage.rb: Don't blow up when unable to read a filesystem

Removed

  • Remove dependency on filesystem gem

1.0.3 - 2015-10-25

Changed

  • Adds Ignore option(s) to check-disk-usage.rb
  • Adaptive thresholds

Adaptive Thresholds

This borrows from check_mk's "df" check, which has the ability to adaptively adjust thresholds for filesystems based on their sizes.

For example, a hard threshold of "warn at 85%" is quite different between small filesystems and very large filesystems - 85% utilization of a 20GB filesystem is arguably more serious than 85% utilization of a 10TB filesystem.

This uses check_mk's original alorithm to optionally adjust the percentage thresholds based on size, using a "magic factor", a "normalized size", and a "minium size to adjust".

The magic factor defaults to '1.0', which will not adjust thresholds. The minimum size defaults to '100' (GB). Filesystems smaller than this will not be adapted.

check_mk's documentation has a lot more information on this, including examples of adjustments based on the magic factor: https://mathias-kettner.de/checkmk_filesystems.html

1.0.2 - 2015-08-04

Changed

  • general cleanup

1.0.1 - 2015-07-14

Changed

  • updated sensu-plugin gem to 1.2.0

##1.0.0 - 2015-07-05

Changed

  • changed metrics filenames to conform to std
  • updated Rakefile to remove cruft
  • updated documentation links in README and CONTRIBUTING
  • updated gemspec to put deps in alpha order

0.0.4 - 2015-06-22

Fixed

  • Correct check of inodes method on object fs_info which was always returning false

0.0.3 - 2015-06-02

Fixed

  • added binstubs

Changed

  • removed cruft from /lib

0.0.2 - 2015-04-21

Fixed

  • deployment issue

0.0.1 - 2015-04-21

Added

  • initial release