NSClient install problem

Pavel Santos p_santos at psantos.no-ip.org
Thu Sep 29 04:00:48 CEST 2005


VINAY, 

 

There is not firewall between the nagios server and the windows clients.  NSClient is installed in the client and the service is running.  The only things that I did not install was the  Jedi Code Library Win32 Api from Marcel.   Do I really need these for it to work? See requirements in the documentation.  

 

 

Requirements 

Windows NT 4, Windows 2000 or Windows XP 

For compilation: 

 

Jedi Code Library (http://www.delphi-jedi.org) 

Full Win32 Api from Marcel van Brakel (http://www.delphi-jedi.org) 

    These must downloaded, extracted and added to your Delphi library path.

 

Pavel 

 

----Original Message-----
From: VINAY_SHARMA at advanex.co.jp [mailto:VINAY_SHARMA at advanex.co.jp] 
Sent: Wednesday, September 28, 2005 9:30 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 Pavel,

 

               Is there Firewall in between Nagios Server and Your windows

client.if not then you can install NSClient on windows client machine after

it will work.i am using same here.

 

works fantastic..

 

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>         宛先:     <VINAY_SHARMA at advanex.co.jp>                                                  

                      送信者:                              cc:       <nagios-users at lists.sourceforge.net>,                                         

                      nagios-users-admin at lists.sour         <nagios-users-admin at lists.sourceforge.net>                                             

                      ceforge.net                          件名:     RE: [Nagios-users] NSClient install problem                                   

                                                                                                                                                   

                                                                                                                                                   

                      2005/09/29 10:25                                                                                                             

                                                                                                                                                   

                                                                                                                                                   

 

 

 

 

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/2e63d33b/attachment.html>


More information about the Users mailing list