Sends false disk space alerts

Bug #409958 reported by Ryan Lovett
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nagios2 (Ubuntu)
Won't Fix
Low
Unassigned

Bug Description

Binary package hint: nagios2

I received the following message from nagios2 on my server running hardy:

===========================================================
Notification Type: PROBLEM

Service: Disk Space
Host: localhost
Address: 127.0.0.1
State: WARNING

Date/Time: Thu Aug 6 04:03:40 PDT 2009

Additional Info:

DISK WARNING - free space: / 3763 MB (83% inode=93%): /var/run 4001 MB (99%
inode=99%): /var/lock 4001 MB (100% inode=99%): /dev 4001 MB (99% inode=99%):
/dev/shm 4001 MB (100% inode=99%): /tmp 3512 MB (97% inode=99%): /usr 3107 MB
(34% inode=53%): /var 88851 MB (91% inode=99%): /var/tmp 7545 MB (83%
inode=96%): /mnt/backup 3765
===========================================================

I'm using the default localhost_nagios2.cfg config file which check for < 20% free (warning) and < 10% free (critical), however none of my partitions exceeds 66%. I received another message later which has nearly identical values. Note that I did not truncate the text below, it actually does end with an open parenthesis:

===========================================================
Notification Type: RECOVERY

Service: Disk Space
Host: localhost
Address: 127.0.0.1
State: OK

Date/Time: Thu Aug 6 04:08:40 PDT 2009

Additional Info:

DISK OK - free space: / 3763 MB (83% inode=93%): /var/run 4001 MB (99%
inode=99%): /var/lock 4001 MB (100% inode=99%): /dev 4001 MB (99% inode=99%):
/dev/shm 4001 MB (100% inode=99%): /tmp 3512 MB (97% inode=99%): /usr 3107 MB
(34% inode=53%): /var 88850 MB (91% inode=99%): /var/tmp 7545 MB (83%
inode=96%): /mnt/backup 3765 MB (

Revision history for this message
Chuck Short (zulcss) wrote :

If you are using the default configration for nagios it does a disk inode check which is what you are seeing below. Please post the output of your commands.cfg.

Thanks
chuck

Changed in nagios2 (Ubuntu):
assignee: nobody → Chuck Short (zulcss)
status: New → Incomplete
Chuck Short (zulcss)
Changed in nagios2 (Ubuntu):
importance: Undecided → Low
Chuck Short (zulcss)
Changed in nagios2 (Ubuntu):
assignee: Chuck Short (zulcss) → nobody
Revision history for this message
Chuck Short (zulcss) wrote :

We'd like to figure out what's causing this bug for you, but we haven't heard back from you in a while. Could you please provide the requested information? Thanks!

Revision history for this message
Ryan Lovett (ryan-spacecoaster) wrote : Re: [Bug 409958] Re: Sends false disk space alerts

On Fri, Oct 16, 2009 at 02:32:56PM -0000, Chuck Short wrote:
> We'd like to figure out what's causing this bug for you, but we haven't
> heard back from you in a while. Could you please provide the requested
> information? Thanks!

I'm using the default commands.cfg file; no alterations. (8.04)

Ryan

Revision history for this message
Chuck Short (zulcss) wrote :

Thanks for the response. This isnt a bug the default config for nagios checks the percentage of inodes left. If you want to check the disk space then you will have to change your config.

Regards
chuck

Changed in nagios2 (Ubuntu):
status: Incomplete → Won't Fix
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%
        }

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.