Page 1 of 1

check_3par always asking for Inserv password

Posted: Tue Oct 25, 2016 2:21 am
by jung
I followed the configuration from this site : https://exchange.nagios.org/directory/P ... pt/details
but when i tried to run the script: /usr/local/nagios/libexec/check_3par xxx.xxx.xxx.xxx 3paradm check_node from the command line it's asking me the Inserv password and after typing in the password it will display the good results. Does anyone encounter the issue? thanks for anyhelp.

my setup:
Nagios 4.1.1
Centos 6.5

Re: check_3par always asking for Inserv password

Posted: Tue Oct 25, 2016 10:48 am
by rkennedy
Yeah, the issue is because SSH normally requires a password to authenticate. To get past this, you'll want to setup SSH keys to use for authentication.

Take a look at this document that is for Nagios XI, but it is still relevant for what you need to setup. It should work for you. https://assets.nagios.com/downloads/nag ... ng_SSH.pdf

The end goal, will be for you to be able to type ssh xxx.xxx.xxx.xxx from the Nagios machine, and have it not require a password at all.

Re: check_3par always asking for Inserv password

Posted: Thu Oct 27, 2016 6:36 am
by jung
@ rkennedy

Thanks for your swift reply. however, i've already created ssh key from my centos nagios machine then copied it to my InServ but still asking me for the InServ password.
Here's the step i've gone through:
1. ssh-keygen (run from my nagios machine0
2. connect to InServ by typing "ssh [email protected]
3. copied the generated rsa.pub from nagios machine to InServ server
4. exit the InServ ssh connection then relogin again but still asking me to enter the InServ password.

Note: Im using Nagios core 4.1.1

Thank you.
JunG

Re: check_3par always asking for Inserv password

Posted: Thu Oct 27, 2016 11:07 am
by dwhitfield
I tried to contact the developer of this plugin, but the email is no longer active, so this could take a little while as we do not maintain this plugin.

That said, it is not clear to me you are able to type ssh xxx.xxx.xxx.xxx from the Nagios machine, and have it not require a password at all. I know you said you generated the key, but is the key set up properly?