<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>RE: [Nagios-users] NSClient install problem</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>VINAY,<BR>
<BR>
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.<BR>
<BR>
Pavel <BR>
<BR>
<BR>
-----Original Message-----<BR>
From: VINAY_SHARMA@advanex.co.jp [<A HREF="mailto:VINAY_SHARMA@advanex.co.jp">mailto:VINAY_SHARMA@advanex.co.jp</A>]<BR>
Sent: Wed 9/28/2005 8:11 PM<BR>
To: Pavel Santos<BR>
Cc: nagios-users@lists.sourceforge.net; nagios-users-admin@lists.sourceforge.net<BR>
Subject: Re: [Nagios-users] NSClient install problem<BR>
<BR>
<BR>
HI,<BR>
<BR>
     Just add and commands.cfg  and services.cfg file below scripts...<BR>
<BR>
<BR>
in commands.cfg<BR>
<BR>
<BR>
<BR>
<BR>
define command{<BR>
        command_name check_nt_cpuload<BR>
        command_line $USER1$/check_nt -H $HOSTADDRESS$ -t 5 -p 1248 -v<BR>
CPULOAD -l $ARG1$<BR>
        }<BR>
<BR>
<BR>
define command{<BR>
        command_name    check_nt_disk<BR>
        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v<BR>
USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$<BR>
        }<BR>
<BR>
<BR>
define command{<BR>
        command_name    check_nt_memuse<BR>
        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v MEMUSE<BR>
-w $ARG1$ -c $ARG2$<BR>
        }<BR>
<BR>
<BR>
in  services.cfg<BR>
<BR>
<BR>
<BR>
<BR>
# SMTP<BR>
<BR>
define service{<BR>
host_name NTS02<BR>
service_description SMTP<BR>
is_volatile 0<BR>
check_period 24x7<BR>
max_check_attempts 3<BR>
normal_check_interval 5<BR>
retry_check_interval 1<BR>
contact_groups Domino<BR>
notification_interval 10<BR>
notification_period 24x7<BR>
notification_options w,u,c,r<BR>
check_command            check_smtp!100.0,20%! 500.0,60%<BR>
}<BR>
<BR>
#Disk Space<BR>
<BR>
define service{<BR>
host_name  NTS02<BR>
service_description NTS01 C: Drive Disk Space<BR>
is_volatile 0<BR>
check_period 24x7<BR>
max_check_attempts 3<BR>
normal_check_interval 5<BR>
retry_check_interval 1<BR>
contact_groups diskcheck<BR>
notification_interval 10<BR>
notification_period 24x7<BR>
notification_options w,u,c,r<BR>
check_command       check_nt_disk!C!85%!90%<BR>
}<BR>
<BR>
<BR>
define service{<BR>
host_name  NTS02<BR>
service_description NTS01 D: Drive Disk Space<BR>
is_volatile 0<BR>
check_period 24x7<BR>
max_check_attempts 3<BR>
normal_check_interval 5<BR>
retry_check_interval 1<BR>
contact_groups diskcheck<BR>
notification_interval 10<BR>
notification_period 24x7<BR>
notification_options w,u,c,r<BR>
check_command       check_nt_disk!D!85%!90%<BR>
}<BR>
<BR>
#Memory<BR>
<BR>
<BR>
define service{<BR>
host_name  NTS02<BR>
service_description NTS01 MEMORY USAGE<BR>
is_volatile 0<BR>
check_period 24x7<BR>
max_check_attempts 3<BR>
normal_check_interval 5<BR>
retry_check_interval 1<BR>
contact_groups diskcheck<BR>
notification_interval 10<BR>
notification_period 24x7<BR>
notification_options w,u,c,r<BR>
check_command       check_nt_memuse!80%!90%<BR>
}<BR>
<BR>
<BR>
<BR>
<BR>
#CPU Load<BR>
<BR>
define service{<BR>
host_name  NTS02<BR>
service_description CPU Load<BR>
is_volatile 0<BR>
check_period 24x7<BR>
max_check_attempts 3<BR>
normal_check_interval 5<BR>
retry_check_interval 1<BR>
contact_groups Domino<BR>
notification_interval 10<BR>
notification_period 24x7<BR>
notification_options w,u,c,r<BR>
check_command            check_nt_cpuload!60,80,90,90,80,90<BR>
}<BR>
<BR>
<BR>
<BR>
<BR>
Thanks & regards<BR>
**************************************<BR>
Vinay Sharma<BR>
Information Systems and Solutions-Associates<BR>
Advanex Inc (www.advanex.co.jp)<BR>
Phone : 813-3822-5863<BR>
Fax         : 813-5815-7881<BR>
Email       : vinay_sharma@advanex.co.jp<BR>
<BR>
<BR>
                                                                                                                                                  <BR>
                      "Pavel Santos"                                                                                                              <BR>
                      <p_santos@psantos.no-ip.org>         ??:     <nagios-users@lists.sourceforge.net>                                         <BR>
                      ???:                              cc:                                                                                    <BR>
                      nagios-users-admin@lists.sour        ??:     [Nagios-users] NSClient install problem                                      <BR>
                      ceforge.net                                                                                                                 <BR>
                                                                                                                                                  <BR>
                                                                                                                                                  <BR>
                      2005/09/29 06:10                                                                                                            <BR>
                                                                                                                                                  <BR>
                                                                                                                                                  <BR>
<BR>
<BR>
<BR>
<BR>
Hello list,<BR>
<BR>
I'm running Nagios 2.0b4 on FC4.  I'm having problem getting NSClient  to<BR>
work right.  I installed the nsclient in one of my windows work but I can't<BR>
get the scripts to work.<BR>
<BR>
As described in the instructions, I   copied the file 'check_nt' under the<BR>
libexec folder of Nagios but can not add lines below to the commands.cfg<BR>
file:<BR>
<BR>
command[check_nt_disk]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v<BR>
USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$<BR>
command[check_nt_cpuload]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v<BR>
CPULOAD -l $ARG1$<BR>
command[check_nt_uptime]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v<BR>
UPTIME<BR>
command[check_nt_clientversion]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248<BR>
-v CLIENTVERSION<BR>
command[check_nt_process]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v<BR>
PROCSTATE -l $ARG1$<BR>
command[check_nt_service]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v<BR>
SERVICESTATE -l $ARG1$<BR>
command[check_nt_memuse]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v<BR>
MEMUSE -w $ARG1$ -c $ARG2$<BR>
command[check_nt_fileage]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v<BR>
FILEAGE -l $ARG1$ -w $ARG2$ -c $ARG3$<BR>
<BR>
I don't have just one commands.cfg file, I have a few that execute the ping<BR>
and swap commands (which are the only two checks currently working).   My<BR>
question is, given that I don't have a single command.cfg file, how do I<BR>
manage to get all the new check_nt commands above on my configuration?<BR>
Thanks in advance for your help.<BR>
<BR>
Pavel<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>