<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>
<META content="MSHTML 5.00.3502.5390" name=GENERATOR>
<STYLE>@font-face {
font-family: Tahoma;
}
P.MsoNormal {
FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt
}
LI.MsoNormal {
FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt
}
DIV.MsoNormal {
FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
P {
FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in
}
SPAN.EmailStyle18 {
COLOR: navy; FONT-FAMILY: Arial
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US link=blue vLink=purple>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=988114306-04112003>You do
have the NSClient agent running as a service on the monitored MS
server?</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Oorspronkelijk bericht-----<BR><B>Van:</B> Neil Lehouillier
[mailto:NLehouillier@comptonpetroleum.com]<BR><B>Verzonden:</B> maandag 3
november 2003 21:05<BR><B>Aan:</B> VanZee, Timothy;
nagios-users@lists.sourceforge.net<BR><B>Onderwerp:</B> RE: [Nagios-users]
Check_nt win2k service states and nagios<BR><BR></DIV></FONT>
<DIV><SPAN class=954070120-03112003><FONT color=#0000ff face=Arial
size=2>Tim,</FONT></SPAN></DIV>
<DIV><SPAN class=954070120-03112003><FONT color=#0000ff face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=954070120-03112003><FONT color=#0000ff face=Arial
size=2>first thanks for helping out. I tried what you suggested but it
just had the same effect. No changes. I tried creating the entire
command within checkcommands.cfg. I have also tried passing the $ARG$
from Services.cfg but to no avail. Is anyone out there currently doing
this(ie checking windows nt services with check_nt). If so, could you
publish the way you have it set up for me to look at (from the cfg files to
the permissions).</FONT></SPAN></DIV>
<DIV><SPAN class=954070120-03112003><FONT color=#0000ff face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=954070120-03112003><FONT color=#0000ff face=Arial size=2>If
anyone has any other ideas I am more than willing to give it a try to get this
working.....</FONT></SPAN></DIV>
<DIV><SPAN class=954070120-03112003><FONT color=#0000ff face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=954070120-03112003><FONT color=#0000ff face=Arial
size=2>Thanks....</FONT></SPAN></DIV>
<DIV><SPAN class=954070120-03112003><FONT color=#0000ff face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=954070120-03112003><FONT color=#0000ff face=Arial
size=2>Neil</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV align=left class=OutlookMessageHeader dir=ltr lang=en-us><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> VanZee,
Timothy [mailto:T-VANZEE@govst.edu] <BR><B>Sent:</B> Monday, November 03,
2003 7:29 AM<BR><B>To:</B>
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> RE: [Nagios-users]
Check_nt win2k service states and nagios<BR><BR></FONT></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">You can define a
new check command in your checkcommand.cfg file such as:</SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt"></SPAN></FONT> </P>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">#
'check_nt_service_exchange' command definition</SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">define
command{</SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">
command_name check_nt_service</SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">
command_line $USER1$/check_nt -H $HOSTADDRESS$ -s
password123 -v SERVICESTATE -d SHOWALL -l $ARG1$</SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">
}</SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt"></SPAN></FONT> </P>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">Then in your
services.cfg file modify the line:</SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">check_command
"/usr/local/nagios/libexec/check_nt_exchange!SMTPSVC,AVExch32Service</SPAN></FONT></P>
<DIV>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt"></SPAN></FONT> </P>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">I haven’t tested
with a comma in the check_command line, so you may need to either add
another $ARG$ or place an escape character in the command.</SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt"></SPAN></FONT> </P>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt"></SPAN></FONT> </P>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">Tim Van
Zee</SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">ITS Network
Specialist</SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">Governors</SPAN></FONT><FONT
color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt"> State
University</SPAN></FONT></P>
<P class=MsoNormal><FONT color=#0000ff face=Arial size=2><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<DIV align=center class=MsoNormal style="TEXT-ALIGN: center"><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR align=center SIZE=2 tabIndex=-1 width="100%">
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt; FONT-WEIGHT: bold">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt">
nagios-users-admin@lists.sourceforge.net
[mailto:nagios-users-admin@lists.sourceforge.net] <B><SPAN
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Neil
Lehouillier<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Friday,
October 31, 2003 3:02 PM<BR><B><SPAN
style="FONT-WEIGHT: bold">To:</SPAN></B>
nagios-users@lists.sourceforge.net<BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> [Nagios-users] Check_nt win2k
service states and nagios</SPAN></FONT></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">Hi All,</SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">I'm having a problem monitoring
some Win 2k exchange services using nagios and check_nt from nsclient.
When I execute the following from the command line su'd to nagios(ie...su -
nagios) I get the following:</SPAN></FONT></P>
<P><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">usr/local/nagios/libexec/check_nt -H 192.168.0.7 -s
password123 -v SERVICESTATE -d SHOWALL -l
SMTPSVC,AVExch32Service<BR><BR>SMTPSVC: Started - AVExch32Service:
Started<BR><BR>But within nagios on the http web page I get:<BR>Service
Checks(SMTP,AV)<BR><BR>WARNING 10-31-2003 09:00:54 0d 0h 6m 11s 1/1 SMTPSVC:
Started - AVExch32Service$: Unknown<BR><BR>Here is the definition in the
services.cfg file:<BR>define service {<BR>host_name
Exchange<BR>service_description Service Checks(SMTP,AV)<BR>register
1<BR>max_check_attempts 1<BR>normal_check_interval 3<BR>retry_check_interval
1<BR>check_period 24x7<BR>notification_interval 0<BR>notification_period
24x7<BR>notification_options w,u,c,r<BR>contact_groups
ntadmins<BR>check_command "/usr/local/nagios/libexec/check_nt -H 192.168.0.7
-s password123 -v SERVICESTATE -d SHOWALL -l
SMTPSVC,AVExch32Service"<BR><BR>Has anyone seen this problem
before…….?<BR><BR><BR>Thanks...<BR><BR>Neil
</SPAN></FONT></P></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>