#928752 monitoring-plugins-basic: check_disk ignores inode thresholds after -A

Package:
monitoring-plugins-basic
Source:
monitoring-plugins
Description:
Plugins for nagios compatible monitoring systems (basic)
Submitter:
Date:
2023-09-21 17:36:15 UTC
Severity:
normal
Tags:
#928752#5
Date:
2019-05-10 10:57:24 UTC
From:
To:
Dear Maintainer,

when speciying inode threshold after -A (--all) they are ignored.

Testing with a near out of inodes disk:

	df -i /
	Filesystem Inodes   IUsed IFree IUse% Mounted on
	....root  2510032 2503586  6446  100% /

Passing -A before inode settings, but after block settings leads to OK:

	/usr/lib/nagios/plugins/check_disk -w 10% -c 5% -A -W 10% -K 5%
	DISK OK - free space: ... / 25612 MB (70% inode=0%);

Moving -A to the end leads to the expected CRITICAL:

	/usr/lib/nagios/plugins/check_disk -w 10% -c 5% -W 10% -K 5% -A
	DISK CRITICAL - free space: ... / 25612 MB (70% inode=0%);

FWIW there seems to be some checking wrt -A position:

	/usr/lib/nagios/plugins/check_disk -A -w 10% -c 5% -W 10% -K 5%
	DISK UNKNOWN: Must set a threshold value before using -r/-R

Thanks,

	Stefan