SAP HANA Monitoring

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mgajdos
Posts: 2
Joined: Wed Mar 25, 2020 5:04 am

SAP HANA Monitoring

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: SAP HANA Monitoring

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
mgajdos
Posts: 2
Joined: Wed Mar 25, 2020 5:04 am

Re: SAP HANA Monitoring

Post by mgajdos »

Hi,
Yes, sapstartsrv is running for HANA dba even SAP applications.
Regards,
Martin
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: SAP HANA Monitoring

Post 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.
Locked