Comment 0 for bug 1940916

Revision history for this message
Jonathan Wiltshire (tiger-jmw) wrote :

$ lsb_release -d
Description: Ubuntu 20.04.3 LTS

$ apt-cache policy monitoring-plugins | head -n2
monitoring-plugins:
  Installed: 2.2-6ubuntu1.1

check_disk returns UNKNOWN for tmpfs filesystems, even when directed to explicitly to check them. This is a regression introduced by the fix for LP: #1827159.

Steps to reproduce:

$ df -h /tmp
Filesystem Size Used Avail Use% Mounted on
tmpfs 16G 64K 16G 1% /tmp
$ /usr/lib/nagios/plugins/check_disk -w 10% -c 5% -p /tmp
DISK UNKNOWN - free space:|

Running the check as part of a group, even with just the one member, is a workaround:

$ /usr/lib/nagios/plugins/check_disk -w 10% -c 5% -g tmp -p /tmp
DISK OK - free space: tmp 16058 MB (99% inode=99%);| tmp=0MB;14452;15255;0;16058