Neue USV will keine Services finden

Hallo zusammen,
ich wollte hier euch nur kurz mitteilen, falls jemand auf der suche ist, eine Powerwalker USV einzubinden. Ich nutze die cmk Version Checkmk Free Edition 2.1.0p19
Es funktioniert wie hier beschrieben. Erst in diese Datei die OID eintragen
/omd/sites/mysite/local/lib/check_mk/base/check_legacy_includes/ups_generic.py

or oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.43943") #Powerwalker UPS

#!/usr/bin/env python3
# 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.


def ups_generic_scan_function(oid):
    return (
        oid(".1.3.6.1.2.1.1.2.0")
        in [
            ".1.3.6.1.4.1.232.165.3",
            ".1.3.6.1.4.1.476.1.42",
            ".1.3.6.1.4.1.534.1",
            ".1.3.6.1.4.1.8072.3.2.10",
            ".1.3.6.1.4.1.2254.2.5",
            ".1.3.6.1.4.1.12551.4.0",
        ]
        or oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.2.1.33")
        or oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.534.2")
        or oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.5491")
        or oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.705.1")
        or oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.818.1.100.1")
        or oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.935")
        or oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.43943") #Powerwalker UPS
    )


def discovery_ups_generic(info, default_levels_name):
    return [
        (idx, default_levels_name)  #
        for idx, raw_voltage, _raw_value in info  #
        if raw_voltage and int(raw_voltage)
    ]

zusätzlich wie von mey.eric schon erwähnt die Datei
/opt/omd/versions/2.1.0p2.cee/lib/python3/cmk/base/plugins/agent_based/utils/ups.py
nach
/omd/sites/$site$/local/lib/check_mk/base/plugins/agent_based/utils/ups.py
kopieren und die Datei Rechte dem Site User anpassen.
In der Datei diese Zeile hinzufügen.
equals(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.43943"),

DETECT_UPS_GENERIC = any_of(
   equals(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.232.165.3"),
   equals(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.476.1.42"),
   equals(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.534.1"),
   equals(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.935"),
   equals(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.8072.3.2.10"),
   equals(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.12551.4.0"),
   equals(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.43943"), # Powerwalker UPS
   startswith(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.2.1.33"),
   startswith(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.5491"),
   startswith(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.705.1"),
   startswith(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.818.1.100.1"),
)

Gruß Alex