[Nagiosplug-help] check_disk Percentage?
Arnold Cano
arnoldc at mcmservice.com
Thu Apr 1 11:32:11 CEST 2004
Jim,
Just add the percent sign to your values and it will work as expected.
Arnold
On Thu, 2004-04-01 at 13:02, Jim Matthews wrote:
> Hi
>
> How do I use check_disk to monitor the percentage of disk space? The
> --help shows that the value can either be a percentage or an integer. How
> do you differentiate?
>
> check_disk (nagios-plugins 1.3.0) 1.7
> 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
>
> Here's my system:
> % df -k
> Filesystem kbytes used avail capacity Mounted on
> /dev/dsk/c0t0d0s0 5038454 4236683 751387 85% /
>
> % ./check_disk -w 20 -c 10 /
> DISK OK [752116 kB (15%) free on /dev/dsk/c0t0d0s0]
>
> Shouldn't that command generate a warning as I have less than 20% free?
>
> Thanks.
> ---------------------
> Jim Matthews
> ISS Systems Administrator
> Duke University - Perkins Library
> Box 90196
> Durham, NC 27708
> Email: jim.matthews at duke.edu
> Voice: 919-660-5963
> Fax: 919-684-6990
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
More information about the Help
mailing list