"Incorrect command line arguments supplied"

Bin Yang Bin.Yang at Zeborg.com
Fri Jan 17 23:39:05 CET 2003


Hi,

I have problems to monitor disk space on remote host.  

Here are my configurations:

On the nagios server:

1)	checkcommand.cfg

define command{
  	command_name    check_nrpe
 	 command_line    /usr/local/nagios/libexec/check_nrpe $HOSTADDRESS$ -c $ARG1$
    	    }


2)	services.cfg
define service{
        use                             generic-service
 ; Name of service template to use
        host_name                       fragone
        service_description             /dev/hdb2 Free Space
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  linux-admins
        notification_interval           120
        notification_period             24x7
        notification_options            w,u,c,r
        check_command                   check_nrpe!check_disk1
	}

On the remote host:

Nrpe.cfg

command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hdb2



>From nagios server, I can run 
 /usr/local/nagios/libexec/check_nrpe -H fragone -c check_disk1

and I get:
DISK OK - [15930368 kB (60%) free on /dev/hdb2]

It works on command line, but not on web browser.  I always get "Incorrect command line arguments supplied"

What did I miss here?

Thanks very much.



 


-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will
allow you to extend the highest allowed 128 bit encryption to all your 
clients even if they use browsers that are limited to 40 bit encryption. 
Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en




More information about the Users mailing list