Comment 5 for bug 409958

Revision history for this message
Ryan Lovett (ryan-spacecoaster) wrote :

According to the output above, both disk space and inode usage are being checked. For example

/var 88850 MB (91% inode=99%)

But

# df -i /var
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sdb5 6483456 36212 6447244 1% /var
# df -h /var
Filesystem Size Used Avail Use% Mounted on
/dev/sdb5 100G 8.2G 87G 9% /var

The nagios output is displaying free space and free inodes but appears to be sending out a warning thinking the percentages are utilized space and utilized inodes. Given that 91% (disk free) and 99% (inode free) are greater than 20%, a warning should not have been sent.

localhost_nagios2.cfg:
# Define a service to check the disk space of the root partition
# on the local machine. Warning if < 20% free, critical if
# < 10% free space on partition.

define service{
        use generic-service ; Name of service template to use
        host_name localhost
        service_description Disk Space
        check_command check_all_disks!20%!10%
        }