Skip to Content

http://www.metric2.com/wp-content/uploads/2014/10/bg_top.png


metric² for iPhone lets you monitor your SAP HANA instances from your phone showing you alerts, core resources and important metrics. Wherever you are.

As mentioned in my GitHANA article, developing on the metric² open source project has really provided some interesting use cases for me around SAP HANA. While it might not be as critical as ERP, BW or custom solution, the metric² demo system is used fairly regularly by people wanting to test drive the functionality. I recently had some server troubles and my HANA instances was down without me knowing. This promoted me to develop a small mobile app to monitor and ensure that my instance was available and running optimally. This is when metric² for iPhone was conceived and I started developing the free app.

/wp-content/uploads/2014/08/screenshots_589236.png

The app is currently availble for iPhone, and I have a iPad version getting ready to be submitted to the App store. From a technical perspective the app uses a small XS file called mobileapi.xsjs which will need to be put in a package on your XSEngine instance to serve up the data to the app. You can specify how often you would like the data to be refreshed and specify multiple systems which you may need to monitor. (I have included my demo HANA instance as an example within the app so you can try it out.)

/wp-content/uploads/2014/08/alerts_589237.png

The app is perfect for anyone running a HANA instance, be dev, test or production. It provides a really easy way to view the status of your system from anywhere using your iPhone. The app also downloads updates in the background and will notify you if any high alerts are experienced on the selected system, this is perfect for any sys admin/dba who will be to anticipate critical outages and be ready for the support calls.

A few features of the app

– View CPU, Disk, Memory consumption

– View open alerts

– Insights into your HANA instance quickly and from anywhere

– Add multiple HANA instances for monitoring

– Clean and simple UI for basic admin functions

– Push notifications for high alerts, when the app is in running background

Click here to find the GitHub project (of the mobileapi.xsjs file) and click here to check out the product page. This includes install instructions.

Technical Details

Building a native iOS (read Obj. C or Swift) which is integrated with SAP HANA is not terribly challenging and you really have 2 options for pulling or pushing data. Via a XSJS type file (like this app) or via a xsOData type of interface. Both have their pro’s and con’s but are fundamentally very similar. Below is a snippet of some of the code from my xsjs file and looks/acts very similar to what a regular AJAX call would use from a native XS app.

One of the biggest challenges for production users, like any intranet based resource, will probably be gaining access to the URL (mobileapi.xsjs) from outside the corporate net and will probably require a network admin to grant you access or configure (or reuse) a reverse proxy or firewall.

Screen Shot 2014-08-22 at 1.08.56 PM.png  

Screen Shot 2014-08-22 at 1.12.40 PM.png
XCode iOS Pull Data Code
Screen Shot 2014-08-22 at 12.52.08 PM.png
SAP HANA XSJS Code serving data to the iOS app
To report this post you need to login first.

8 Comments

You must be Logged on to comment or reply to a post.

  1. Andy Silvey

    Hi Paul,

    very nicely done.

    This article should be a reminder for the Solution Manager Product Managers of the kind of functionality Solution Manager needs to offer for monitoring the whole SAP landscape from a mobil phone.

    Best regards,

    Andy.

    (0) 
    1. Paul Aschmann Post author

      Hi Andy,

      Thanks for your comment and point – I agree fully. I think it also extends beyond just providing desktop functionality on a mobile device, but rather rethinking the user experience and use cases from mobile devices.

      For reference here is a screenshot of the iPad version on its way shortly.

      Cheers, Paul

      Screen Shot 2014-07-15 at 3.37.38 PM.png

      (0) 
      1. Andy Silvey

        that is awesome Paul, but I am sorry to say, why do you have to do this, why does every company have to go through the same pain and inconvenience ?

        SAP is so far behind with Solution Manager Monitoring on Mobile, what you have shown here should be out of the box from SAP. I have to wonder if SAP Product Managers for Solution Manager read blogs like this one and think cool, or if they think, cool and why aren’t we doing that and when are we going to do that ?

        We’re prototyping this at the moment, it is nice functionality, How-to: Monitor OS processes with MAI Using SAP Solution Manager 7.1 and SAPOscol

        Best regards,

        Andy.

        (0) 
        1. John Krakowski

          Hello,

          Yes SAP monitors such blogs.  We do appreciate all who take the time to share their feedback with us.  We take everyone’s feedback seriously and I will ensure your feedback is communicated to the SAP Solution Manager team.

          Kind regards,

          John Krakowski

          Senior Product Manager – SAP Solution Manager

          (0) 
    1. Paul Aschmann Post author

      Hi Shady,

      Yes it is and its configurable how frequently in the settings of each server. For reference, the device is polling the XSJS file in the background and serving the data up. Are you aware of any other ‘true’ push scenarios/capabilities of HANA?

      Cheers, Paul

      (0) 

Leave a Reply