checking windows services remotely

Hendrik B b00mer at gmx.net
Tue Oct 12 19:14:56 CEST 2004


Guten Tag Neil,

am Dienstag, 12. Oktober 2004 um 17:10 schrieben Sie:

N> Hey guys, 

N> Has anyone created a check that verifies a remote Windows' services such as
N> Cluster Service, W3SVC or any service on a remote machine using 
N> username/password check? I'm sure that this could utilize the samba
N> libraries. NRPE agent is not an option now. 

N> Thanks guys, 

N> neil


N> -------------------------------------------------------
N> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
N> Use IT products in your business? Tell us what you think of them. Give us
N> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
N> http://productguide.itmanagersjournal.com/guidepromo.tmpl
N> _______________________________________________
N> Nagios-users mailing list
N> Nagios-users at lists.sourceforge.net
N> https://lists.sourceforge.net/lists/listinfo/nagios-users
N> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
N> ::: Messages without supporting info will risk being sent to /dev/null

Hi,

if NRPE is no option for you try NSClient.

A simple Client for the Windows-Box and a Nagios Plugin for:

check_nt (nagios-plugins 1.3.1) 1.7
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Copyright (c) 2000 Yves Rubin (rubiyz at yahoo.com)

This plugin attempts to contact the NSClient service running on a Windows NT/2000/XP server to
gather the requested system information.

Usage: check_nt -H host -v variable [-p port] [-w warning] [-c critical] [-l params] [-d SHOWALL] [-t timeout]

Options:
-H, --hostname=HOST
   Name of the host to check
-p, --port=INTEGER
   Optional port number (default: 1248)
-s <password>
   Password needed for the request
-v, --variable=STRING
   Variable to check.  Valid variables are:
      CLIENTVERSION = Get the NSClient version
      CPULOAD = Average CPU load on last x minutes. Request a -l parameter with the following syntax:
        -l <minutes range>,<warning threshold>,<critical threshold>. <minute range> should be less than 24*60.
        Thresholds are percentage and up to 10 requests can be done in one shot. ie: -l 60,90,95,120,90,95
      UPTIME = Get the uptime of the machine. No specific parameters. No warning or critical threshold
      USEDDISKSPACE = Size and percentage of disk use. Request a -l parameter containing the drive letter only.
                      Warning and critical thresholds can be specified with -w and -c.
      MEMUSE = Memory use. Warning and critical thresholds can be specified with -w and -c.
      SERVICESTATE = Check the state of one or several services. Request a -l parameters with the following syntax:
        -l <service1>,<service2>,<service3>,... You can specify -d SHOWALL in case you want to see working services
        in the returned string.
      PROCSTATE = Check if one or several process are running. Same syntax as SERVICESTATE.
      COUNTER = Check any performance counter of Windows NT/2000. Request a -l parameters with the following syntax:
        -l "\\<performance object>\\counter","<description>"  The <description> parameter is optional and
        is given to a printf output command which require a float parameters. Some examples:
          "Paging file usage is %.2f %%" or "%.f %% paging file used."
 -w, --warning=INTEGER
   Threshold which will result in a warning status
 -c, --critical=INTEGER
   Threshold which will result in a critical status
 -t, --timeout=INTEGER
   Seconds before connection attempt times out (default: 10)
-h, --help
   Print this help screen
-V, --version
   Print version information

Notes:
 - The NSClient service should be running on the server to get any information.
 - Critical thresholds should be lower than warning thresholds



-- 
Mit freundlichen Grüßen
Hendrik B
mailto:b00mer at gmx.net




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.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