<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1264" name=GENERATOR>
<STYLE>@font-face {
font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
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-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman"
}
SPAN.EmailStyle18 {
COLOR: navy; FONT-FAMILY: Arial
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=954070120-03112003><FONT face=Arial color=#0000ff
size=2>Tim,</FONT></SPAN></DIV>
<DIV><SPAN class=954070120-03112003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=954070120-03112003><FONT face=Arial color=#0000ff 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 face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=954070120-03112003><FONT face=Arial color=#0000ff 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 face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=954070120-03112003><FONT face=Arial color=#0000ff
size=2>Thanks....</FONT></SPAN></DIV>
<DIV><SPAN class=954070120-03112003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=954070120-03112003><FONT face=Arial color=#0000ff
size=2>Neil</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> 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 face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">You can define a new
check command in your checkcommand.cfg file such as:</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">#
'check_nt_service_exchange' command definition</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">define
command{</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
command_name check_nt_service</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
command_line $USER1$/check_nt -H $HOSTADDRESS$ -s
password123 -v SERVICESTATE -d SHOWALL -l $ARG1$</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
}</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Then in your
services.cfg file modify the line:</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></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 face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">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 face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Tim Van
Zee</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">ITS Network
Specialist</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Governors</SPAN></FONT><FONT
face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> State
University</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#0000ff size=2><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
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-SIZE: 10pt; FONT-FAMILY: Arial">Hi All,</SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">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></BODY></HTML>