<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C28C8C.21B957A0">
<title>Plugin for NT</title>
<!--[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 Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
span.EpostStil18
{mso-style-type:personal-reply;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:navy;}
span.SpellE
{mso-style-name:"";
mso-spl-e:yes;}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
@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;}
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 link=blue vlink=purple style='tab-interval:35.4pt'>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy;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 size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy;mso-ansi-language:EN-GB'>So
you have to compile it.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy;mso-ansi-language:EN-GB'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy;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 size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy;mso-ansi-language:EN-GB'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy;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 size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy;mso-ansi-language:EN-GB'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy;mso-ansi-language:EN-GB'>--<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy;mso-ansi-language:EN-GB'>Kurt
Inge <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy;mso-ansi-language:EN-GB'><o:p> </o:p></span></font></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
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 size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Hello
all-</span></font> <o:p></o:p></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>I have a
question about the installation of the NSClient on NIX.</span></font> <o:p></o:p></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>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 size=2 face="Times New Roman"><span style='font-size:10.0pt'>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 size=2 face="Times New Roman"><span style='font-size:10.0pt'>Check_nt.<span
class=GramE>c <font size=3><span
style='font-size:12.0pt'><br>
</span></font>readme</span>.txt</span></font> <br>
<font size=2><span style='font-size:10.0pt'>makefile.am</span></font> <o:p></o:p></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>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 size=2 face="Times New Roman"><span style='font-size:10.0pt'>Then copy
the following line into your /usr/local/etc/nagios/checkcommands.cfg</span></font>
<o:p></o:p></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>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:10.0pt'>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:10.0pt'>command[check_nt_uptime]=$USER1$/check_nt
-H $HOSTADDRESS$ -p 1248 -v UPTIME</span></font> <br>
<font size=2><span style='font-size:10.0pt'>command[check_nt_clientversion]=$USER1$/check_nt
-H $HOSTADDRESS$ -p 1248 -v CLIENTVERSION</span></font> <br>
<font size=2><span style='font-size:10.0pt'>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:10.0pt'>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:10.0pt'>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:10.0pt'>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 size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>I
attempted to do this and got this error:</span></font> <o:p></o:p></p>
<p><span class=GramE><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>netsaint# .</span></font></span><font size=2><span
style='font-size:10.0pt'>/check_nt</span></font> <br>
<font size=2><span style='font-size:10.0pt'>./check_nt: /COPYRIGHT: permission
denied</span></font> <br>
<font size=2><span style='font-size:10.0pt'>check_breeze: not found</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>check_breeze: not found</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>check_breeze: not found</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>check_breeze: not found</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>check_breeze: not found</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>./check_nt: 7: Syntax error:
"(" unexpected</span></font> <o:p></o:p></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>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 size=2 face="Times New Roman"><span style='font-size:10.0pt'>What am I
missing?</span></font> <o:p></o:p></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Thanks!</span></font>
<o:p></o:p></p>
</div>
</div>
</body>
</html>