check_disk: Warning threshold must be integer or percentage!
Marcel Mitsuto Fucatu Sugano
msugano at uolinc.com
Tue Nov 8 14:23:29 CET 2005
On Tue, 2005-11-08 at 18:40 +0530, ankush grover wrote:
> "check_disk: Warning threshold must be integer or percentage! "
# ../libexec/check_disk
check_disk: Could not parse arguments
Usage: check_disk -w limit -c limit [-p path | -x device] [-t timeout]
[-m] [-e]
[-v] [-q]
gamling:/opt/nagios/bin # ../libexec/check_disk -h
check_disk (nagios-plugins 1.4) 1.56
Copyright (c) 1999 Ethan Galstad <nagios at nagios.org>
Copyright (c) 1999-2004 Nagios Plugin Development Team
<nagiosplug-devel at lists.sourceforge.net>
This plugin checks the amount of used disk space on a mounted file
system
and generates an alert if free space is less than one of the threshold
values.
Usage: check_disk -w limit -c limit [-p path | -x device] [-t timeout]
[-m] [-e]
[-v] [-q]
Options:
-h, --help
Print detailed help screen
-V, --version
Print version information
-w, --warning=INTEGER
Exit with WARNING status if less than INTEGER --units 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 --units of disk are
free
-c, --critical=PERCENT%
Exit with CRITCAL status if less than PERCENT of disk space is free
-C, --clear
Clear thresholds
-u, --units=STRING
Choose bytes, kB, MB, GB, TB (default: MB)
-k, --kilobytes
Same as '--units kB'
-m, --megabytes
Same as '--units MB'
-l, --local
Only check local filesystems
-p, --path=PATH, --partition=PARTITION
Path or partition (may be repeated)
-x, --exclude_device=PATH <STRING>
Ignore device (only works if -p unspecified)
-X, --exclude-type=TYPE <STRING>
Ignore all filesystems of indicated type (may be repeated)
-M, --mountpoint
Display the mountpoint instead of the partition
-e, --errors-only
Display only devices/mountpoints with errors
-w, --warning=DOUBLE
Response time to result in warning status (seconds)
-c, --critical=DOUBLE
Response time to result in critical status (seconds)
-t, --timeout=INTEGER
Seconds before connection times out (default: 10)
-v, --verbose
Show details for command-line debugging (Nagios may truncate output)
Examples:
check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /
Checks /tmp and /var at 10%,5% and / at 100MB, 50MB
Send email to nagios-users at lists.sourceforge.net if you have questions
regarding use of this software. To submit patches or suggest
improvements,
send email to nagiosplug-devel at lists.sourceforge.net
>
> Moreover How to do I monitor mysql ?
check_tcp: check_tcp -H mysql.host -p 3306
>
> Is it possible to monitor windows 2000/XP/2003 machines with nagios ?
Yes.
--
Marcel Mitsuto Fucatu Sugano <msugano at uolinc.com>
Universo Online S.A. -- http://www.uol.com.br
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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