#!/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.7779.3.1.1.2.1.4.0 IB-VM-820 --> IB-PLATFORMONE-MIB::ibHardwareType.0
# .1.3.6.1.4.1.7779.3.1.1.2.1.5.0 422cc26d1a7a6eec1b03bd16cc74cfe7 --> IB-PLATFORMONE-MIB::ibHardwareId.0
# .1.3.6.1.4.1.7779.3.1.1.2.1.6.0 422cc26d1a7a6eec1b03bd16cc74cfe7 --> IB-PLATFORMONE-MIB::ibSerialNumber.0
# .1.3.6.1.4.1.7779.3.1.1.2.1.7.0 7.2.7 --> IB-PLATFORMONE-MIB::ibNiosVersion.0


def inv_infoblox_systeminfo(info):
    node = inv_tree("hardware.system.")
    model, hardware_id, serial_nr, version = info[0][0]
    node["model"] = model
    node["hardware_id"] = hardware_id
    node["serial"] = serial_nr
    node["version"] = version


inv_info["infoblox_systeminfo"] = {
    "inv_function": inv_infoblox_systeminfo,
}
