Refactoring: Changed all check parameters starting with an 'o' to the new rulespec...
[check_mk.git] / checks / infoblox_services
blob5fb89097594e73123cc4c1437cfa2cce165d854b
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.9.1.1.1 1 --> IB-PLATFORMONE-MIB::ibServiceName.dhcp
28 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.1.2 2 --> IB-PLATFORMONE-MIB::ibServiceName.dns
29 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.1.3 3 --> IB-PLATFORMONE-MIB::ibServiceName.ntp
30 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.1.4 4 --> IB-PLATFORMONE-MIB::ibServiceName.tftp
31 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.1.5 5 --> IB-PLATFORMONE-MIB::ibServiceName.http-file-dist
32 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.1.6 6 --> IB-PLATFORMONE-MIB::ibServiceName.ftp
33 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.1.7 7 --> IB-PLATFORMONE-MIB::ibServiceName.bloxtools-move
34 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.1.8 8 --> IB-PLATFORMONE-MIB::ibServiceName.bloxtools
35 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.2.1 4 --> IB-PLATFORMONE-MIB::ibServiceStatus.dhcp
36 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.2.2 4 --> IB-PLATFORMONE-MIB::ibServiceStatus.dns
37 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.2.3 1 --> IB-PLATFORMONE-MIB::ibServiceStatus.ntp
38 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.2.4 4 --> IB-PLATFORMONE-MIB::ibServiceStatus.tftp
39 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.2.5 4 --> IB-PLATFORMONE-MIB::ibServiceStatus.http-file-dist
40 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.2.6 4 --> IB-PLATFORMONE-MIB::ibServiceStatus.ftp
41 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.2.7 5 --> IB-PLATFORMONE-MIB::ibServiceStatus.bloxtools-move
42 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.2.8 4 --> IB-PLATFORMONE-MIB::ibServiceStatus.bloxtools
43 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.3.1 DHCP Service is inactive --> IB-PLATFORMONE-MIB::ibServiceDesc.dhcp
44 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.3.2 DNS Service is inactive --> IB-PLATFORMONE-MIB::ibServiceDesc.dns
45 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.3.3 NTP Service is working --> IB-PLATFORMONE-MIB::ibServiceDesc.ntp
46 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.3.4 Hard Disk: 0% - TFTP Service is inactive --> IB-PLATFORMONE-MIB::ibServiceDesc.tftp
47 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.3.5 Hard Disk: 0% - HTTP File Dist Service is inactive --> IB-PLATFORMONE-MIB::ibServiceDesc.http-file-dist
48 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.3.6 Hard Disk: 0% - FTP Service is inactive --> IB-PLATFORMONE-MIB::ibServiceDesc.ftp
49 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.3.7 --> IB-PLATFORMONE-MIB::ibServiceDesc.bloxtools-move
50 # .1.3.6.1.4.1.7779.3.1.1.2.1.9.1.3.8 CPU: 100%, Memory: 0%, Hard Disk: 0% - --> IB-PLATFORMONE-MIB::ibServiceDesc.bloxtools
52 check_info['infoblox_services'] = {
53 'parse_function': parse_infoblox_services,
54 'inventory_function': inventory_infoblox_services,
55 'check_function': check_infoblox_services,
56 'service_description': 'Service %s',
57 'snmp_info': (
58 ".1.3.6.1.4.1.7779.3.1.1.2.1.9.1",
60 "1", # IB-PLATFORMONE-MIB::ibServiceName
61 "2", # IB-PLATFORMONE-MIB::ibServiceStatus
62 "3", # IB-PLATFORMONE-MIB::ibServiceDesc
63 ]),
64 'snmp_scan_function': scan_infoblox,
65 'includes': ["infoblox.include"],
66 'node_info': True,