check_disk problems

Brian Ipsen Brian.Ipsen-sender-25cac0 at andebakken.dk
Mon Jun 30 18:38:44 CEST 2003


Hi,

> When I execute the command:
>
> /usr/local/nagios/libexec/check_disk -w 30 -c 10 -p /dev/hda2
> DISK OK [5285776 kB (20%) free on /dev/hda2]
>
> The message is DISK OK, but must be DISK WARNING.
> This is not running...?!?
>
> or when execute:
>
> /usr/local/nagios/libexec/check_disk -w 40 -c 30 -p /dev/hda2
> DISK OK [5285764 kB (20%) free on /dev/hda2]
>
> The message is DISK OK, who is the CRITICAL message ?
>
> I'm have Nagios 1.1 and Slack 8.1.

The syntax from check_disk:

# ./check_disk -h
check_disk (nagios-plugins 1.3.0) 1.7
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Copyright (c) 2000 Ethan Galstad/Karl DeBisschop

This plugin will check the percent of used disk space on a mounted
file system and generate an alert if percentage is above one of the
threshold values.

Usage: check_disk -w limit -c limit [-p path | -x device] [-t timeout] [-m]
[-e] [--verbose]
       check_disk (-h|--help)
       check_disk (-V|--version)

Options:
 -w, --warning=INTEGER
   Exit with WARNING status if less than INTEGER kilobytes of disk are free
 -w, --warning=PERCENT%
   Exit with WARNING status if less than PERCENT of disk space is free
 -c, --critical=INTEGER
   Exit with CRITICAL status if less than INTEGER kilobytes of disk are free
 -c, --critical=PERCENT%
   Exit with CRITCAL status if less than PERCENT of disk space is free

Did you remember the percentage '%' in your limits ?? If not, it checks
kilobytes instead of percentages..

/Brian


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list