[Pkg-nagios-devel] Bug#928752: monitoring-plugins-basic: check_disk ignores inode thresholds after -A

stefan at mail.bc-bd.org stefan at mail.bc-bd.org
Fri May 10 11:57:24 BST 2019

Package: monitoring-plugins-basic
Version: 2.2-3
Severity: normal

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



-- System Information:
Debian Release: 9.9
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-8-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages monitoring-plugins-basic depends on:
ii  iputils-ping               3:20161105-1
ii  libc6                      2.24-11+deb9u4
ii  libssl1.1                  1.1.0j-1~deb9u1
ii  monitoring-plugins-common  2.2-3
ii  procps                     2:3.3.12-3+deb9u1
ii  ucf                        3.0036

Versions of packages monitoring-plugins-basic recommends:
ii  libcap2-bin  1:2.25-1

Versions of packages monitoring-plugins-basic suggests:
ii  icinga2  2.6.0-2+deb9u1

-- no debconf information

More information about the Pkg-nagios-devel mailing list