NSClient Commands Returning (null) just in nagios

Alec sureshot2k at hotmail.com
Thu Dec 26 09:19:10 CET 2002


My commands from check_nt work on the command line, but show as (null) for
status information when called by nagios (but it says Status Ok.). Same
issue with 1.06.2 and 1.07 beta.

Here's how I setup the commands. I added the -s paramater based on what I
saw at http://demo.square-box.com/checkcommandscfg.htm, but it seems to do
the same without it.

# NSClient NT Check Commands
# '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$ -w $ARG2$ -c $ARG3$
}

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

services.cfg piece:

define service{
use generic-service ; Name of service template to use
host_name i2000
service_description CPU LOAD
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
contact_groups i-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_nt_cpuload
}

# Service definition
define service{
use generic-service ; Name of service template to use
host_name i2000
service_description DISK C
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
contact_groups i-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_nt_disk!c!75!90
}

bits of nagios.log:
[1040887879] SERVICE ALERT: i2000;CPU LOAD;OK;SOFT;3;(null)
[1040887889] SERVICE ALERT: i2000;DISK C;OK;SOFT;2;(null)

Any ideas?

Thanks


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




More information about the Users mailing list