<div>
<div>I have installed the c-compiler however I still can't compile "check_nt.c"  though I'm in the right directory and I have the c-compiler. Does anyone know how to compile this plugin under Linux-Debian ? I have downloaded the c-compiler with the command "aptitude" and I have  added the necessary libraries to enable the compiler to run properly BUT I can't manage to compile the plugin "check_nt.c" that I have downloaded (
nagios-plugins-1.4.1). As mentioned to <strong>Lori Adams and Jon</strong>, when I run the service, the system does NOT recognize it, I'm pretty sure the service is NOT installed and I can't compile it ! </div>
<div> </div>
<div>I'm open to your advices, thanks in advance !! </div>
<div>Dan. </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div>
<div style="PADDING-RIGHT: 2px; PADDING-LEFT: 2px; BACKGROUND: #eee; PADDING-BOTTOM: 2px; MARGIN: 0px 16px; PADDING-TOP: 2px">
<div style="PADDING-LEFT: 20px; TEXT-INDENT: -16px">From: <b>dan dang <<a href="mailto:dang.quocdan@gmail.com">dang.quocdan@gmail.com</a>></b></div>
<div style="PADDING-LEFT: 20px; TEXT-INDENT: -16px">To: <b>Lori Adams <<a href="mailto:ladams@cloudmark.com">ladams@cloudmark.com</a>></b></div>
<div style="PADDING-LEFT: 20px; TEXT-INDENT: -16px">Date: <b>Aug 26, 2005 10:30 AM</b></div>
<div style="PADDING-LEFT: 20px; TEXT-INDENT: -16px">Subject: <b>Re: [Nagios-users] check_nt configuration</b></div>
<div style="PADDING-RIGHT: 4px; PADDING-LEFT: 4px; FONT-SIZE: 90%; PADDING-BOTTOM: 4px; PADDING-TOP: 4px"><span class="l" id="r_2">Reply</span> | <span class="l" id="r_3">Reply to all</span> | <span class="l" id="r_4">Forward
</span> | <span class="l" id="prm">Print</span> | <span class="l" id="astc">Add sender to Contacts list</span> | <span class="l" id="tr">Trash this message</span> | <span class="l" id="or">Show original</span></div></div>
</div>
<div> </div>
<div>
<div>Yes I have NSClient installed on the remote machine.</div>
<div>  </div></div>
<div>Actually I think the problem comes from the c-compiler that I have NOT installed yet, I'll try to install it and run the command : <font color="#ff0000"><font face="Arial" size="2"><strong>gcc -o check_nt check_nt.c 
</strong></font></font></div><span></span><span class="q">
<div><font color="#ff0000"><font face="Arial" size="2"><font color="#000000">to see whether I can compile the "check_nt" plugin or not. In fact, when I run the command "check_nt", the system does NOT recognize the service. That's why I think the service is NOT installed yet.  
</font></font></font></div>
<div><font color="#ff0000"></font> </div></span>
<div><font color="#ff0000"><font color="#000000" size="2">Thx for your help, don't hesitate to advise me more if u have any other ideas, </font></font></div><span class="sg"><span>
<div><font color="#ff0000"><font color="#000000" size="2">Dan.</font><br></font></div></span></span><span></span>
<div>
<div class="ea"><span id="e_105f1e8a67d56f94_4"><font size="2">- Hide quoted text -</font></span></div><span class="q" id="q_105f1e8a67d56f94_4"><br><br>
<div><span class="gmail_quote">On 8/25/05, <b class="gmail_sendername">Lori Adams</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" target="_blank" href="mailto:ladams@cloudmark.com">ladams@cloudmark.com</a>
> wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Did you follow everything that was mentioned in the Bobby Bradshaw<br>thread?<br>Do you have nsclient (Nagios Agent) running on your remote machine? 
<br><br>-Lori</blockquote>
<div> </div>
<div> </div>
<div> </div><br>
<div style="PADDING-RIGHT: 2px; PADDING-LEFT: 2px; BACKGROUND: #eee; PADDING-BOTTOM: 2px; MARGIN: 0px 16px; PADDING-TOP: 2px">
<div style="PADDING-LEFT: 20px; TEXT-INDENT: -16px">From: <b>dan dang <<a href="mailto:dang.quocdan@gmail.com">dang.quocdan@gmail.com</a>></b></div>
<div style="PADDING-LEFT: 20px; TEXT-INDENT: -16px">To: <b>Jon <<a href="mailto:jonsml@gmail.com">jonsml@gmail.com</a>></b></div>
<div style="PADDING-LEFT: 20px; TEXT-INDENT: -16px">Date: <b>Aug 26, 2005 10:23 AM</b></div>
<div style="PADDING-LEFT: 20px; TEXT-INDENT: -16px">Subject: <b>Re: [Nagios-users] check_nt configuration</b></div>
<div style="PADDING-RIGHT: 4px; PADDING-LEFT: 4px; FONT-SIZE: 90%; PADDING-BOTTOM: 4px; PADDING-TOP: 4px"><span class="l" id="r_2">Reply</span> | <span class="l" id="r_3">Reply to all</span> | <span class="l" id="r_4">Forward
</span> | <span class="l" id="prm">Print</span> | <span class="l" id="astc">Add sender to Contacts list</span> | <span class="l" id="tr">Trash this message</span> | <span class="l" id="or">Show original</span></div></div>
</div></span></div></div>
<div> </div>
<div>I did but I think I have figured out what was wrong, I think that I have NOT installed the c-compiler, I'll try to install it and run the command : <font color="#ff0000"><font face="Arial" size="2"><strong>gcc -o check_nt check_nt.c 
</strong></font></font></div>
<div><font color="#ff0000"><font face="Arial" size="2"><font color="#000000">to see whether I can compile the "check_nt" plugin or not. In fact, when I run the command "check_nt", the system does NOT recognize the service. That's why I think the service is NOT installed yet.  
</font></font></font></div>
<div><font color="#ff0000"></font> </div>
<div><font color="#ff0000"><font color="#000000" size="2">Thx for your help, don't hesitate to advise me more if u have ideas, </font></font></div><span class="sg">
<div><font color="#ff0000"><font color="#000000" size="2">Dan.</font><br></font><br> </div></span><span></span>
<div>
<div class="ea"><span id="e_105f1e27e39a4979_2"><font size="2">- Hide quoted text -</font></span></div><span class="q" id="q_105f1e27e39a4979_2">
<div><span class="gmail_quote">On 8/25/05, <b class="gmail_sendername">Jon</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" target="_blank" href="mailto:jonsml@gmail.com">jonsml@gmail.com</a>> wrote:</span>
 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi,</span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Since you mentioned that you have installed the plugins in a different location, did you make change to the $USER1$ variable to point it to the correct location?  To set the variable $USER1$ to /usr/lib/nagios/plugins/ you need to edit the 
resource.cfg.</span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">You can also try executing the command to see if it actually works.  Just go to where the check_nt is located and run it.  That would eliminate a few things. 
</span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">HTH,</span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Jon</span></font></p></div></blockquote></div></span></div>