Page 1 of 1
cannot create rfc connection: RFC connection open failed: 2
Posted: Mon Aug 28, 2017 3:23 pm
by robertfabio
Hi everyone,
I have the message below:
CRITICAL - can not create rfc connection: RFC connection open failed: 2 / RFC_LOGON_FAILURE / Name or password is incorrect (repeat login)
When I execute the command:
/usr/local/nagios/libexec/check_sap_health --ashost 172.22.203.211 --sysnr 00 --username xxxxx --password xxxxxx --mode connection-time
Can someone help me?
Tks.
fabio
Re: cannot create rfc connection: RFC connection open failed
Posted: Mon Aug 28, 2017 4:56 pm
by dwhitfield
Are you sure that's the correct host, username, and password? The username and password could be correct, but if it's the wrong host, then you might get that error.
What syntax are you using for the username? Are you using domain syntax (domain\username), email syntax (username@domain), just a flat username, or something else? The check may not take the format you are giving it.
This is not a check we wrote, so you may need to contact the author, but of course we will do what we can.
Re: cannot create rfc connection: RFC connection open failed
Posted: Tue Aug 29, 2017 11:00 am
by robertfabio
Thanks for answering,
The users and hostnames are correct.
I can telnet to the port, the Nagios server communicates successfully on the SAP server, and the SAP server communicates with the Nagios server
I do not know where else to look. Log files with error messages to help, I can not find.
best regards,
Fabio
Re: cannot create rfc connection: RFC connection open failed
Posted: Tue Aug 29, 2017 11:07 am
by scottwilkerson
dwhitfield wrote:What syntax are you using for the username? Are you using domain syntax (domain\username), email syntax (username@domain), just a flat username, or something else? The check may not take the format you are giving it.
robertfabio wrote:The users and hostnames are correct.
I understand you may be sure that you do not have any typos in the username, but depending on if they have special chars in them, they may need to we wrapped in single quotes, or may need some chars escaped.
Are their any non-alphanumeric values in either user/pass
Re: cannot create rfc connection: RFC connection open failed
Posted: Tue Aug 29, 2017 2:10 pm
by robertfabio
Hello scott wilkerson,
I have already changed the password without any special characters, I have already left all the characters.
Is there no log file to view the error in more detail?
Best Regards
Fabio
Re: cannot create rfc connection: RFC connection open failed
Posted: Tue Aug 29, 2017 3:23 pm
by robertfabio
Hello everyone,
I was able to find the error.
Only in the SAP ECC EHP6 environment has this error occurred. The solution was to add the --client option on the merge line.
/usr/local/nagios/libexec/check_sap_health --ashost 172.22.203.211 --sysnr 00 --client 400 --username xxx --password xxxx --mode connection-time
OK - 0.17 seconds to connect as xxx @ DV1 | 'Connection_time' = 0.17; 1; 5 ;;
Thank you all.
Fabio
Re: cannot create rfc connection: RFC connection open failed
Posted: Tue Aug 29, 2017 4:16 pm
by cdienger
Thank you for sharing the solution!