NSClient - ERROR: Invalid password

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
lsazzad
Posts: 72
Joined: Tue Apr 07, 2015 6:52 am
Location: ​Osnabrück, Deutschland
Contact:

NSClient - ERROR: Invalid password

Post 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?
Regards
Sazzad
szkoda
Posts: 42
Joined: Thu Dec 04, 2014 8:48 am

Re: NSClient - ERROR: Invalid password

Post by szkoda »

That password must match the password you set in your service/command check in Nagios.
lsazzad
Posts: 72
Joined: Tue Apr 07, 2015 6:52 am
Location: ​Osnabrück, Deutschland
Contact:

Re: NSClient - ERROR: Invalid password

Post 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! 8-) 8-) 8-)
Regards
Sazzad
lsazzad
Posts: 72
Joined: Tue Apr 07, 2015 6:52 am
Location: ​Osnabrück, Deutschland
Contact:

Re: NSClient - ERROR: Invalid password

Post 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!
Regards
Sazzad
Locked