Page 1 of 1
NSClient - ERROR: Invalid password
Posted: Fri Apr 17, 2015 3:34 am
by lsazzad
I am not sure which password should i use at my windows server .ini file? Is the password of nagios or linux-server or windows-server?
Which one?
Re: NSClient - ERROR: Invalid password
Posted: Fri Apr 17, 2015 3:50 am
by szkoda
That password must match the password you set in your service/command check in Nagios.
Re: NSClient - ERROR: Invalid password
Posted: Fri Apr 17, 2015 5:10 am
by lsazzad
Thanks for your reply! Here is my Commands.cfg. Do i need to change "-p $ARG3$" to "-p $same passowrd of NSC.ini file" ?
# 'check_local_disk' command definition
define command{
command_name check_local_disk
command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
}
Otherwise i donet get your point. Would you like to guide me in breif? It will be highly appreciable!

Re: NSClient - ERROR: Invalid password
Posted: Fri Apr 17, 2015 5:36 am
by lsazzad
Good News! I have updated commands.cfg file like following::
# 'check_nt' command definition
define command{
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s 'same passowrd of nsclient.ini' -v $ARG1$ $ARG2$
}
Underlined block words are new that i have added extra. After restarting nagios, its ok & i am receiving recovery emails with correct definitions. Now NSClient++ can send data to my nagios. Thanks for your keywords.
Its solved. Admin can close this thread!