check_3par always asking for Inserv 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
jung
Posts: 2
Joined: Wed Sep 07, 2016 5:05 am

check_3par always asking for Inserv password

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_3par always asking for Inserv password

Post 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.
Former Nagios Employee
jung
Posts: 2
Joined: Wed Sep 07, 2016 5:05 am

Re: check_3par always asking for Inserv password

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: check_3par always asking for Inserv password

Post 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?
Locked