check_nt syntax for USEDDISKSPACE in checkcom mand.cfg

GONG Wei wgong at smu.edu.sg
Thu Feb 13 14:57:36 CET 2003


Looks like you've omitted an ending $ after the "HOSTADDRESS".  Anyway I am
using this in checkcommand.cfg

define command{
        command_name    check-nt-disk
        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$
        }

and the below in service.cfg

define service{
        use                     generic-net-service
        hostgroup_name          all-acs
        service_description     DiskUsage_C
        check_command           check-nt-disk!c!80!90
        }
==================================

If in doubt you can also try to run the check_nt command from shell to
ensure you get its calling syntax right.

-----Original Message-----
From: joknight at blueyonder.co.uk [mailto:joknight at blueyonder.co.uk] 
Sent: Thursday, February 13, 2003 8:56 PM
To: Nagios-users at lists.sourceforge.net
Subject: [Nagios-users] check_nt syntax for USEDDISKSPACE in
checkcommand.cfg


Hi,

I have just set Nagios up and am trying to get the check_nt command
configured correctly to monitor diskspace. I have installed the nsclient
service on a few NT/2000 servers and have copied the check_nt binary into
the libexec directory. I can run the check_nt command with the -v
USEDDISKSPACE -l <drive-letter> manually and it reports the free space on
the drive with no problems.

When I looked in my checkcommand.cfg there was no entry for check_nt, so I
added the following:

define command{
        command_name    check_nt_space_d
        command_line    $USER1$/check_nt -H $HOSTADDRESS -v USEDDISKSPACE -l
d
        }

When I add the service to a host it runs but I get 'null' returned. What
syntax do I need to use in checkcommand.cfg in order to get this working
correctly. I have tried searching for other peoples checkcommand.cfg files
on google but have not yet found any.

Many thanks for any help,
Jo




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at 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


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list