nsclient wrong password

trm asn trm.nagios at gmail.com
Mon Nov 29 16:48:13 CET 2010


On Mon, Nov 29, 2010 at 8:28 PM, Maxime Alarie <malarie at processia.com>wrote:

>   *From:* trm asn [mailto:trm.nagios at gmail.com]
> *Sent:* 27 November 2010 05:20
>
> *To:* Nagios Users List
> *Subject:* Re: [Nagios-users] nsclient wrong password
>
>
>
> check nsc.ini for the password & set the same password in nagios
> command.cfg file
>
>
>  On Sat, Nov 27, 2010 at 2:53 AM, Maxime Alarie <malarie at processia.com>
> wrote:
>
> 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.
>
>
>
> Nsclient.log:
>
> \NSClientListener.cpp:160: Invalid password (None).
>
>
>
> Server:
>
> [1290806215] SERVICE ALERT: Penang;C:\ Drive Space;UNKNOWN;HARD;4;NSClient
> - ERROR: Invalid password.
>
> [1290806215] SERVICE NOTIFICATION: root;Penang;C:\ Drive
> Space;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password.
>
> [1290806227] EXTERNAL COMMAND: SCHEDULE_FORCED_HOST_CHECK;Penang;1290806226
>
> [1290806235] SERVICE ALERT: Penang;W3SVC;UNKNOWN;HARD;4;NSClient - ERROR:
> Invalid password.
>
> [1290806235] SERVICE NOTIFICATION:
> root;Penang;W3SVC;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid
> password.
>
> [1290806275] SERVICE ALERT: Penang;CPU Load;UNKNOWN;HARD;4;NSClient -
> ERROR: Invalid password.
>
> [1290806275] SERVICE NOTIFICATION: root;Penang;CPU
> Load;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password.
>
> [1290806335] SERVICE ALERT: Penang;Explorer;UNKNOWN;HARD;4;NSClient -
> ERROR: Invalid password.
>
> [1290806335] SERVICE NOTIFICATION:
> root;Penang;Explorer;UNKNOWN;notify-service-by-email;NSClient - ERROR:
> Invalid password.
>
> [1290806515] SERVICE ALERT: Penang;C:\ Drive
> Space;CRITICAL;HARD;4;Connection refused
>
> [1290806515] SERVICE NOTIFICATION: root;Penang;C:\ Drive
> Space;CRITICAL;notify-service-by-email;Connection refused
>
> [1290806535] SERVICE ALERT: Penang;W3SVC;CRITICAL;HARD;4;Connection refused
>
> [1290806535] SERVICE NOTIFICATION:
> root;Penang;W3SVC;CRITICAL;notify-service-by-email;Connection refused
>
> [1290806575] SERVICE ALERT: Penang;CPU Load;CRITICAL;HARD;4;Connection
> refused
>
> [1290806575] SERVICE NOTIFICATION: root;Penang;CPU
> Load;CRITICAL;notify-service-by-email;Connection refused
>
>
>
>
>
> What am I doing  wrong here?
>
>
>
> I don’t have any password in my commands.cfg looks like this:
>
> cat /etc/nagios3/commands.cfg
>
>
> ###############################################################################
>
> # COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS
> ###############################################################################
>
>
>
>
>
>
> ################################################################################
>
> # NOTIFICATION COMMANDS
>
>
> ################################################################################
>
>
>
>
>
> # 'notify-host-by-email' command definition
>
> define command{
>
>       command_name      notify-host-by-email
>
>       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$
>
>       }
>
>
>
> # 'notify-service-by-email' command definition
>
> define command{
>
>       command_name      notify-service-by-email
>
>       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$
>
>       }
>
>
>
>
>
>
>
>
>
>
>
>
> ################################################################################
>
> # HOST CHECK COMMANDS
>
>
> ################################################################################
>
>
>
> # On Debian, check-host-alive is being defined from within the
>
> # nagios-plugins-basic package
>
>
>
>
> ################################################################################
>
> # PERFORMANCE DATA COMMANDS
>
>
> ################################################################################
>
>
>
>
>
> # 'process-host-perfdata' command definition
>
> define command{
>
>       command_name      process-host-perfdata
>
>       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
>
>       }
>
>
>
>
>
> # 'process-service-perfdata' command definition
>
> define command{
>
>       command_name      process-service-perfdata
>
>       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
>
>       }
>
>
>
where is your check_nt command defined ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20101129/7eb39ac6/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list