<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
pre
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:701705761;
mso-list-template-ids:-1480584024;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>HTH,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Jon<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;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>dan dang<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, August 25, 2005
3:54 AM<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
configuration</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>hi all, <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I have the same problem as Bobby Bradshaw (from whom I quoted the
message below) : <br>
<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>My Nagios setup is:<br>
Nagios v1.3 (October 24, 2004)<br>
Nagios plugins v1.4.1<br>
<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I have Nagios running correctly, sending notifications, checking ping
and HTTP on several hosts. BUT I have exactly the same problem as Bobby
Bradshaw which is the fact that I can't get Nagios to run
"./check_nt -H <a href="http://192.168.1.111">192.168.1.111</a> -v
UPTIME" command without getting a "CRITICAL - Socket timeout after 10
seconds" error or any of the check_nt commands without an error. I have
the Nsclient 2.01 on my Windows NT host. <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>The error I have is the fact that the system doesn't find the <strong><b><font
color=red face="Times New Roman"><span style='color:red'>check_nt</span></font></b></strong>
service BUT I have installed it in the </span></font><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue'>/usr/local/nagios/libexec/
</span></font><font size=2 color="#333333" face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:#333333'>file, in fact in my case I changed
the path to </span></font><font size=2 color=blue face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'>/usr/lib/nagios/plugins/ </span></font><font
size=2 color="#333333" face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:#333333'>since it's where the services are located in my
configuration. </span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I have exactly the same question as Bobby Brawn : Is there
better documentation than what is provided with Nsclient? Can I get some
pointers on ALL the cfg files that I have to edit to get the <strong><b><font
color=red face="Times New Roman"><span style='color:red'>check_nt</span></font></b></strong>
command to work.<br>
<br>
Bobby Bradshaw, I saw that u solved your problem, can u tell how did u do ? If
anyone has an idea, please advise. Thanks in advance !! <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Quoc-Dan DANG<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>NB: I have edited the "checkcommands.cfg" file by adding the
following lines : <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'># 'check_nt_disk' command definition<br>
define command{<br>
command_name check_nt_disk<br>
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$<br>
}<o:p></o:p></span></font></p>
</div>
<div>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
# 'check_nt_upload' command definition<br>
define command {<br>
command_name check_nt_cpuload<br>
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248
-v CPULOAD -l $ARG1$<br>
}<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
# 'check_nt_uptime' command definition<br>
define command {<br>
command_name check_nt_uptime<br>
command_line $USER1$/check_nt #-H $HOSTADDRESS$ -p 1248
-v UPTIME<br>
}<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
# 'check_nt_clientversion' command definition<br>
define command {<br>
command_name check_nt_clientversion<br>
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248
-v CLIENTVERSION<br>
}<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
# 'check_nt_process' command definition<br>
define command {<br>
command_name check_nt_process<br>
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248
-v PROCSTATE -l $ARG1$<br>
}<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
# 'check_nt_service' command definition<br>
define command{<br>
command_name check_nt_service<br>
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v SERVICESTATE -d
SHOWALL -l $ARG1$<br>
}<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
# 'check_nt_memuse' command definition<br>
define command{<br>
command_name check_nt_memuse<br>
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v MEMUSE -w
$ARG1$ -c $ARG2$<br>
}<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
# 'check_nt_fileage' command definition<br>
define command{<br>
command_name check_nt_fileage<br>
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v FILEAGE –l
$ARG1$ -w $ARG2$ -c $ARG3$<br>
}<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
# 'check_nt_pagingfile' command definition<br>
define command{<br>
command_name check_nt_pagingfile<br>
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l
"<a href="file:///\\Paging\">\\Paging</a> File(_Total)\\%%
Usage","Paging File usage is %.2f %%" -w $ARG1$ -c $ARG2$ <br>
}<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><strong><b><u><font size=3 color=red face="Times New Roman"><span
style='font-size:12.0pt;color:red'>QUOTE from Bobby Bradshaw who had the
same problem as I currently have :</span></font></u></b></strong> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>"From: nagios-users-admin@li... on<br>
> behalf<br>
> > of<br>
> > >>Bobby Bradshaw<br>
> > >>Sent: Fri 8/19/2005 2:43 PM<br>
> > >>To: nagios-users@li...<br>
> > >>Subject: [Nagios-users] check_nt configurations/setup <br>
> > >><br>
> > >><br>
> > >>Hi all,<br>
> > >><br>
> > >>My Nagios setup is:<br>
> > >>Suse 9.3 Professional<br>
> > >>Nagios v1.2<br>
> > >>Nagios plugins v1.4<br>
> > >>Nagios nrpe v2.0<br>
> > >><br>
> > >>I have Nagios running correctly, sending notifications,
checking ping<br>
> and<br>
> > >>HTTP on several hosts. Although, I am having so much
trouble trying to <br>
> > get<br>
> > >>Nagios to run "./check_nt -H <a
href="http://192.168.1.111">192.168.1.111</a> -v UPTIME" command without<br>
> > >>getting a "CRITICAL - Socket timeout after 10
seconds" error or any of <br>
> the<br>
> > >>check_nt commands without an error. I have the Nsclient
2.01 on my<br>
> > Windows<br>
> > >>XP host. Is there better documentation than what is
provided with<br>
> > Nsclient? <br>
> > >> Can I get some pointers on ALL the cfg files that I have to
edit to get<br>
> > the<br>
> > >>check_nt command to work.<br>
> > >><br>
> > >>Thanks in advance!<br>
> > >><br>
> > >>--<br>
> > >>Bobby Bradshaw, Jr.<br>
> > >>bobby.bradshaw@gm...<br>
> > ><br>
> > ><br>
> > ><br>
> ><br>
> > --<br>
> > Andreas
Ericsson
andreas.ericsson@op...<br>
> > OP5
AB
<a href="http://www.op5.se/" target="_NEW">http://www.op5.se</a><br>
> > Lead Developer<br>
> ><br>
> ><br>
> > ------------------------------------------------------- <br>
> > SF.Net email is Sponsored by the Better Software Conference &
EXPO<br>
> > September 19-22, 2005 * <st1:place w:st="on"><st1:City w:st="on">San
Francisco</st1:City>, <st1:State w:st="on">CA</st1:State></st1:place> *
Development Lifecycle<br>
> Practices<br>
> > Agile & Plan-Driven Development * Managing Projects & Teams *
Testing & QA <br>
> > Security * Process Improvement & Measurement * <a
href="http://www.sqe.com/bsce5sf" target="_NEW">http://www.sqe.com/bsce5sf</a><br>
> > _______________________________________________<br>
> > Nagios-users mailing list <br>
> > Nagios-users@li...<br>
> > <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users"
target="_NEW">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
> > ::: Please include Nagios version, plugin version (-v) and OS when <br>
> reporting<br>
> > any issue.<br>
> > ::: Messages without supporting info will risk being sent to /dev/null<br>
> ><br>
> ><br>
><br>
><br>
> --<br>
> Bobby Bradshaw, Jr.<br>
> bobby.bradshaw@gm ...<br>
><br>
><br>
<br>
<br>
--<br>
Bobby Bradshaw, Jr.<br>
<a href="mailto:bobby.bradshaw@gm">bobby.bradshaw@gm</a>...<br>
<br>
<o:p></o:p></span></font></p>
</div>
<div>
<table class=MsoNormalTable border=0 cellpadding=0 style='margin-left:.5in'>
<tr>
<td nowrap bgcolor="#DDDDDD" style='background:#DDDDDD;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>From: Bobby Bradshaw <bobby@gm...><br>
<a href="https://sourceforge.net/mailarchive/message.php?msg_id=12716990"><b><span
style='font-weight:bold;text-decoration:none'><img border=0 width=10
height=12 id="_x0000_i1025"
src="https://images-ssl.sourceforge.net/images/msg.gif"></span>Re: check_nt
configurations/setup</b></a> <br>
2005-08-22 08:18 <o:p></o:p></span></font></p>
</td>
</tr>
<tr>
<td style='padding:.75pt .75pt .75pt .75pt'><pre><font size=2
face="Courier New"><span style='font-size:10.0pt'> Found it. Thank you guys very much.<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> <o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> Much appreciated<o:p></o:p></span></font></pre></td>
</tr>
</table>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
</div>
</body>
</html>