cannot create rfc connection: RFC connection open failed: 2

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
robertfabio
Posts: 5
Joined: Mon Jul 31, 2017 4:34 pm

cannot create rfc connection: RFC connection open failed: 2

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

Post 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.
robertfabio
Posts: 5
Joined: Mon Jul 31, 2017 4:34 pm

Re: cannot create rfc connection: RFC connection open failed

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
robertfabio
Posts: 5
Joined: Mon Jul 31, 2017 4:34 pm

Re: cannot create rfc connection: RFC connection open failed

Post 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
robertfabio
Posts: 5
Joined: Mon Jul 31, 2017 4:34 pm

Re: cannot create rfc connection: RFC connection open failed

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: cannot create rfc connection: RFC connection open failed

Post by cdienger »

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.
Locked