[From nobody Wed Nov  4 15:57:08 2026
Received: (at submit) by bugs.debian.org; 10 May 2019 11:03:46 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2-bugs.debian.org_2005_01_02
 (2018-09-13) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-12.1 required=4.0 tests=BAYES_00, FOURLA, HAS_PACKAGE,
 TXREP,XMAILER_REPORTBUG autolearn=ham autolearn_force=no
 version=3.4.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 22; hammy, 150; neutral, 72; spammy,
 0. spammytokens: hammytokens:0.000-+--H*x:7.1.7, 0.000-+--H*UA:7.1.7,
 0.000-+--H*M:reportbug, 0.000-+--H*MI:reportbug, 0.000-+--H*x:reportbug
Return-path: &lt;stefan@mail.bc-bd.org&gt;
Received: from mail.bc-bd.org ([88.217.195.190])
 by buxtehude.debian.org with esmtp (Exim 4.89)
 (envelope-from &lt;stefan@mail.bc-bd.org&gt;) id 1hP3JZ-00032C-O0
 for submit@bugs.debian.org; Fri, 10 May 2019 11:03:45 +0000
Received: by mail.bc-bd.org (Postfix, from userid 1001)
 id C5167A12C2; Fri, 10 May 2019 12:57:25 +0200 (CEST)
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: stefan@mail.bc-bd.org
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: monitoring-plugins-basic: check_disk ignores inode thresholds after -A
Message-ID: &lt;155748584422.57913.643451334331628069.reportbug@mail.bc-bd.org&gt;
X-Mailer: reportbug 7.1.7
Date: Fri, 10 May 2019 12:57:24 +0200
X-Greylist: delayed 376 seconds by postgrey-1.36 at buxtehude;
 Fri, 10 May 2019 11:03:45 UTC
Delivered-To: submit@bugs.debian.org

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

Thanks,

	Stefan

-- 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
]