[Nagiosplug-help] USEDDISKSPACE parameter

Anthony Montibello amontibello at gmail.com
Tue May 26 03:23:01 CEST 2009


The command error is because Check_nt has a default port of 1248 but you
secified earlier in your command definition your port is 12489

Thus add the -t 12489 to your comand line to talk with your Window Hosts.

However if you want the Warning and Critical for under 1GB your going to
have to change Check_nt.
Check_NT sends just the drive letter to the Windows client, THen it recieves
the Total size and the Used space in Bytes.
the convrsion to percent is in Check_nt and not in NSClient++.

your three options for getting this are:
1) Modify Check_nt.c
2) Use check_nc_net.c instead of check_nt (All the check_nt base commands in
check_nc_net work the same.)
3) Use NRPE  ( as stated earlier there is an option in NSClient for NRPE for
what your looking for)

Tony (Author of NC_Net)
On Sun, May 24, 2009 at 5:46 PM, Grant Lowe <glowe at sbcglobal.net> wrote:

>
> Well, I'm getting the data from host through the main Nagios GUI, so the
> config file is ok and it also shows the server is listening.  But for some
> reason, it comes back with this error when I do it from a command line.
>  What would be the cause of this discrepancy?
>
>
>
> ----- Original Message ----
> From: Jon Angliss <jon at netdork.net>
> To: nagiosplug-help at lists.sourceforge.net
>  Sent: Sunday, May 24, 2009 7:43:20 AM
> Subject: Re: [Nagiosplug-help] USEDDISKSPACE parameter
>
> On Sat, 23 May 2009 22:49:12 -0700 (PDT), Grant Lowe
> <glowe at sbcglobal.net> wrote:
>
> >
> >Hi Jon,
> >
> >When I execute your example I get this:
> >
> >[root at nagios-test ~]# /usr/local/nagios/libexec/check_nt -H 172.20.10.30
> -v USEDDISKSPACE -l c -w 90 -c 95
> >Connection refused
> >could not fetch information from server
> >[root at nagios-test ~]#
> >
> >So where do I go from here?
>
> Check to make sure service is running on the server, and is listening
> on the port specified. Check the config file to make sure it's not
> blocking access to hosts.
>
> --
> Jonathan Angliss
> <jon at netdork.net>
>
>
> >
> >
> >
> >----- Original Message ----
> >From: Jon Angliss <jon at netdork.net>
> >To: nagiosplug-help at lists.sourceforge.net
> >Sent: Saturday, May 23, 2009 3:25:51 PM
> >Subject: Re: [Nagiosplug-help] USEDDISKSPACE parameter
> >
> >On Thu, 21 May 2009 07:43:27 -0700 (PDT), Grant Lowe
> ><glowe at sbcglobal.net> wrote:
> >
> >>
> >>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
> >
> >Command execution should be:
> >
> >./check_nt -H 172.20.10.30 -v USEDDISKSPACE -l c -w 90 -c 95
> >
> >-v is the command to execute (USEDDISKSPACE)
> >-l is the arguments for that command (C drive in this case)
> >
> >What do you get when you execute the above?
> >
> >>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
> >
> >This syntax looks okay, based on the check_nt command you have
> >defined.  With it set like this, what are you getting from nagios?
>
>
>
> ------------------------------------------------------------------------------
> 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
>
>
>
> ------------------------------------------------------------------------------
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20090525/d1a78933/attachment.html>


More information about the Help mailing list