<br><br><div class="gmail_quote">On Mon, Nov 29, 2010 at 8:28 PM, Maxime Alarie <span dir="ltr"><<a href="mailto:malarie@processia.com">malarie@processia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> trm asn
[mailto:<a href="mailto:trm.nagios@gmail.com" target="_blank">trm.nagios@gmail.com</a>] <br>
<b>Sent:</b> 27 November 2010 05:20<div class="im"><br>
<b>To:</b> Nagios Users List<br>
<b>Subject:</b> Re: [Nagios-users] nsclient wrong password</div></span></p>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="margin-bottom: 12pt;">check nsc.ini for the password
& set the same password in nagios command.cfg file <br>
<br>
<br>
</p>
<div><div class="im">
<p class="MsoNormal">On Sat, Nov 27, 2010 at 2:53 AM, Maxime Alarie <<a href="mailto:malarie@processia.com" target="_blank">malarie@processia.com</a>> wrote:</p>
</div><div>
<div><div class="im">
<p class="MsoNormal">Hi,
I keep getting this error and I don’t know why.. When I install
nsclient on a windows macine, I provide the nagiosadmin password in the client,
as well as my nagios server IP address. For some reason, I keep
having the Invalid password error message both on nsclient.log and on the
server logs, on th e server I also have Connection Refused.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Nsclient.log:</p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">\NSClientListener.cpp:160:
Invalid password (None).</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">Server:</span></p>
<p class="MsoNormal">[1290806215]
SERVICE ALERT: Penang;C:\ Drive Space;UNKNOWN;HARD;4;NSClient - ERROR: Invalid
password.</p>
<p class="MsoNormal">[1290806215]
SERVICE NOTIFICATION: root;Penang;C:\ Drive
Space;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password.</p>
<p class="MsoNormal">[1290806227]
EXTERNAL COMMAND: SCHEDULE_FORCED_HOST_CHECK;Penang;1290806226</p>
<p class="MsoNormal">[1290806235]
SERVICE ALERT: Penang;W3SVC;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password.</p>
<p class="MsoNormal">[1290806235]
SERVICE NOTIFICATION:
root;Penang;W3SVC;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid
password.</p>
<p class="MsoNormal">[1290806275]
SERVICE ALERT: Penang;CPU Load;UNKNOWN;HARD;4;NSClient - ERROR: Invalid
password.</p>
<p class="MsoNormal">[1290806275]
SERVICE NOTIFICATION: root;Penang;CPU
Load;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password.</p>
<p class="MsoNormal">[1290806335]
SERVICE ALERT: Penang;Explorer;UNKNOWN;HARD;4;NSClient - ERROR: Invalid
password.</p>
<p class="MsoNormal">[1290806335]
SERVICE NOTIFICATION:
root;Penang;Explorer;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid
password.</p>
<p class="MsoNormal">[1290806515]
SERVICE ALERT: Penang;C:\ Drive Space;CRITICAL;HARD;4;Connection refused</p>
<p class="MsoNormal">[1290806515]
SERVICE NOTIFICATION: root;Penang;C:\ Drive
Space;CRITICAL;notify-service-by-email;Connection refused</p>
<p class="MsoNormal">[1290806535]
SERVICE ALERT: Penang;W3SVC;CRITICAL;HARD;4;Connection refused</p>
<p class="MsoNormal">[1290806535]
SERVICE NOTIFICATION:
root;Penang;W3SVC;CRITICAL;notify-service-by-email;Connection refused</p>
<p class="MsoNormal">[1290806575]
SERVICE ALERT: Penang;CPU Load;CRITICAL;HARD;4;Connection refused</p>
<p class="MsoNormal">[1290806575]
SERVICE NOTIFICATION: root;Penang;CPU
Load;CRITICAL;notify-service-by-email;Connection refused</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<div style="border-width: medium medium 1pt; border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; padding: 0in 0in 1pt;">
<p class="MsoNormal" style="border: medium none; padding: 0in;">What am I doing wrong here?</p>
</div>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
</div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I don’t
have any password in my commands.cfg looks like this: </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">cat /etc/nagios3/commands.cfg</span></p>
<p>###############################################################################</p>
<p># COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS
###############################################################################</p>
<p> </p>
<p> </p>
<p>################################################################################</p>
<p># NOTIFICATION COMMANDS</p>
<p>################################################################################</p>
<p> </p>
<p> </p>
<p># 'notify-host-by-email' command definition</p>
<p>define command{</p>
<p> command_name notify-host-by-email</p>
<p> command_line /usr/bin/printf
"%b" "***** Nagios *****\n\nNotification Type:
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" |
/usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is
$HOSTSTATE$ **" $CONTACTEMAIL$</p>
<p> }</p>
<p> </p>
<p># 'notify-service-by-email' command definition</p>
<p>define command{</p>
<p> command_name notify-service-by-email</p>
<p> command_line /usr/bin/printf
"%b" "***** Nagios *****\n\nNotification Type:
$NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:
$HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$
Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **"
$CONTACTEMAIL$</p>
<p> }</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>################################################################################</p>
<p># HOST CHECK COMMANDS</p>
<p>################################################################################</p>
<p> </p>
<p># On Debian, check-host-alive is being defined from
within the</p>
<p># nagios-plugins-basic package</p>
<p> </p>
<p>################################################################################</p>
<p># PERFORMANCE DATA COMMANDS</p>
<p>################################################################################</p>
<p> </p>
<p> </p>
<p># 'process-host-perfdata' command definition</p>
<p>define command{</p>
<p> command_name process-host-perfdata</p>
<p> command_line /usr/bin/printf
"%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n"
>> /var/lib/nagios3/host-perfdata.out</p>
<p> }</p>
<p> </p>
<p> </p>
<p># 'process-service-perfdata' command definition</p>
<p>define command{</p>
<p> command_name process-service-perfdata</p>
<p> command_line /usr/bin/printf
"%b"
"$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n"
>> /var/lib/nagios3/service-perfdata.out</p>
<p> }</p>
<p> <br></p></div></div></div></div></div></blockquote></div>where is your check_nt command defined ?<br><br><br>