NSClient install problem

VINAY_SHARMA at advanex.co.jp VINAY_SHARMA at advanex.co.jp
Thu Sep 29 02:11:12 CEST 2005


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







-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list