NSClient checkcommands.cfg help

Kaplan, Andrew H. AHKAPLAN at PARTNERS.ORG
Mon Nov 11 21:09:35 CET 2002


Hi Peter,

Did you add the 'definition' of the service to the checkcommands.cfg file?

The syntax for the for check_nt_cpuload service would be:

command[check_nt_cpuload]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CPULOAD
-l $ARG1$

Let me know if this works.

-----Original Message-----
From: Peter Krzystofiak [mailto:pkrzystofiak at endeavors.com]
Sent: Monday, November 11, 2002 2:55 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] NSClient checkcommands.cfg help


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
_______________________________________________
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:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list