NSClient install problem

Pavel Santos p_santos at psantos.no-ip.org
Thu Sep 29 03:25:38 CEST 2005


VINAY,

I added the cpu load in both command and service cfg files but I'm getting an error.  "connection refused by host"  could it be because I'm still running NRPE.

Pavel  


-----Original Message-----
From: VINAY_SHARMA at advanex.co.jp [mailto:VINAY_SHARMA at advanex.co.jp]
Sent: Wed 9/28/2005 8:11 PM
To: Pavel Santos
Cc: nagios-users at lists.sourceforge.net; nagios-users-admin at lists.sourceforge.net
Subject: Re: [Nagios-users] NSClient install problem
 

HI,

     Just add and commands.cfg  and services.cfg file below scripts...


in commands.cfg




define command{
        command_name check_nt_cpuload
        command_line $USER1$/check_nt -H $HOSTADDRESS$ -t 5 -p 1248 -v
CPULOAD -l $ARG1$
        }


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


define command{
        command_name    check_nt_memuse
        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v MEMUSE
-w $ARG1$ -c $ARG2$
        }


in  services.cfg




# SMTP

define service{
host_name NTS02
service_description SMTP
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups Domino
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
check_command            check_smtp!100.0,20%! 500.0,60%
}

#Disk Space

define service{
host_name  NTS02
service_description NTS01 C: Drive Disk Space
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups diskcheck
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
check_command       check_nt_disk!C!85%!90%
}


define service{
host_name  NTS02
service_description NTS01 D: Drive Disk Space
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups diskcheck
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
check_command       check_nt_disk!D!85%!90%
}

#Memory


define service{
host_name  NTS02
service_description NTS01 MEMORY USAGE
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups diskcheck
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
check_command       check_nt_memuse!80%!90%
}




#CPU Load

define service{
host_name  NTS02
service_description CPU Load
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups Domino
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
check_command            check_nt_cpuload!60,80,90,90,80,90
}




Thanks & regards
**************************************
Vinay Sharma
Information Systems and Solutions-Associates
Advanex Inc (www.advanex.co.jp)
Phone : 813-3822-5863
Fax         : 813-5815-7881
Email       : vinay_sharma at advanex.co.jp


                                                                                                                                                   
                      "Pavel Santos"                                                                                                               
                      <p_santos at psantos.no-ip.org>         ??:     <nagios-users at lists.sourceforge.net>                                          
                      ???:                              cc:                                                                                     
                      nagios-users-admin at lists.sour        ??:     [Nagios-users] NSClient install problem                                       
                      ceforge.net                                                                                                                  
                                                                                                                                                   
                                                                                                                                                   
                      2005/09/29 06:10                                                                                                             
                                                                                                                                                   
                                                                                                                                                   




Hello list,

I'm running Nagios 2.0b4 on FC4.  I'm having problem getting NSClient  to
work right.  I installed the nsclient in one of my windows work but I can't
get the scripts to work.

As described in the instructions, I   copied the file 'check_nt' under the
libexec folder of Nagios but can not add lines below to the commands.cfg
file:

command[check_nt_disk]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$
command[check_nt_cpuload]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
CPULOAD -l $ARG1$
command[check_nt_uptime]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
UPTIME
command[check_nt_clientversion]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248
-v CLIENTVERSION
command[check_nt_process]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
PROCSTATE -l $ARG1$
command[check_nt_service]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
SERVICESTATE -l $ARG1$
command[check_nt_memuse]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
MEMUSE -w $ARG1$ -c $ARG2$
command[check_nt_fileage]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
FILEAGE -l $ARG1$ -w $ARG2$ -c $ARG3$

I don't have just one commands.cfg file, I have a few that execute the ping
and swap commands (which are the only two checks currently working).   My
question is, given that I don't have a single command.cfg file, how do I
manage to get all the new check_nt commands above on my configuration?
Thanks in advance for your help.

Pavel






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050928/1613da43/attachment.html>


More information about the Users mailing list