check_nt

Tom DE BLENDE tdeblend at gcc.dhl.com
Wed Jan 29 13:00:37 CET 2003


Well, guess what, you supplied the wrong arguments :-)

Look at it like this:

check_command check_nt_disk      
!176.1.111.214!1248!                        C!         80       !90
command_line  $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$

You shouldn't add the IP address, as that is supplied by
$HOSTADDRESS$. You shouldn't add the port, as that is added allready
in the command_line directive.

Try this:

check_command check_nt_disk!C!8O!90



hrishy wrote:
> 
> Hi
> 
> check_nt gives me a error message saying that there
> are wrong arguments supplied.
> 
> my services.cfg file looks like this for check_nt
> 
> # Service definition
> define service{
>         use                     generic-service
>  ;
>         host_name               nt1
>         service_description     check-disk-useage
>         is_volatile             0
>         check_period            24x7
>         max_check_attempts      3
>         normal_check_interval   5
>         retry_check_interval    1
>         contact_groups          nt-admins
>         notification_interval   120
>         notification_period     24x7
>         notification_options    w,u,c,r
>         check_command
> check_nt_disk!176.1.111.214!1248!C!80!90
>         }
> 
> and my checkcommands.cfg file looks like this
> 
> define command{
> command_name  check_nt_disk
> command_line  $USER1$/check_nt -H $HOSTADDRESS$ -p
> 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$
>               }
> 
> how do i correctly specify the arguments in the
> services.cfg file.
> 
> regards
> Hrishy
> 
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com




More information about the Users mailing list