#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (C) 2019 tribe29 GmbH - License: GNU General Public License v2
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
# conditions defined in the file COPYING, which is part of this source code package.

#   .--resident------------------------------------------------------------.
#   |                              _     _            _                    |
#   |                _ __ ___  ___(_) __| | ___ _ __ | |_                  |
#   |               | '__/ _ \/ __| |/ _` |/ _ \ '_ \| __|                 |
#   |               | | |  __/\__ \ | (_| |  __/ | | | |_                  |
#   |               |_|  \___||___/_|\__,_|\___|_| |_|\__|                 |
#   |                                                                      |
#   '----------------------------------------------------------------------'

factory_settings["sap_hana_mem_resident_default_levels"] = {"levels": ("perc_used", (80.0, 90.0))}


def inventory_sap_hana_mem_resident(parsed):
    return


def check_sap_hana_mem_resident(item, params, parsed):
    return 1, "This check is deprecated. Please have a look at werk #7100."


check_info['sap_hana_mem'] = {
    'inventory_function': inventory_sap_hana_mem_resident,
    'check_function': check_sap_hana_mem_resident,
    'service_description': 'SAP HANA Resident Memory %s',
    'default_levels_variable': 'sap_hana_mem_resident_default_levels',
}

#.
#   .--database------------------------------------------------------------.
#   |                  _       _        _                                  |
#   |               __| | __ _| |_ __ _| |__   __ _ ___  ___               |
#   |              / _` |/ _` | __/ _` | '_ \ / _` / __|/ _ \              |
#   |             | (_| | (_| | || (_| | |_) | (_| \__ \  __/              |
#   |              \__,_|\__,_|\__\__,_|_.__/ \__,_|___/\___|              |
#   |                                                                      |
#   '----------------------------------------------------------------------'

factory_settings["sap_hana_mem_database_default_levels"] = {"levels": ("perc_used", (80.0, 90.0))}


def inventory_sap_hana_mem_database(parsed):
    return


def check_sap_hana_mem_database(item, params, parsed):
    return 1, "This check is deprecated. Please have a look at werk #7100."


check_info['sap_hana_mem.database'] = {
    'inventory_function': inventory_sap_hana_mem_database,
    'check_function': check_sap_hana_mem_database,
    'service_description': 'SAP HANA Used Memory %s',
    'default_levels_variable': 'sap_hana_mem_database_default_levels',
}
