NSClient checkcommands.cfg help

Peter Krzystofiak pkrzystofiak at endeavors.com
Mon Nov 11 20:55:21 CET 2002


Hello All


Since I want to use NSClient in combination with Nagios, I made the following modification to my checkcommands.cfg file.

# 'cpu_load command definition
define command{
	command_name 	check_nt_cpuload
	command_line 	$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CPULOAD -l $ARG1$
	}

when i run

./check_nt -H 192.168.1.1 -p 1248 -v CPULOAD -l 10,80,95,60,80,95,1440,80,95

it works, but when I make a change to my services.cfg 

define service {
use generic-service
host_name appx2
service_description cpu_load
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups flcd-admins
notification_interval 120
notification_period 24x7
notification_options c,r
check_command check_nt -H 209.61.184.32 -p 1248 -v CPULOAD -l 10,80,95,60,80,95,1440,80,95
}

it doesnt work and it gives me a 

Service check command 'check_nt -H 209.61.184.32 -p 1248 -v CPULOAD -l 10,80,95,60,80,95,1440,80,95' specified in service 'cpu_load' for host 'appx2' not defined anywhere!

Your input is appreciated

Thank You,

Pete Krzystofiak



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list