Setting up SAP CCMS Plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hudbaylicensing
Posts: 27
Joined: Fri Jul 13, 2012 11:48 am

Setting up SAP CCMS Plugin

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Setting up SAP CCMS Plugin

Post 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.
Former Nagios Employee
hudbaylicensing
Posts: 27
Joined: Fri Jul 13, 2012 11:48 am

Re: Setting up SAP CCMS Plugin

Post by hudbaylicensing »

Hi There,

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

Marc
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Setting up SAP CCMS Plugin

Post by mcapra »

If you need help with certain parts of this plugin, could you provide us a link to where you got it?
Former Nagios employee
https://www.mcapra.com/
hudbaylicensing
Posts: 27
Joined: Fri Jul 13, 2012 11:48 am

Re: Setting up SAP CCMS Plugin

Post 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?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Setting up SAP CCMS Plugin

Post 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.
Former Nagios employee
https://www.mcapra.com/
Locked