<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>Plugin for NT</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hello all-</FONT>
</P>

<P><FONT SIZE=2>I have a question about the installation of the NSClient on NIX.</FONT>
</P>

<P><FONT SIZE=2>I have installed the service successfully on a NT box and it appears to be running.</FONT>
</P>

<P><FONT SIZE=2>Once you unzip the file you download it creates a directory called UnixSource.  In that directory are the following files:</FONT></P>

<P><FONT SIZE=2>Check_nt.c      </FONT>
<BR><FONT SIZE=2>readme.txt</FONT>
<BR><FONT SIZE=2>makefile.am</FONT>
</P>

<P><FONT SIZE=2>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 the .c)  </FONT></P>

<P><FONT SIZE=2>Then copy the following line into your /usr/local/etc/nagios/checkcommands.cfg</FONT>
</P>

<P><FONT SIZE=2>command[check_nt_disk]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$</FONT>
<BR><FONT SIZE=2>command[check_nt_cpuload]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CPULOAD -l $ARG1$</FONT>
<BR><FONT SIZE=2>command[check_nt_uptime]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v UPTIME</FONT>
<BR><FONT SIZE=2>command[check_nt_clientversion]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CLIENTVERSION</FONT>
<BR><FONT SIZE=2>command[check_nt_process]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v PROCSTATE -l $ARG1$</FONT>
<BR><FONT SIZE=2>command[check_nt_service]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v SERVICESTATE -l $ARG1$</FONT>
<BR><FONT SIZE=2>command[check_nt_memuse]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v MEMUSE -w $ARG1$ -c $ARG2$</FONT>
<BR><FONT SIZE=2>command[check_nt_pagingfile]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\Paging File(_Total)\\% Usage","Paging File usage is %.2f %%" -w $ARG1$ -c $ARG2$</FONT></P>
<BR>

<P><FONT SIZE=2>I attempted to do this and got this error:</FONT>
</P>

<P><FONT SIZE=2>netsaint# ./check_nt</FONT>
<BR><FONT SIZE=2>./check_nt: /COPYRIGHT: permission denied</FONT>
<BR><FONT SIZE=2>check_breeze: not found</FONT>
<BR><FONT SIZE=2>check_breeze: not found</FONT>
<BR><FONT SIZE=2>check_breeze: not found</FONT>
<BR><FONT SIZE=2>check_breeze: not found</FONT>
<BR><FONT SIZE=2>check_breeze: not found</FONT>
<BR><FONT SIZE=2>./check_nt: 7: Syntax error: "(" unexpected</FONT>
</P>

<P><FONT SIZE=2>I changed the permission on the file to mirror the other check_ files, but still receive the error.</FONT>
</P>

<P><FONT SIZE=2>What am I missing?</FONT>
</P>

<P><FONT SIZE=2>Thanks!</FONT>
</P>

</BODY>
</HTML>