Page 1 of 1

Setting up SAP CCMS Plugin

Posted: Mon Aug 08, 2016 10:56 am
by hudbaylicensing
Hello,

Have been trying to get the SAP CCMS Plugin up and running and failing miserably. following the limited directions in the documentation.pdf is gives me the following error when trying to Make the executable:

Code: Select all

gcc -DSAP_RFC_TIME  -o check_sap agnt_util.o check_sap.o sap_moni.so librfccm.so -ldl -lm
/usr/bin/ld: warning: libstdc++.so.5, needed by librfccm.so, not found (try using -rpath or -rpath-link)
librfccm.so: undefined reference to `__cxa_pure_virtual@CXXABI_1.2'
librfccm.so: undefined reference to `__gxx_personality_v0@CXXABI_1.2'
librfccm.so: undefined reference to `vtable for __cxxabiv1::__class_type_info@GLIBCPP_3.2'
librfccm.so: undefined reference to `operator new[](unsigned int)@GLIBCPP_3.2'
librfccm.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info@GLIBCPP_3.2'
librfccm.so: undefined reference to `operator new(unsigned int)@GLIBCPP_3.2'
librfccm.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info@GLIBCPP_3.2'
librfccm.so: undefined reference to `operator delete(void*)@GLIBCPP_3.2'
librfccm.so: undefined reference to `operator delete[](void*)@GLIBCPP_3.2'
collect2: ld returned 1 exit status
make: *** [check_sap] Error 1
Any help would be appreciated.

Thanks,
Marc

Re: Setting up SAP CCMS Plugin

Posted: Mon Aug 08, 2016 2:22 pm
by rkennedy
Could you show us a link to exactly what plugin you're using? I looked on our Exchange and there seems to be quite a bit of options.

Keep in mind, we didn't write the plugin, but we'll do the best we can to help here.

Re: Setting up SAP CCMS Plugin

Posted: Mon Aug 15, 2016 3:58 pm
by hudbaylicensing
Hi There,

Thanks. I finally got it to compile....getting it working is another issue!

Marc

Re: Setting up SAP CCMS Plugin

Posted: Mon Aug 15, 2016 4:05 pm
by mcapra
If you need help with certain parts of this plugin, could you provide us a link to where you got it?

Re: Setting up SAP CCMS Plugin

Posted: Thu Aug 18, 2016 1:18 pm
by hudbaylicensing
Thanks for your reply.

Got it on the Nagios exchange - https://exchange.nagios.org/directory/P ... ns/details

A lot of our problems is (I believe) on the SAP side our SAP team disagrees. We are now getting the error:

<== RfcLastError

FUNCTION: SXMI_LOGON
RFC operation/code LOGON_DENIED
ERROR/EXCEPTION
key :
status : EXCEPTION LOGON_DENIED RAISED
message :
internal:

<== RfcClose

When running ./check_sap 0 LNX

I have the correct username and password in /etc/sapmon/login.cfg.

As I said, I believe the error is occurring because of something configured on the SAP side, unless anyone has experienced this before?

Re: Setting up SAP CCMS Plugin

Posted: Thu Aug 18, 2016 4:18 pm
by mcapra
The documentation is unfortunately in German which I can't read in a reasonable amount of time :P

The plugin doesn't appear to include any sort of verbose options at run time, but in agnt_mon.c there is a function sapmon_init with the int trace_me being set to 0. You could try changing that to a 1, recompiling, and see if it provides you with more verbose output than what you're currently getting.