<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Plugin for NT</TITLE>

<META content=Word.Document name=ProgId>
<META content="MSHTML 5.50.4916.2300" name=GENERATOR>
<META content="Microsoft Word 10" name=Originator><LINK 
href="cid:filelist.xml@01C28C8C.21B957A0" rel=File-List><!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:HyphenationZone>21</w:HyphenationZone>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<STYLE>@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 70.85pt 70.85pt 70.85pt 70.85pt; mso-header-margin: 35.4pt; mso-footer-margin: 35.4pt; mso-paper-source: 0; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman"; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EpostStil18 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial
}
SPAN.SpellE {
        mso-style-name: ""; mso-spl-e: yes
}
SPAN.GramE {
        mso-style-name: ""; mso-gram-e: yes
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Vanlig tabell";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]--></HEAD>
<BODY lang=NO-NYN style="tab-interval: 35.4pt" vLink=purple link=blue>
<DIV><SPAN class=305523116-15112002><FONT face=Arial color=#0000ff 
size=2>Kurt-</FONT></SPAN></DIV>
<DIV><SPAN class=305523116-15112002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=305523116-15112002><FONT face=Arial color=#0000ff size=2>Thanks 
for the help.......can you point me to a RTFM for compiling?  I try to 
compile it and I believe it is looking for the gcc source.....maybe I don't have 
it install.  Although I did find it in my /usr/bin 
directory.</FONT></SPAN></DIV>
<DIV><SPAN class=305523116-15112002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV><SPAN class=305523116-15112002>
<DIV><FONT face=Arial color=#0000ff size=2>netsaint# gcc -o check_nt 
check_nt.c<BR>check_nt.c:34: config.h: No such file or 
directory<BR>check_nt.c:35: common.h: No such file or 
directory<BR>check_nt.c:36: netutils.h: No such file or 
directory<BR>check_nt.c:37: utils.h: No such file or 
directory<BR>netsaint#<BR></FONT></DIV>
<DIV><SPAN class=305523116-15112002><FONT face=Arial color=#0000ff 
size=2>Garrett</FONT></SPAN></DIV></SPAN>
<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> Kurt Inge Smådal 
  [mailto:kurt@emsp.no]<BR><B>Sent:</B> Friday, November 15, 2002 12:41 
  AM<BR><B>To:</B> Garrett Anestos<BR><B>Cc:</B> 
  nagios-users@lists.sourceforge.net<BR><B>Subject:</B> SV: [Nagios-users] 
  Plugin for NT<BR><BR></FONT></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-ansi-language: EN-GB">The 
  check_net.c file is a C source code. <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-ansi-language: EN-GB">So 
  you have to compile it.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-ansi-language: EN-GB"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-ansi-language: EN-GB">gcc 
  -o check_nt check_nt.c should do it.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-ansi-language: EN-GB"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-ansi-language: EN-GB">Copy 
  the output file ( check_nt ) to the libexec 
  directory.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-ansi-language: EN-GB"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-ansi-language: EN-GB">--<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-ansi-language: EN-GB">Kurt 
  Inge <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-ansi-language: EN-GB"><o:p> </o:p></SPAN></FONT></P>
  <DIV 
  style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none">
  <P class=MsoNormal><FONT face=Tahoma size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">----<SPAN 
  class=SpellE>-Opprinnelig</SPAN> melding-----<BR><B><SPAN 
  style="FONT-WEIGHT: bold">Fra:</SPAN></B> Garrett Anestos 
  [mailto:GANESTOS@fisinc.com] <BR><B><SPAN 
  style="FONT-WEIGHT: bold">Sendt:</SPAN></B> 15. november 2002 
  01:01<BR><B><SPAN style="FONT-WEIGHT: bold">Til:</SPAN></B> 
  nagios-users@lists.sourceforge.net<BR><B><SPAN 
  style="FONT-WEIGHT: bold">Emne:</SPAN></B> [Nagios-users] Plugin for 
  NT</SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
  <P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">Hello 
  all-</SPAN></FONT> <o:p></o:p></P>
  <P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">I have a 
  question about the installation of the NSClient on NIX.</SPAN></FONT> 
  <o:p></o:p></P>
  <P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">I have 
  installed the service successfully on a NT box and it appears to be 
  running.</SPAN></FONT> <o:p></o:p></P>
  <P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">Once you 
  unzip the file you download it creates a directory called UnixSource.  In 
  that directory are the following files:</SPAN></FONT><o:p></o:p></P>
  <P><FONT face="Times New Roman" size=2><SPAN 
  style="FONT-SIZE: 10pt">Check_nt.<SPAN 
  class=GramE>c      <FONT size=3><SPAN 
  style="FONT-SIZE: 12pt"><BR></SPAN></FONT>readme</SPAN>.txt</SPAN></FONT> 
  <BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">makefile.am</SPAN></FONT> 
  <o:p></o:p></P>
  <P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">I'm 
  assuming that you just copy the Check_Nt.c file to the 
  /usr/local/libexec/nagios direcory and rename it to check_nt (without <SPAN 
  class=GramE>the .</SPAN>c)  </SPAN></FONT><o:p></o:p></P>
  <P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">Then copy 
  the following line into your 
  /usr/local/etc/nagios/checkcommands.cfg</SPAN></FONT> <o:p></o:p></P>
  <P><FONT face="Times New Roman" size=2><SPAN 
  style="FONT-SIZE: 10pt">command[check_nt_disk]=$USER1$/check_nt -H 
  $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c 
  $ARG3$</SPAN></FONT> <BR><FONT size=2><SPAN 
  style="FONT-SIZE: 10pt">command[check_nt_cpuload]=$USER1$/check_nt -H 
  $HOSTADDRESS$ -p 1248 -v CPULOAD -l $ARG1$</SPAN></FONT> <BR><FONT 
  size=2><SPAN style="FONT-SIZE: 10pt">command[check_nt_uptime]=$USER1$/check_nt 
  -H $HOSTADDRESS$ -p 1248 -v UPTIME</SPAN></FONT> <BR><FONT size=2><SPAN 
  style="FONT-SIZE: 10pt">command[check_nt_clientversion]=$USER1$/check_nt -H 
  $HOSTADDRESS$ -p 1248 -v CLIENTVERSION</SPAN></FONT> <BR><FONT size=2><SPAN 
  style="FONT-SIZE: 10pt">command[check_nt_process]=$USER1$/check_nt -H 
  $HOSTADDRESS$ -p 1248 -v PROCSTATE -l $ARG1$</SPAN></FONT> <BR><FONT 
  size=2><SPAN 
  style="FONT-SIZE: 10pt">command[check_nt_service]=$USER1$/check_nt -H 
  $HOSTADDRESS$ -p 1248 -v SERVICESTATE -l $ARG1$</SPAN></FONT> <BR><FONT 
  size=2><SPAN style="FONT-SIZE: 10pt">command[check_nt_memuse]=$USER1$/check_nt 
  -H $HOSTADDRESS$ -p 1248 -v MEMUSE -w $ARG1$ -c $ARG2$</SPAN></FONT> <BR><FONT 
  size=2><SPAN 
  style="FONT-SIZE: 10pt">command[check_nt_pagingfile]=$USER1$/check_nt -H 
  $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\Paging File(_Total)\<SPAN 
  class=GramE>\%</SPAN> Usage","Paging File usage is %.2f %%" -w $ARG1$ -c 
  $ARG2$</SPAN></FONT><o:p></o:p></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
  <P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">I 
  attempted to do this and got this error:</SPAN></FONT> <o:p></o:p></P>
  <P><SPAN class=GramE><FONT face="Times New Roman" size=2><SPAN 
  style="FONT-SIZE: 10pt">netsaint# .</SPAN></FONT></SPAN><FONT size=2><SPAN 
  style="FONT-SIZE: 10pt">/check_nt</SPAN></FONT> <BR><FONT size=2><SPAN 
  style="FONT-SIZE: 10pt">./check_nt: /COPYRIGHT: permission 
  denied</SPAN></FONT> <BR><FONT size=2><SPAN 
  style="FONT-SIZE: 10pt">check_breeze: not found</SPAN></FONT> <BR><FONT 
  size=2><SPAN style="FONT-SIZE: 10pt">check_breeze: not found</SPAN></FONT> 
  <BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">check_breeze: not 
  found</SPAN></FONT> <BR><FONT size=2><SPAN 
  style="FONT-SIZE: 10pt">check_breeze: not found</SPAN></FONT> <BR><FONT 
  size=2><SPAN style="FONT-SIZE: 10pt">check_breeze: not found</SPAN></FONT> 
  <BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">./check_nt: 7: Syntax error: 
  "(" unexpected</SPAN></FONT> <o:p></o:p></P>
  <P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">I changed 
  the permission on the file to mirror the other check_ files, but still receive 
  the error.</SPAN></FONT> <o:p></o:p></P>
  <P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">What am I 
  missing?</SPAN></FONT> <o:p></o:p></P>
  <P><FONT face="Times New Roman" size=2><SPAN 
  style="FONT-SIZE: 10pt">Thanks!</SPAN></FONT> 
<o:p></o:p></P></DIV></DIV></BLOCKQUOTE></BODY></HTML>