Cleanup config.nodes_of
[check_mk.git] / checks / infoblox_node_services
blobf871fa787b9425475c08b3aed1c337af66c1ab06
1 #!/usr/bin/python
2 # -*- encoding: utf-8; py-indent-offset: 4 -*-
3 # +------------------------------------------------------------------+
4 # | ____ _ _ __ __ _ __ |
5 # | / ___| |__ ___ ___| | __ | \/ | |/ / |
6 # | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
7 # | | |___| | | | __/ (__| < | | | | . \ |
8 # | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
9 # | |
10 # | Copyright Mathias Kettner 2016 mk@mathias-kettner.de |
11 # +------------------------------------------------------------------+
13 # This file is part of Check_MK.
14 # The official homepage is at http://mathias-kettner.de/check_mk.
16 # check_mk is free software; you can redistribute it and/or modify it
17 # under the terms of the GNU General Public License as published by
18 # the Free Software Foundation in version 2. check_mk is distributed
19 # in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
20 # out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
21 # PARTICULAR PURPOSE. See the GNU General Public License for more de-
22 # tails. You should have received a copy of the GNU General Public
23 # License along with GNU Make; see the file COPYING. If not, write
24 # to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
25 # Boston, MA 02110-1301 USA.
27 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.1.9 9 --> IB-PLATFORMONE-MIB::ibNodeServiceName.node-status
28 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.1.10 10 --> IB-PLATFORMONE-MIB::ibNodeServiceName.disk-usage
29 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.1.11 11 --> IB-PLATFORMONE-MIB::ibNodeServiceName.enet-lan
30 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.1.12 12 --> IB-PLATFORMONE-MIB::ibNodeServiceName.enet-lan2
31 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.1.13 13 --> IB-PLATFORMONE-MIB::ibNodeServiceName.enet-ha
32 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.1.14 14 --> IB-PLATFORMONE-MIB::ibNodeServiceName.enet-mgmt
33 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.1.15 15 --> IB-PLATFORMONE-MIB::ibNodeServiceName.lcd
34 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.2.9 1 --> IB-PLATFORMONE-MIB::ibNodeServiceStatus.node-status
35 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.2.10 1 --> IB-PLATFORMONE-MIB::ibNodeServiceStatus.disk-usage
36 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.2.11 1 --> IB-PLATFORMONE-MIB::ibNodeServiceStatus.enet-lan
37 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.2.12 5 --> IB-PLATFORMONE-MIB::ibNodeServiceStatus.enet-lan2
38 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.2.13 5 --> IB-PLATFORMONE-MIB::ibNodeServiceStatus.enet-ha
39 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.2.14 1 --> IB-PLATFORMONE-MIB::ibNodeServiceStatus.enet-mgmt
40 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.2.15 5 --> IB-PLATFORMONE-MIB::ibNodeServiceStatus.lcd
41 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.3.9 Running --> IB-PLATFORMONE-MIB::ibNodeServiceDesc.node-status
42 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.3.10 15% - Primary drive usage is OK. --> IB-PLATFORMONE-MIB::ibNodeServiceDesc.disk-usage
43 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.3.11 X.X.X.X --> IB-PLATFORMONE-MIB::ibNodeServiceDesc.enet-lan
44 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.3.12 --> IB-PLATFORMONE-MIB::ibNodeServiceDesc.enet-lan2
45 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.3.13 --> IB-PLATFORMONE-MIB::ibNodeServiceDesc.enet-ha
46 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.3.14 X.X.X.X --> IB-PLATFORMONE-MIB::ibNodeServiceDesc.enet-mgmt
47 # .1.3.6.1.4.1.7779.3.1.1.2.1.10.1.3.15 --> IB-PLATFORMONE-MIB::ibNodeServiceDesc.lcd
49 check_info['infoblox_node_services'] = {
50 'parse_function': parse_infoblox_services,
51 'inventory_function': inventory_infoblox_services,
52 'check_function': check_infoblox_services,
53 'service_description': 'Node service %s',
54 'snmp_info': (
55 ".1.3.6.1.4.1.7779.3.1.1.2.1.10.1",
57 "1", # IB-PLATFORMONE-MIB::ibNodeServiceName
58 "2", # IB-PLATFORMONE-MIB::ibNodeServiceStatus
59 "3", # IB-PLATFORMONE-MIB::ibNodeServiceDesc
60 ]),
61 'snmp_scan_function': scan_infoblox,
62 'includes': ["infoblox.include"],
63 'node_info': True,