#!/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.

# .1.3.6.1.4.1.232.2.2.2.1.0 CZ21220166 --> CPQSINFO-MIB::cpqSiSysSerialNum.0


def inv_hp_proliant_systeminfo(info):
    node = inv_tree("hardware.system.")
    if not node.get("serial"):
        node["serial"] = info[0][0][0]


inv_info["hp_proliant_systeminfo"] = {
    "inv_function": inv_hp_proliant_systeminfo,
}
