2 # -*- encoding: utf-8; py-indent-offset: 4 -*-
3 # +------------------------------------------------------------------+
4 # | ____ _ _ __ __ _ __ |
5 # | / ___| |__ ___ ___| | __ | \/ | |/ / |
6 # | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
7 # | | |___| | | | __/ (__| < | | | | . \ |
8 # | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
10 # | Copyright Mathias Kettner 2014 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 # Example output from agent:
28 # <<<ibm_svc_system:sep(58)>>>
34 # total_mdisk_capacity:192.9TB
35 # space_in_mdisk_grps:192.9TB
36 # space_allocated_to_vdisks:147.48TB
37 # total_free_space:45.5TB
38 # total_vdiskcopy_capacity:149.54TB
39 # total_used_capacity:147.44TB
40 # total_overallocation:77
41 # total_vdisk_capacity:74.77TB
42 # total_allocated_extent_capacity:147.49TB
43 # statistics_status:on
44 # statistics_frequency:5
45 # cluster_locale:en_US
46 # time_zone:384 Europe/Paris
47 # code_level:6.4.1.4 (build 75.3.1303080000)
48 # console_IP:x.x.x.x:443
49 # id_alias:0000020060C16104
50 # gm_link_tolerance:300
51 # gm_inter_cluster_delay_simulation:0
52 # gm_intra_cluster_delay_simulation:0
54 # email_reply:master@desaster
55 # email_contact:Wichtiger Admin
56 # email_contact_primary:+49 30 555555555
57 # email_contact_alternate:
58 # email_contact_location:blubb
60 # email_contact2_primary:
61 # email_contact2_alternate:
63 # inventory_mail_interval:7
64 # cluster_ntp_IP_address:x.x.x.x
65 # cluster_isns_IP_address:
66 # iscsi_auth_method:none
68 # auth_service_configured:no
69 # auth_service_enabled:no
71 # auth_service_user_name:
72 # auth_service_pwd_set:no
73 # auth_service_cert_set:no
74 # auth_service_type:tip
75 # relationship_bandwidth_limit:25
77 # tier_capacity:0.00MB
78 # tier_free_capacity:0.00MB
80 # tier_capacity:192.94TB
81 # tier_free_capacity:45.46TB
85 # compression_active:no
86 # compression_virtual_capacity:0.00MB
87 # compression_compressed_capacity:0.00MB
88 # compression_uncompressed_capacity:0.00MB
90 # email_organization:Acme Inc
91 # email_machine_address:
92 # email_machine_city:Berlin
93 # email_machine_state:XX
95 # email_machine_country:DE
96 # total_drive_raw_capacity:0
99 def inventory_ibm_svc_system(info
):
100 return [(None, None)]
103 def check_ibm_svc_system(item
, _no_params
, info
):
106 if line
[0] in ("name", "location", "code_level", "email_contact_location"):
109 message
+= "%s: %s" % (line
[0], line
[1])
113 check_info
["ibm_svc_system"] = {
114 "check_function": check_ibm_svc_system
,
115 "inventory_function": inventory_ibm_svc_system
,
116 "service_description": "Info",