<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=620003116-23052008>Hello,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=620003116-23052008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=620003116-23052008>For the sake of anyone that might be curious or runs
into a similar problem-</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=620003116-23052008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=620003116-23052008>I posted on nagios-portal.de thinking (rightly) that
there would be more SAP users over there in Germany. One of the posters
there came up with the solution:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=620003116-23052008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=620003116-23052008>The main problem was that for testing I was using my
login, which has SAP_ALL and SAP_NEW. You have to follow the steps
outlined in Wolfgang Barth's book to create the RFC user. Once that part
was done, the initial connection was made. The second problem was that
when the plugin queried the SAP system, it (or the RFC call) converted the
password to upper case. SAP is case sensitive, so I went ahead and gave
the new RFC user an all upper case password.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=620003116-23052008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=620003116-23052008>From that point on, everything worked
great!</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=620003116-23052008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=620003116-23052008>Thanks,</SPAN></FONT></DIV>
<DIV> </DIV><!-- Converted from text/rtf format -->
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>Mark
Novak</FONT></SPAN><SPAN lang=en-us><FONT face=Arial size=2><BR><FONT size=2>EDS
SAP Practice</FONT></FONT></SPAN><SPAN lang=en-us><FONT face=Arial
size=2><BR>Office: 972-605-2817<BR>Cell:
214-725-5295<BR>Email: <A
href="mailto:mark.novak@eds.com">mark.novak@eds.com</A></FONT></SPAN> <FONT
face=Arial size=2></P></FONT>
<DIV> </DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <B>On Behalf Of </B>Novak,
Mark<BR><B>Sent:</B> Sunday, May 18, 2008 4:02 PM<BR><B>To:</B>
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> [Nagios-users] Problem
with CHECK_SAP_CONS<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>Hello Everyone,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>I am trying to make the SAP CCMS plugins work with my
systems. I have successfully installed and configured ./check_sap.sh,
and it works fine.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>When setting up check_sap_cons, I set up an agent.cfg and
login.cfg in /etc/sapmon. For the login.cfg, I used my userid and
password (SAP_ALL and SAP_NEW).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>When I execute "./check_sap_cons 00 SM1", I receive the
following error:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2><== RfcLastError</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>FUNCTION: SXMI_LOGON<BR>RFC operation/code
SYSTEM_FAILURE<BR>ERROR/EXCEPTION<BR>key
:<BR>status :<BR>message : Name or password is incorrect (repeat
logon)<BR>internal:</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2><== RfcClose</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>I have googled for this error and checked the newsgroups.
I followed Wolfgang Barth's excellent book for the setup.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>I am not sure why I would get an incorrect
username/password error. I can log in fine through SAPGUI with the same
username/password combo.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>Any and all assistance is much
appreciated!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>agent.cfg -></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>[TEMPLATE_00]</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>DESCRIPTION=Dialog response time</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>MONI_SET_NAME=SAP CCMS Monitor
Templates</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>MONI_NAME=DIALOG Overview</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>PATTERN_0=*</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>login.cfg -></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>[LOGIN_SM1]</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>LOGIN=-d SM1 -u user -p password -c 001 -h myhostname -s
00</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>Command that I am running -></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>./check_sap_cons 00 SM1</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=024435320-18052008><FONT face=Verdana
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV><FONT face=Verdana color=#0000ff size=2></FONT> </DIV><!-- Converted from text/rtf format -->
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>Mark
Novak</FONT></SPAN><SPAN lang=en-us><FONT face=Arial size=2><BR><FONT
size=2>EDS SAP Practice</FONT></FONT></SPAN><SPAN lang=en-us><FONT face=Arial
size=2><BR>Office: 972-605-2817<BR>Cell:
214-725-5295<BR>Email: <A
href="mailto:mark.novak@eds.com">mark.novak@eds.com</A></FONT></SPAN>
</P></BLOCKQUOTE></BODY></HTML>