<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=073184922-06042005>Thanks Mark, but we've already tried single and double
quotes to no avail.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=073184922-06042005>It always returns service "unknown"</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=073184922-06042005></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=073184922-06042005>Cheers,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=073184922-06042005>LN</SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Mark Grafing [mailto:mgrafing@voyence.com]
<BR><B>Sent:</B> Wednesday, April 06, 2005 11:45 PM<BR><B>To:</B> Luis Noronha;
theal@pace2020.com; nagiosplug-help@lists.sourceforge.net<BR><B>Cc:</B>
OniTelecom - Security NET4B<BR><B>Subject:</B> RE: [Nagiosplug-help] NSCLIENT -
Monitoring a service with space character in its real name<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=579554322-06042005><FONT face="Microsoft Sans Serif"
color=#0000ff size=2>Quotes....put the service name in quotes... ;
)</FONT></SPAN></DIV>
<DIV><SPAN class=579554322-06042005><FONT face="Microsoft Sans Serif"
color=#0000ff size=2>Let me know if that helps you out...</FONT></SPAN></DIV>
<DIV><SPAN class=579554322-06042005><FONT face="Microsoft Sans Serif"
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=579554322-06042005><FONT face="Microsoft Sans Serif"
color=#0000ff size=2>~MARK~</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
nagiosplug-help-admin@lists.sourceforge.net
[mailto:nagiosplug-help-admin@lists.sourceforge.net] <B>On Behalf Of </B>Luis
Noronha<BR><B>Sent:</B> Wednesday, April 06, 2005 5:23 PM<BR><B>To:</B>
theal@pace2020.com; nagiosplug-help@lists.sourceforge.net<BR><B>Cc:</B>
OniTelecom - Security NET4B<BR><B>Subject:</B> RE: [Nagiosplug-help] NSCLIENT
- Monitoring a service with space character in its real
name<BR><BR></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=879302122-06042005>Sorry, man. Didn't work totally. I believe the
service real name (in registry) is what's used by "net stop/start" and
NSCLIENT.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=879302122-06042005>Could someone contribute on this?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=879302122-06042005></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=879302122-06042005>Thanks,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=879302122-06042005>Luis Noronha</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=879302122-06042005></SPAN></FONT> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Tony Heal [mailto:theal@pace2020.com]
<BR><B>Sent:</B> Wednesday, April 06, 2005 4:02 PM<BR><B>To:</B> Luis Noronha;
nagiosplug-help@lists.sourceforge.net<BR><B>Cc:</B> 'OniTelecom - Security
NET4B'<BR><B>Subject:</B> RE: [Nagiosplug-help] NSCLIENT - Monitoring a
service with space character in its real name<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=273325814-06042005><FONT face=Arial color=#0000ff size=2>Have
you tried changing the 'Display' name in services. If this is a Win2k or
higher you can do this by right clicking the service, select properties and
change the Display name. Not sure if this will work, but the command line 'net
stop' and 'net start' will use the display name and that should only affect
what is seen in services.msc, not what your program sees.</FONT></SPAN></DIV>
<DIV><SPAN class=273325814-06042005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=273325814-06042005><FONT face=Arial color=#0000ff
size=2>Tony</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
nagiosplug-help-admin@lists.sourceforge.net
[mailto:nagiosplug-help-admin@lists.sourceforge.net]<B>On Behalf Of </B>Luis
Noronha<BR><B>Sent:</B> Wednesday, April 06, 2005 10:33 AM<BR><B>To:</B>
nagiosplug-help@lists.sourceforge.net<BR><B>Cc:</B> OniTelecom - Security
NET4B<BR><B>Subject:</B> [Nagiosplug-help] NSCLIENT - Monitoring a service
with space character in its real name<BR><BR></FONT></DIV>
<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></DIV>
<DIV>
<P
style="FONT-SIZE: 10pt; MARGIN: 0in; FONT-FAMILY: Verdana; mso-outline-level: 1"><SPAN
class=414491614-06042005><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></SPAN><SPAN class=414491614-06042005><FONT
face=Arial>:)</FONT></SPAN></P>
<P
style="FONT-SIZE: 10pt; MARGIN: 0in; FONT-FAMILY: Verdana; mso-outline-level: 1"><SPAN
class=414491614-06042005><FONT face=Arial></FONT></SPAN> </P>
<P
style="FONT-SIZE: 10pt; MARGIN: 0in; FONT-FAMILY: Verdana; mso-outline-level: 1"><SPAN
class=414491614-06042005><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></SPAN></P>
<P
style="FONT-SIZE: 10pt; MARGIN: 0in; FONT-FAMILY: Verdana; mso-outline-level: 1"><SPAN
class=414491614-06042005><FONT face=Arial>Changing the service real name in
the registry causes the service to stop responding to stop/start
commands.</FONT></SPAN></P>
<P
style="FONT-SIZE: 10pt; MARGIN: 0in; FONT-FAMILY: Verdana; mso-outline-level: 1"><FONT
face=Arial></FONT> </P></SPAN></FONT></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><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=414491614-06042005><FONT face=Arial size=2>Best
Regards,</FONT></SPAN></DIV>
<DIV align=left><FONT face=Arial size=2>
<DIV align=left>
<DIV align=left><FONT face=Arial size=2>Luís
Noronha</FONT></FONT></DIV></DIV></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>