forums.meulie.net

Service Definition problems

I have the following in my checkcommands.cfg:

‘check_nt’ command definition

define command{
command_name check_nt_proc
command_line $USER1$/check_nt -H <$HOSTADDRESS$> -p 1248 -v CPULOAD -l $ARG1$,$ARG2$,$ARG3$
}

I have the following in my services.cfg:

define service{
use generic-service ; Name of service template to us

    host_name                       SA
    service_description             check_nt_proc
    is_volatile                     0
    check_period                    24x7
    max_check_attempts              3
    normal_check_interval           5
    retry_check_interval            1
    contact_groups                  Sysadmins
    notification_interval           120
    notification_period             24x7
    notification_options            c,r
    check_command                   check_nt -H 10.25.1.125 -p 1248 -v CPULOAD -l 1440,80,95
    }

When I test out nagios, I get the following error:

Error: Service check command ‘check_nt -H 10.25.1.125 -p 1248 -v CPULOAD -l 1440,80,95’ specified in service ‘check_nt_proc’ for host ‘SA’ not defined anywhere!

I thought I specified this in all both of the locations. I have verified that check_nt exists in the libexec directory…I keep chagning those lines in the cfg(s) and nothing I am doing is helping.

TIA.

SA

Your check_command should be:

check_nt_proc!!!

That is why you define it in the checkcommands.cfg so you don’t have to do the entire command in the services.cfg file.

phyler

Changed it and it seems good… changed it to check_nt_proc!10.25.1.125!1440!80!95. Now I have to figure out how to get output using NSClient…1 thing at a time it seems.
Edited Wed Nov 02 2005, 07:00PM ]