[Nagiosplug-help] [Nagios-users] plugns

Aaron Segura Aaron.Segura at cabelas.com
Wed Jul 26 19:54:23 CEST 2006

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 <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

and generates an alert if free space is less than one of the threshold


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

                  [-v] [-q]



 -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

 -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

 -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)


 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

send email to nagiosplug-devel at lists.sourceforge.net



From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Martin
J. Green
Sent: Wednesday, July 26, 2006 11:47 AM
To: nagiosplug-help at lists.sourceforge.net
Cc: nagios-users at 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...


[root at agw01 nagios]# /usr/libexec/nagios/check_disk -w 85% -c 95% -p

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]

[root at agw01 nagios]# /usr/libexec/nagios/check_disk -w 95% -c 85% -p

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

[root at agw01 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

[root at agw01 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


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

E: mgreen at altien.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20060726/ac9f17fb/attachment.html>

More information about the Help mailing list