[Nagiosplug-help] RES: Nagiosplug-help digest, Vol 1 #479 - 3 msgs

Marcos de Benedicto marcos.benedicto at nextel.com.br
Mon Apr 5 06:38:01 CEST 2004


Jim, try

./check_disk -w 10 -c 20 /

first arg is warning %.

-----------------
Marcos de Benedicto
Nextel Telecom
Brasil


-----Mensagem original-----
De: nagiosplug-help-request at lists.sourceforge.net
[mailto:nagiosplug-help-request at lists.sourceforge.net] 
Enviada em: sexta-feira, 2 de abril de 2004 1:03
Para: nagiosplug-help at lists.sourceforge.net
Assunto: Nagiosplug-help digest, Vol 1 #479 - 3 msgs

Send Nagiosplug-help mailing list submissions to
	nagiosplug-help at lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
or, via email, send a message with subject or body 'help' to
	nagiosplug-help-request at lists.sourceforge.net

You can reach the person managing the list at
	nagiosplug-help-admin at lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Nagiosplug-help digest..."


Today's Topics:

   1. check_disk Percentage? (Jim Matthews)
   2. Re: check_disk Percentage? (Arnold Cano)
   3. Re: check_disk Percentage? (Jim Matthews)

--__--__--

Message: 1
To: nagiosplug-help at lists.sourceforge.net
From: Jim Matthews <jim.matthews at notes.duke.edu>
Date: Thu, 1 Apr 2004 14:02:27 -0500
Subject: [Nagiosplug-help] check_disk Percentage?

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


--__--__--

Message: 2
Subject: Re: [Nagiosplug-help] check_disk Percentage?
From: Arnold Cano <arnoldc at mcmservice.com>
To: Jim Matthews <jim.matthews at notes.duke.edu>
Cc: nagiosplug-help at lists.sourceforge.net
Date: Thu, 01 Apr 2004 13:32:00 -0600

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
> 



--__--__--

Message: 3
To: nagiosplug-help at lists.sourceforge.net
Subject: Re: [Nagiosplug-help] check_disk Percentage?
From: Jim Matthews <jim.matthews at notes.duke.edu>
Date: Thu, 1 Apr 2004 17:23:51 -0500

D'oh!

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



Arnold Cano <arnoldc at mcmservice.com> 
04/01/2004 02:32 PM

To
Jim Matthews <jim.matthews at notes.duke.edu>
cc
nagiosplug-help at lists.sourceforge.net
Subject
Re: [Nagiosplug-help] check_disk Percentage?






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
> 






--__--__--

_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help


End of Nagiosplug-help Digest
 --Esta mensagem pode conter informacoes confidenciais e/ou privilegiadas.
Se voce nao for o destinatario ou a pessoa autorizada a receber esta
mensagem, nao deve usar, copiar ou divulgar as informacoes nela contida ou
tomar qualquer acao baseada nessas informacoes. O sistema de mensagens da
Internet nao e considerado seguro ou livre de erros. Esta empresa nao se
responsabiliza por opinioes ou declaracoes veiculadas atraves de e-mails.
--The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this message is
not the intended recipient, or an employee r agent responsible for
delivering this message to the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and deleting it from
your computer. Thank you.
Nextel Telecomunicacoes Ltda. - Seguranca da Informacao / Information
Security 




More information about the Help mailing list