<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2>Hi -
</FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2>I've configured
NSClient on a Windows server and I'm running Nagios on a linux
box.</FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2>Getting the
following error:</FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT size=2>
<P>NSClient - ERROR: Invalid password.</P></FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2>Pings are OK, so I
know the host is reachable.</FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008>Other checks are OK too - </SPAN></DIV>
<DIV><SPAN class=002420720-25042008></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2>But something is
boogered in NSClient or in check_nt ---- I
think.</FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008>Here's some detail for those who want to
know that I've tried to fix this, and those who want to know if I've read
</SPAN></DIV>
<DIV><SPAN class=002420720-25042008>every page on the Internet before asking
questions. (I did hunt around for NSClient-for-idiots
documentation)</SPAN></DIV></FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2>System
characteristics:</FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2>Nagios
3.0.1</FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2>NSClient++-Win32-0.3.1.msi</FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2>The Nagios side of
things:</FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2>A server file
of:</FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2>cfg_file=/usr/local/nagios/etc/objects/coa-noc.cfg</FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2>It's just a copy of
/usr/local/nagios/etc/objects/windows-server.cfg</FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2>I'd modified the
localhost in there to be the IP address of my server.</FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008></SPAN> </DIV></FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2>In
'commands.cfg'</FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2># 'check_nt' command
definition<BR>define command{<BR>
command_name
check_nt<BR>
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v
$ARG1$ $ARG2$
-s <mypassword><BR>
}<BR></FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2>The NSClient side of
things:</FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2>The lines I've
configured in NSC.ini</FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2>(anything not
mentioned is at defaults)</FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2>[modules]<BR></FONT></SPAN><SPAN class=002420720-25042008><FONT
face=Arial size=2>password=<my password
here><BR>allowed_hosts=127.0.0.1/32,192.168.0.150/32<BR></DIV></FONT></SPAN>
<DIV><SPAN class=002420720-25042008><FONT face=Arial size=2>;# USE THIS
FILE<BR>; Use the INI file as opposed to the registry if this is 0 and the
use_reg in the registry is set to 1 <BR>; the registry will be used
instead.<BR>use_file=1</FONT></SPAN></DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2>[NSClient]<BR>allowed_hosts=<BR>bind_to_address=192.168.0.20<BR></DIV>
<DIV>[NRPE]<BR>;# BIND TO ADDRESS<BR>; Allows you to bind server to a
specific local address. This has to be a dotted ip adress not a
hostname.<BR>; Leaving this blank will bind to all avalible IP
adresses.<BR>bind_to_address=192.168.0.20<BR>;<BR>;# ALLOWED HOST
ADDRESSES<BR>; This is a comma-delimited list of IP address of hosts that
are allowed to talk to NRPE deamon.<BR>; If you leave this blank the
global version will be used instead.<BR>allowed_hosts=192.168.0.150<BR>;# CHECK
ALL SERVICES<BR>; Configure how to check services when a CheckAll is
performed.<BR>; ...=started means services in that class *has* to be
running.<BR>; ...=stopped means services in that class has to be
stopped.<BR>; ...=ignored means services in this class will be
ignored.<BR>check_all_services[SERVICE_BOOT_START]=ignored<BR>check_all_services[SERVICE_SYSTEM_START]=ignored<BR>check_all_services[SERVICE_AUTO_START]=started<BR>check_all_services[SERVICE_DEMAND_START]=ignored<BR>check_all_services[SERVICE_DISABLED]=stopped</DIV>
<DIV></FONT></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=002420720-25042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV> </DIV>
<DIV align=left><FONT face=Arial size=2>Tim Reimers</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Systems Analyst II</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Information Technology
Services</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>City of Asheville</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>phone - 828-259-5512</FONT></DIV>
<DIV align=left><FONT face=Arial size=2><A
href="mailto:timreimers@ashevillenc.gov">treimers@ashevillenc.gov</A></FONT></DIV>
<DIV> </DIV></BODY></HTML>