Cannot Get Correct Values from check_local_disk
Posted: Thu Mar 06, 2014 1:29 pm
We are getting warning messages from check_local_disk when we should NOT be, as I have been checking the linux server disk usage with df -h:
[root@ourserver etc]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_livm37-lv_root 11T 435G 9.8T 5% /
tmpfs 253G 0 253G 0% /dev/shm
/dev/sda1
The check_local_disk is returning warning message:
[1393909200] CURRENT SERVICE STATE: ourserver.com;Root Partition;OK;HARD;1;DISK OK - free space: / 124402 MB (26% inode=99%):
The above two do not match.
Here is the setting in minimal.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 ourserver.com
service_description Root Partition
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
contact_groups admins
notification_options w,u,c,r
notification_interval 960
notification_period 24x7
check_command check_local_disk!20%!10%!/
}
Also see attached screen shot of our Nagios GUI warning message for this server.
So what am I doing wrong in getting these warning messages when I should not be getting them?
Is there another configuration file that needs to be set?
Please help.
[root@ourserver etc]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_livm37-lv_root 11T 435G 9.8T 5% /
tmpfs 253G 0 253G 0% /dev/shm
/dev/sda1
The check_local_disk is returning warning message:
[1393909200] CURRENT SERVICE STATE: ourserver.com;Root Partition;OK;HARD;1;DISK OK - free space: / 124402 MB (26% inode=99%):
The above two do not match.
Here is the setting in minimal.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 ourserver.com
service_description Root Partition
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
contact_groups admins
notification_options w,u,c,r
notification_interval 960
notification_period 24x7
check_command check_local_disk!20%!10%!/
}
Also see attached screen shot of our Nagios GUI warning message for this server.
So what am I doing wrong in getting these warning messages when I should not be getting them?
Is there another configuration file that needs to be set?
Please help.