SAP monitoring Help

So the thing is that the plugins are not working correctly i guess, i put mk_sap.py in the plugins folder and there is also the sapnwfrc folder. i have python 3 running on the server. nothing shows up in checkmk. maybe i could also have some issues with the .cfg but i think it’s correct. i think it has something to do with the python version or the sapnwfrc. can someone plz help?

sapnwfrc from Checkmk is only compatiable with Pyhon2. There is no package available for Python3.

Download a newer version of the code : checkmk/mk_sap.py at master · stefan7018/checkmk · GitHub

Then utilize pyrfc works way better, we have it monitoring 200+ servers ( where we cannot deploy agents )

thank you, where do i need to put the sapnwrfc-0.19 folder? i have it in the same folder as the plugins and do i need to set executable rights to the setup.py in it?
can u also tell me the difference between python-sapnwrfc-0.19 and sapnwrf-0.19?

iam a total beginner btw, sorry for these questions (i hope your hey make sense in some way)

No worries, here to help :wink:
Download the latest SAP NW RFC SDK from the SAP marketplace. Then install it as per their install instructions.
The key point is setting the SAPNWRFC variables, since this allows the pyrfc install to find them.
The pyrfc is an updated library that replaces the old sapnwrfc python2 library with a python3.
There is a great install guide for pyrfc here (Installation — pyrfc 2.0.2 documentation).

Once all that work is done, then using the previously linked newer mk_sap.py you should be good to go.
When we set it up, we had them running piggyback from the checkmk server, and had to break them up into multiple “timed” jobs, due to the timing and load of running it as a single job ( was taking 10 min to do all 200 servers, so kept “log jamming” ).

Let me know if you need any more help.

Thanks,
Sean.

hello :))
so what do u mean with that
“The key point is setting the SAPNWRFC variables, since this allows the pyrfc install to find them.”

and could u plz provide me your sap.cfg? like everything in there except sensible data, would help me a lot (i want to kno what u selected under monitor_paths += [ something ]

and thanks for ur previous help :wink:

When you install the pyrfc, it will need to know where you have installed the SDK, this is done by setting an env variable. All is explained in the excellent pyrfc install docs.

/etc/check_mk/sap.cfg:
cfg = [{
‘ashost’: ‘sapdb1’,
‘client’: ‘010’,
‘lang’: ‘EN’,
‘loglevel’: ‘warn’,
‘passwd’: ‘#########’,
‘sysnr’: ‘00’,
‘trace’: ‘3’,
‘user’: ‘OVWMONITOR’},{
‘ashost’: ‘sapdb2’,
‘client’: ‘020’,
‘lang’: ‘EN’,
‘loglevel’: ‘warn’,
‘passwd’: ‘###########’,
‘sysnr’: ‘00’,
‘trace’: ‘3’,
‘user’: ‘OVWMONITOR’}
]
#End of Instance List

CCMS paths to monitor

monitor_paths += [
#‘SAP BI Monitors/BI Monitor’,
#‘SAP BI Monitors/BI Monitor//Oracle/Performance’,
#'SAP CCMS Monitor Templates/Operating System/OperatingSystem/CPU/
’,
‘SAP CCMS Monitor Templates/Operating System/OperatingSystem/CPU/5minLoadAverage’,
‘SAP CCMS Monitor Templates/Operating System/OperatingSystem/CPU/CPU_Utilization’,
#‘SAP CCMS Monitor Templates/Operating System/OperatingSystem/Disks/’,
'SAP CCMS Monitor Templates/Operating System/OperatingSystem/Filesystems/
’,
‘SAP CCMS Monitor Templates/Operating System/OperatingSystem/Memory/’,
#'SAP CCMS Monitor Templates/Operating System/OperatingSystem/Lan/
’,
‘SAP CCMS Monitor Templates/Dialog Overview/*’]

End of File

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.