[Nagiosplug-help] USEDDISKSPACE parameter

Grant Lowe glowe at sbcglobal.net
Thu May 21 16:43:27 CEST 2009


Hi Jonathan,

You're right.  I should have included some examples.  Here are some examples of what I tried from the command line:

  # ./check_nt -h
  # ./check_nt -H 172.20.10.30 -l USEDDISKSPACE
  # ./check_nt -H 172.20.10.30 -l USEDDISKSPACE -w 90 -c 95
  # ./check_nt -H 172.20.10.30 -l c USEDDISKSPACE -w 90 -c 95

The check_nt command definition I have is this:

# 'check_nt' command definition
define command{
        command_name    check_nt
        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
        }

The check_nrpe command looks like this:

# 'check_nrpe' command defintion
define command{
        command_name    check_nrpe
        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
        }

So how would I incorporate the following USEDDISKSPACE into the command definition?

check_command          check_nt!USEDDISKSPACE!-l c -w 90 -c 95

Please clarify.  Thanks.

----- Original Message ----
From: Jon Angliss <jon at netdork.net>
To: nagiosplug-help at lists.sourceforge.net
Sent: Wednesday, May 20, 2009 4:16:28 PM
Subject: Re: [Nagiosplug-help] USEDDISKSPACE parameter

On Wed, 20 May 2009 11:58:03 -0700 (PDT), Grant Lowe
<glowe at sbcglobal.net> wrote:

>Hi All,
>
>I'm using the nsclient++ for checking USEDDISKSPACE, but I would like to change the paramater for USEDDISKSPACE to not use percentages.  Instead I would like to set it to say, notify me when USEDDISKSPACE gets to 1 GB or less of free space.  Right now the command looks like this:
>
>check_command          check_nt!USEDDISKSPACE!-l c -w 90 -c 95
>
>I tried various things from the command line on the linux nagios host, but none of them work.  Any and all advice is welcome.  Thanks.

"none of them work" doesn't tell us what you're actually getting, and
what you're actually trying.  We also need your command definition so
we can see what you are actually executing.

If you're using nsclient++, you can use the CheckDriveSize parameter.

  http://nsclient.org/nscp/wiki/CheckDriveSize

This takes size, or % values.  I believe these need to be executed
through the NRPE portion of nsclient++.

-- 
Jonathan Angliss
<jon at netdork.net>


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
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