<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Luis, (replying to correct message now!)<br>
<br>
</tt>I just did this the other day - the 'real' name is the name of the
<b class="moz-txt-star"><span class="moz-txt-tag">*</span>directory<span
class="moz-txt-tag">*</span></b> in that registry location. I wouldn't
change the name of the directory, that would probably be A Bad Thing
(tm).
<br>
<br>
I am monitoring a couple of services with spaces in their 'real' name,
and it was the double quotes that worked for me. Check you are using
the correct name and try the double quotes.
<br>
<br>
These checks are succeeding on Nagios 1.2 on Debian 3, monitoring W3K
services.
<br>
<br>
HTH,
<br>
Greg
<br>
<br>
Luis Noronha wrote:
<blockquote
cite="mid07C20F679473A34DB8158B0AC70DB7610173F5F4@EXCVTL202.oni.pt"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2900.2604" name="GENERATOR">
<div><font face="Arial" size="2"><span class="414491614-06042005">Hi,</span></font></div>
<div><font face="Arial" size="2"><span class="414491614-06042005"></span></font> </div>
<div><font face="Arial" size="2"><span class="414491614-06042005">We're having
trouble using "check_nt" (NSCLIENT plug-in) to monitor services that
have a space character in its name (e.g. "Service ABC").</span></font></div>
<div><font face="Arial" size="2"><span class="414491614-06042005"></span></font> </div>
<div><font face="Arial" size="2"><span class="414491614-06042005">I
read the following post </span></font><font face="Arial" size="2"><span
class="414491614-06042005"><font face="Times New Roman" size="3"> </font><a
href="http://sourceforge.net/mailarchive/message.php?msg_id=8135478">http://sourceforge.net/mailarchive/message.php?msg_id=8135478</a></span></font></div>
<div>
<p style="margin: 0in; font-size: 10pt; font-family: Verdana;"><span
class="414491614-06042005"><font face="Arial" size="2"><font
face="Arial">, and looking at the registry
(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services) one of the
services really didn't have a space in its real name, and it solved the
problem for this particular service </font></font></span><span
class="414491614-06042005"><font face="Arial" size="2"><font
face="Arial">:)</font></font></span></p>
<p style="margin: 0in; font-size: 10pt; font-family: Verdana;"><span
class="414491614-06042005"></span><font face="Arial" size="2"> </font></p>
<p style="margin: 0in; font-size: 10pt; font-family: Verdana;"><span
class="414491614-06042005"><font face="Arial" size="2"><font
face="Arial">Still, there is another service that has a space in its
real name, therefore it still doesn't work: check_nt_service can't
monitor it. (This is a commercial application and we can't modify its
code/installation...)</font></font></span></p>
<p style="margin: 0in; font-size: 10pt; font-family: Verdana;"><span
class="414491614-06042005"><font face="Arial" size="2"><font
face="Arial">Changing the service real name in the registry causes the
service to stop responding to stop/start commands.</font></font></span></p>
<p style="margin: 0in; font-size: 10pt; font-family: Verdana;"><font
face="Arial" size="2"> </font></p>
</div>
<div><font face="Arial" size="2"><span class="414491614-06042005">I
also couldn't find any more posts on this subject in the archives :(</span></font></div>
<div><font face="Arial" size="2"><span class="414491614-06042005"></span></font><font
face="Arial" size="2"><span class="414491614-06042005"></span></font> </div>
<div><font face="Arial" size="2"><span class="414491614-06042005">I
know this is an old issue, but can anyone provide further help on this?</span></font></div>
<div><font face="Arial" size="2"><span class="414491614-06042005">Is
there a way around the problem or do we have to require real service
names with no spaces?</span></font></div>
<div><font face="Arial" size="2"><span class="414491614-06042005"></span></font> </div>
<div><font face="Arial" size="2"><span class="414491614-06042005">PS:
I also have a problem with a service with an hyphen '-' in its real
name...</span></font></div>
<div> </div>
<div><span class="414491614-06042005"><font face="Arial" size="2">Best
Regards,</font></span></div>
<div align="left"><font face="Arial" size="2">
</font>
<div align="left">
<div align="left"><font face="Arial" size="2"><font face="Arial"
size="2">Luís Noronha</font></font></div>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Greg Vickers
Computer Systems Officer
Teaching and Learning Support Services, Systems and Architecture
Queensland University of Technology
Phone: (07) 3864 8276
Mobile: 0416 001 674, SD #6 6147
Email: <a class="moz-txt-link-abbreviated" href="mailto:g.vickers@qut.edu.au">g.vickers@qut.edu.au</a>
CRICOS No. 00213J</pre>
</body>
</html>