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
cannot create rfc connection: RFC connection open failed: 2
-
robertfabio
- Posts: 5
- Joined: Mon Jul 31, 2017 4:34 pm
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: cannot create rfc connection: RFC connection open failed
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.
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.
-
robertfabio
- Posts: 5
- Joined: Mon Jul 31, 2017 4:34 pm
Re: cannot create rfc connection: RFC connection open failed
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: cannot create rfc connection: RFC connection open failed
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.
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.robertfabio wrote:The users and hostnames are correct.
Are their any non-alphanumeric values in either user/pass
-
robertfabio
- Posts: 5
- Joined: Mon Jul 31, 2017 4:34 pm
Re: cannot create rfc connection: RFC connection open failed
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
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
-
robertfabio
- Posts: 5
- Joined: Mon Jul 31, 2017 4:34 pm
Re: cannot create rfc connection: RFC connection open failed
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
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
Thank you for sharing the solution!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.