check_nt service check problem

Rich Sasko rsasko at niag.com
Fri Dec 21 20:25:48 CET 2007


>Message: 9
>Date: Thu, 20 Dec 2007 23:06:56 -0600
>From: "Tim Wilson" <twilson at buffalo.k12.mn.us>
>Subject: [Nagios-users] check_nt service check problem
>To: <Nagios-users at lists.sourceforge.net>
>Message-ID: <476AF591020000610001692C at staffmail.buffalo.k12.mn.us>
>Content-Type: text/plain; charset=US-ASCII

>Hi everyone,

>I'm using check_nt with NSClient++ to check and see if a service is
running on a >Win 2003 server. The service I want to monitor is called
"MSSQL$DESTINY". The >check is failing and it says "MSSQL$: Unknown". It
certainly appears that the dollar >sign in the service name is causing a
problem. I've tried quoting the service name >and escaping the $ with a
backslash. No luck so far. Any ideas?

>-Tim

>-- 
>Tim Wilson, Director of Technology
>Buffalo-Hanover-Montrose Schools
>214 1st Ave NE   Buffalo, MN  55313
>ph: 763.682.8740  fax: 763.682.8743  http://www.buffalo.k12.mn.us


Tim,

This is what we are doing here (thanks to a suggestion from this message
board.)

Define service{
	Use			generic-service
	Host_name		sql_server
	Service_description	check_sql_service
	Check_command	check_nt!SERVICESTATE!-d SHOWALL -l
mssql$"$"destiny
	}




************************************* 
Richard Sasko
Niagara Lasalle Corp
Phone: (219) 853-6272 
Mobile: (219) 484-5617
E-mail: rsasko at niag.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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