Unable to check diskspace!


#1

Hello,
I have installed the nt agent, below are the relevent sections of my cfg files:

checkcommands.cfg:

‘check_nt_disk’ command definition

define command{
command_name check_nt_disk
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l $ARG1$
}

services.cfg

Service definition for checking Disk space

define service{
use generic-service

host_name 			chrisg,lab1
service_description 		Disk Space C:\
is_volatile 			0
check_period 			24x7
max_check_attempts 		3
normal_check_interval 		5
retry_check_interval 		1
contact_groups 			local-admins
notification_interval 		120
notification_period 		24x7
notification_options 		w,u,c,r
check_command 			check_nt_disk!c!85!90

}

I get this error in nagios:

“wrong -l argument”

does anyone have any suggestions?

thanks

g


#2

Try to put a collon (":") after the drive letter, i.e. “check_command check_nt_disk!c:idea:85!90”.

Best regards,

RLeao


#3

not using the “:” after the drive letter.
But if you define warning and critical levels possibly you should add
-w $ARG2$ -c $ARG3$
to the command_line definition

Luca


#4

The right sintaxis to do it, is

define service{
use gs
host_name ITD057
service_description check_nt_disk
check_command check_nt_disk!C!80!90
max_check_attempts 10
normal_check_interval 5
retry_check_interval 3
check_period 24x7
notification_interval 30
notification_period 24x7
notification_options w,c,r
contact_groups gsystems
}