Lag ftw.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Segura
Sent: Wednesday, July 26, 2006 11:54 AM
To: [EMAIL PROTECTED]
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] plugns

 

It is working as expected… It’s expecting to check FREE space, not USED space.

 

----

check_disk (nagios-plugins 1.4.2) 1.57

Copyright (c) 1999 Ethan Galstad <[EMAIL PROTECTED]>

Copyright (c) 1999-2004 Nagios Plugin Development Team

        <[EMAIL PROTECTED]>

 

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@lists.sourceforge.net if you have questions

regarding use of this software. To submit patches or suggest improvements,

send email to [EMAIL PROTECTED]

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin J. Green
Sent: Wednesday, July 26, 2006 11:47 AM
To: [EMAIL PROTECTED]
Cc: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] plugns

 

Having some bizarre problems with plugins – nagios says they don’t exist (or passes bollocks output in some cases), even when I’ve explicitly told it where they are.

 

Take one example…

 

[EMAIL PROTECTED] nagios]# /usr/libexec/nagios/check_disk -w 85% -c 95% -p /dev/hda1

INPUT ERROR: C_DFP (95.000000) should be less than W_DFP (85.0) and both should be between zero and 100 percent, inclusive for /dev/hda1

check_disk: Could not parse arguments

Usage: check_disk -w limit -c limit [-p path | -x device] [-t timeout][-m] [-e] [-W limit] [-K limit] [-v] [-q]

[EMAIL PROTECTED] nagios]# /usr/libexec/nagios/check_disk -w 95% -c 85% -p /dev/hda1

DISK CRITICAL - free space: / 1776 MB (30% inode=84%);| /=4130MB;295;885;84;5905

[EMAIL PROTECTED] nagios]# df

Filesystem            Size  Used Avail Use% Mounted on

/dev/hda1             5.8G  3.8G  1.8G  69% /

/dev/hda6              32G   27G  5.5G  83% /home

[EMAIL PROTECTED] nagios]#

 

1)       Critical & warning seem to be the wrong way round? (Critical *should* be higher than warning, right?)

2)       Why did it tell me my disk was critical – its below both thresholds??

 

Anything I should be doing – can’t seem to figure out why its not picking them up.

 

___________________________________________________________________________________________________

The questions remain the same. The answers are eternally variable.

 

Martin J. Green

Altien Ltd

 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to