nsclient

Steph stephanie.royle at lunarpages.com
Wed Apr 5 18:55:19 CDT 2006


Thanks again for the help guys,
 
It is off topic and you have been awesome about helping out, I meant to send
this out to the nagios list but hit up the dell list in error.
It just goes to prove what a great community we have here :)
 
Steph
 
-------Original Message-------
 
From: PMilanese at nypl.org
Date: 04/05/06 11:12:48
To: Fred Skrotzki
Cc: linux-poweredge-bounces at dell.com; linux-poweredge at dell.com
Subject: RE: nsclient
 
NSClient is actually quite robust. I wouldn't switch it. I am testing its
inevitable successor, NC_NET, as nsclient doesn't get much attention
nowadays.
 
It depends on how you want to monitor smtp and mysql. Do you want it to do
regular service checks, or actually log in and do an expect?
 
If you want a service check, do something like this:
 
define command {
                command_name                    check_nt_services
                command_line                    $USER1$/check_nt -H
$HOSTNAME$ -v SERVICESTATE -l $ARG1$
}
 
 
define service {
                service_description        name
                use                                   generic-service
                host_name                           hostname
                check_command              check_nt_services!"SERVICE_NAME"
}
 
 
You can pass a comma delimited list of services to do them all at once, but
I wouldn't do it that way.
 
Pretty simple actually.
 
 
Thanks-
 
Peter J. Milanese, System Administrator
Information Technology Group
The New York Public Library
peterm at nypl.org - 212.621.0203
 
 
 
 
 
             "Fred Skrotzki"
             <fskrotzki at textwi
             se.com>                                                    To
             Sent by:                  <linux-poweredge at dell.com>
             linux-poweredge-b                                          cc
             ounces at dell.com
                                                                   Subject
                                       RE: nsclient
             04/05/2006 01:58
             PM
 
 
 
 
 
 
 
 
 
 
  Not to have you switch products but have you looked at OpenNMS?  they have
  many  prewritten scripts for testing MANY services including the ones you
  are asking about.  It will then report on the status of the port
  connection and seperately the actual operation of the service on that
  port.
 
  From: linux-poweredge-bounces at dell.com
  [mailto:linux-poweredge-bounces at dell.com] On Behalf Of Steph
  Sent: Wednesday, April 05, 2006 12:27 PM
  To: linux-poweredge at dell.com
  Subject: nsclient
 
  Hi,
 
  I'm currently monitoring a few windows server 2003 machines with nsclient
  Does anyone have any suggestions for monitoring smtp and mysql?
  Can I use commands similar to the ones below and if so does anyone have
  any samples from checkcommands.cfg and services.cfg?
 
  Checkcommands.cfg:
 
  Define command{
         Command_name    check_nt_CPU
         Command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
  CPULOAD -l $ARG1$
  }
  --------------------------------------------------------------------------
  -----------------------------------
  Services.cfg
 
  Define service{
         Use                             generic-service
         Host_name                       test-server
         Service_description             CPU Usage
         is_volatile                     0
         Check_period                    24x7
         Max_check_attempts              3
         Normal_check_interval           1
         Retry_check_interval            1
         Contact_groups                  linux-admins
         Notification_interval           300
         Notification_period             24x7
         Notification_options            w,U,c,R
         Check_command
  check_nt_CPU!10,80,95,60,80,95,1440,80,95
  }
  --------------------------------------------------------------------------
  -------------------------------
  I'm pretty new to windows server so any help would be greatly appreciated.
 
  Thanks
 
  Stephanie
 
 
 
 
 
 
 
 
 
 
_______________________________________________
Linux-PowerEdge mailing list
Linux-PowerEdge at dell.com
http://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq
 
_______________________________________________
Linux-PowerEdge mailing list
Linux-PowerEdge at dell.com
http://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.us.dell.com/pipermail/linux-poweredge/attachments/20060405/bc8da80d/attachment-0001.htm 


More information about the Linux-PowerEdge mailing list