SAP HANA monitoring per database as piggyback data

I’m using 2.5.0p12.community and wanted to use my Databases just like my SAP systems: separate logical host, and data via piggyback.

This was very easy to implement: in the mk_sap_hana plugin, the functions query_instance(), get_sections() and get_empty_sections() need one additional line of code each.

Just above the line echo "<<<sap_hana_db_status:sep(59)>>>" I added another line: echo "<<<<HANA-${sid}>>>>". This puts the following output into a piggyback section. Then I can create a host “without IP” that gets data only via piggyback and has the name “HANA-” and the database’s SID.

This is a nice to have feature when you have Database hosts running with 8 databases and you do not want to get bad eyes when searching for corresponding data :slight_smile: .

Hi Werner,

makes sense :slight_smile:

if you don’t want to keep patching manually on every update I’d recommend making it optional (i.e. adding a config option in the cfg file that is parsed by mk_sap_hana) and creating a pull request on github for this.

Gerd