checking windows services remotely

Dan Stromberg strombrg at dcs.nac.uci.edu
Tue Oct 12 21:32:09 CEST 2004


You could always just nmap the system to see what ports are open, and
then set up various check_tcp's and check_udp's for the ones that are
important.  nmap defaults to tcp mode, but I believe -sU will do a UDP
scan.

On Tue, 2004-10-12 at 11:47, Neil wrote:
> Sorry guys, I should have been much more detailed. Installation of an agent 
> is not an option. I know nsclient and been using it to get performance 
> counters. It's cool though but there are company policies here that prevents 
> us from installing agents on production systems. 
> 
> Thanks! 
> 
> Hendrik B writes: 
> 
> > 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
-- 
Dan Stromberg DCS/NACS/UCI <strombrg at dcs.nac.uci.edu>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://www.monitoring-lists.org/archive/users/attachments/20041012/01fa7509/attachment.sig>


More information about the Users mailing list