If you are using the standard Ubuntu apt-get install the comand definitions are located in /etc/nagios-plugins/config you can modifiy the check_nt command from there in the nt.cfg file
Greg Pangrazio On Tue, Nov 30, 2010 at 8:56 AM, Maxime Alarie <mala...@processia.com> wrote: > > > > > From: trm asn [mailto:trm.nag...@gmail.com] > Sent: 29 November 2010 10:48 > > To: Nagios Users List > Subject: Re: [Nagios-users] nsclient wrong password > > > > > > On Mon, Nov 29, 2010 at 8:28 PM, Maxime Alarie <mala...@processia.com> > wrote: > > From: trm asn [mailto:trm.nag...@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 <mala...@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 ? > > > > > > UI don’t know. I h ave install nagio3 that is packaged with Ubuntu. I > just used apt-get install nagios and the plugins. It must be run as a > deamon? > > I have removed the password from the NSC files, and it works now. (I only > have 4 servers to monitor) > > > > > > > ------------------------------------------------------------------------------ > 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 > _______________________________________________ > Nagios-users mailing list > Nagios-users@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 > ------------------------------------------------------------------------------ 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 _______________________________________________ Nagios-users mailing list Nagios-users@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