lausser / check_sap_health

A plugin (monitoring-plugin, not nagios-plugin, see also http://is.gd/PP1330) which checks various parameters of a SAP system. You can check CCMS metrics as well as execute arbitrary BAPI calls.
GNU General Public License v3.0
15 stars 11 forks source link

could not load perl module SAPNW, wrong device #20

Closed picoroma closed 1 year ago

picoroma commented 1 year ago

I have recently update my NAGIOS OS server from Ubuntu 18.04 to 20.04

After this OS update I noticed problem with "check_sap_health" plugin. First I have some PERL module missing: JSON Data::...::date After I have Installed these 2 modules with cpan the check_sap_health -V give me the correct results : check_sap_health $Revision: 3.0.0.2 $ [http://labs.consol.de/nagios/check_sap_health]

But any check commands give me the error: CRITICAL - could not load perl module SAPNW, wrong device

I have also updated the saprfcsdk to the latest version 7.50 P11 but the results do not change Any suggestion?

lausser commented 1 year ago

Hi, i have no idea. The error happens when the module "sapnwrfc" is loaded. So first it must be made sure that this works flawlessly.

lausser@HULSE:~/git$ perl -e "use sapnwrfc"
Can't locate sapnwrfc.pm ....

There must be no output at all, then you can proceed with check_sap_health. You can try with strace if loading the module requires some files/shared libs, which are not found and maybe it's LD_LIBRARY_PATH.

nomoresecrets commented 3 months ago

@picoroma did you solve the issue? if so - how?