<feed xmlns='http://www.w3.org/2005/Atom'>
<title>monitoring-plugins/plugins/t/check_disk.t, branch 3.0.0-rc3</title>
<subtitle>Monitoring Plugins
</subtitle>
<id>https://www.monitoring-plugins.org/repositories/monitoring-plugins/atom?h=3.0.0-rc3</id>
<link rel='self' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/atom?h=3.0.0-rc3'/>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/'/>
<updated>2026-04-06T09:55:27Z</updated>
<entry>
<title>Revert check_disk performance data back to used space (#2243)</title>
<updated>2026-04-06T09:55:27Z</updated>
<author>
<name>Lorenz Kästle</name>
<email>12514511+RincewindsHat@users.noreply.github.com</email>
</author>
<published>2026-04-06T09:55:27Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=c57381d789fb246602966fccfcb80131a7fb0461'/>
<id>urn:sha1:c57381d789fb246602966fccfcb80131a7fb0461</id>
<content type='text'>
* Implement simple output shortcut for ranges

If ranges start with zero (e.g. 0:10), the zero and the colon
can be left out.

This patch implements this by default, since some systems (icinga2)
do not fully implement the whole range format and this reduces errors
in the common case of just an upper border.

* switch check_disk perfdata back to used space</content>
</entry>
<entry>
<title>check_disk: compare inode thresholds against the correct value (#2223)</title>
<updated>2026-01-16T11:16:45Z</updated>
<author>
<name>Lorenz Kästle</name>
<email>12514511+RincewindsHat@users.noreply.github.com</email>
</author>
<published>2026-01-16T11:16:45Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=f5f60f57172a4157b90415746a0f1a87c46c0bd9'/>
<id>urn:sha1:f5f60f57172a4157b90415746a0f1a87c46c0bd9</id>
<content type='text'>
* check_disk: compare inode thresholds against the correct value

* check_disk: Detect free inode number correctly in tests

---------

Co-authored-by: Lorenz Kästle &lt;lorenz.kaestle@netways.de&gt;</content>
</entry>
<entry>
<title>Try fixing some tests</title>
<updated>2025-03-31T21:40:22Z</updated>
<author>
<name>Lorenz Kästle</name>
<email>12514511+RincewindsHat@users.noreply.github.com</email>
</author>
<published>2025-03-31T20:29:49Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=13c9de8c77477e78014622f5c4ff31226aeb286d'/>
<id>urn:sha1:13c9de8c77477e78014622f5c4ff31226aeb286d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>check_disk: decrease precision to avoid false negatives with small measurement changes</title>
<updated>2025-03-31T20:18:19Z</updated>
<author>
<name>Lorenz Kästle</name>
<email>12514511+RincewindsHat@users.noreply.github.com</email>
</author>
<published>2025-03-31T20:18:19Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=24a50b9421050b3c49dd07eddc942934f66685ca'/>
<id>urn:sha1:24a50b9421050b3c49dd07eddc942934f66685ca</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add debugging to tests for CI</title>
<updated>2025-03-30T21:42:50Z</updated>
<author>
<name>Lorenz Kästle</name>
<email>12514511+RincewindsHat@users.noreply.github.com</email>
</author>
<published>2025-03-30T21:42:50Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=d1d6ba67065c0b1a8a61d59522e19a94eb647c94'/>
<id>urn:sha1:d1d6ba67065c0b1a8a61d59522e19a94eb647c94</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Codespell fixes</title>
<updated>2025-03-30T20:46:09Z</updated>
<author>
<name>Lorenz Kästle</name>
<email>12514511+RincewindsHat@users.noreply.github.com</email>
</author>
<published>2025-03-30T20:46:09Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=c4fd34ed7966a197e596f3e766f58423fe9c5ddc'/>
<id>urn:sha1:c4fd34ed7966a197e596f3e766f58423fe9c5ddc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Address check_disk changes in tests</title>
<updated>2025-03-30T20:38:12Z</updated>
<author>
<name>Lorenz Kästle</name>
<email>12514511+RincewindsHat@users.noreply.github.com</email>
</author>
<published>2025-03-30T20:38:12Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=76971dea753d52d3e177aa84605d9b239a3a793e'/>
<id>urn:sha1:76971dea753d52d3e177aa84605d9b239a3a793e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>check_disk: Fail on missing arguments for --warning and --critical and fix a test case (#1935)</title>
<updated>2024-03-26T23:36:41Z</updated>
<author>
<name>Lorenz Kästle</name>
<email>12514511+RincewindsHat@users.noreply.github.com</email>
</author>
<published>2024-03-26T23:36:41Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=d3faf13961c61b3ad69b47960124d3269c5f335e'/>
<id>urn:sha1:d3faf13961c61b3ad69b47960124d3269c5f335e</id>
<content type='text'>
* check_disk: Fail on missing arguments for --warning and --critical
* Add new test function for percentage expressions and use it in check_disk
* Add error abort in tests if they fail to parse output
* Fix typo in test which probably broke the test since forever :-(</content>
</entry>
<entry>
<title>check_disk increase alert precision (#1989)</title>
<updated>2024-02-23T17:24:28Z</updated>
<author>
<name>Sven Nierlein</name>
<email>sven@consol.de</email>
</author>
<published>2024-02-23T17:24:28Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=117cd8e4b826e471e795536228628d817df33f5a'/>
<id>urn:sha1:117cd8e4b826e471e795536228628d817df33f5a</id>
<content type='text'>
* check_disk increase alert precision

Free disk percentage value was rounded to a full integer meaning it alerted about ~1% percent too early. This is about 10GB on a 1TB disk.
The warning and critical thresholds already support float values, so just the percentage calculation needs to be improved.

old:

    ./check_disk -w 35% -c 20% -p / -f -vvv
    Thresholds(pct) for / warn: 35.000000 crit 20.000000
    calling stat on /
    For /, used_pct=65 free_pct=35 used_units=286451 free_units=156651 total_units=443102 used_inodes_pct=11 free_inodes_pct=89 fsp.fsu_blocksize=4096 mult=1048576
    Freespace_units result=0
    Freespace% result=1
    Usedspace_units result=0
    Usedspace_percent result=0
    Usedinodes_percent result=0
    Freeinodes_percent result=0
    DISK WARNING - free space: WARNING [ / 156651MiB (35% inode=89%)];| /=300365643776B;302006979788;371700898201;0;464626122752

new:

    ./check_disk -w 35% -c 20% -p / -f -vvv
    Thresholds(pct) for / warn: 35.000000 crit 20.000000
    calling stat on /
    For /, used_pct=64.649722 free_pct=35.350278 used_units=286464 free_units=156637 total_units=443102 used_inodes_pct=10.016183 free_inodes_pct=89.983817 fsp.fsu_blocksize=4096 mult=1048576
    Freespace_units result=0
    Freespace% result=0
    Usedspace_units result=0
    Usedspace_percent result=0
    Usedinodes_percent result=0
    Freeinodes_percent result=0
    DISK OK - free space: / 156637MiB (35.4% inode=90%);| /=300379275264B;302006979788;371700898201;0;464626122752

* check_disk: adjust test case to support float precision</content>
</entry>
<entry>
<title>check_disk: fix ignore-missing in combination with includes (fixes #1963)</title>
<updated>2023-11-27T12:04:10Z</updated>
<author>
<name>Sven Nierlein</name>
<email>sven@consol.de</email>
</author>
<published>2023-11-27T12:00:57Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=579db5a93071547f5484c1690b621a60b46b2e1e'/>
<id>urn:sha1:579db5a93071547f5484c1690b621a60b46b2e1e</id>
<content type='text'>
Using --ignore-missing together with regex matching and ignore option lead
to a wrong error message.

    ./check_disk -n -w 10% -c 5% -W 10% -r /dummy -i /dummy2
    DISK UNKNOWN: Paths need to be selected before using -i/-I. Use -A to select all paths explicitly

The use case here is a cluster with fail-over mounts. So it is a valid situation that
the regex match does not find anything in addtition with a ignore which also does not exist.

After this patch:

    ./check_disk -n -w 10% -c 5% -W 10% -r /dummy -i /dummy2
    DISK OK - No disks were found for provided parameters|
</content>
</entry>
</feed>
