Page 1 of 1

SAP HANA Monitoring

Posted: Thu May 07, 2020 5:25 am
by mgajdos
Hi Everybody,
We have tried to implement python monitoring scripts https://exchange.nagios.org/directory/P ... se/details
to be able to monitor SAP HANA 2.0 with SAP kernel 7.53.

With local test under NAGIO user it is working but remoutly from NAGIOS server we are getting :

GetAlertTree FAIL: NIECONN_REFUSED (Connection refused), NiRawConnect failed in plugin_fopen -> The sap-system-nr is incorrect.

        FAIL: HTTP error, HTTP/1.1 401 Unauthorized -> You use a new sap-kernel binarie (greater then 7.21)
        In this new version the sapstartsrv service have security features enabled.
        Set the paramter service/protectedwebmethods=NONE in the sap-instance profile
        NONE->sapstartsrv-security-features disabled
        For more information have a look at SAP-Note 927637. 
        Other solution, you can create a monitoring user in sap-profile! 


Anybody has faced already with this issue ?
To change service/protectedwebmethods = NONE is not a way as this is opening big security hole in system and also did not helped.

Any hint is appreciate,
Thank you,
Martin

Re: SAP HANA Monitoring

Posted: Thu May 07, 2020 3:52 pm
by benjaminsmith
Hi Martin,

If it runs successfully locally when logged in as the nagios user account, it should work remotely as well. There must be something else going on, are you sure the service, sapstartsrv, is running?

Re: SAP HANA Monitoring

Posted: Tue May 12, 2020 3:33 am
by mgajdos
Hi,
Yes, sapstartsrv is running for HANA dba even SAP applications.
Regards,
Martin

Re: SAP HANA Monitoring

Posted: Tue May 12, 2020 4:31 pm
by ssax
Please post the full command with options that you are running from the Nagios server.

Attach your nrpe.cfg file from the remote SAP server as well so that we can see how you have the command defined.