Cleanup config.nodes_of
[check_mk.git] / checks / prism_info
blobc727071bc9f22ffe16257684c1cd4b7e7f2597ed
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 # <<<prism_containers:sep(9)>>>
28 # name usage capacity
29 # DS01_NFS_Nutanix_B2B_Intern_SAS_Contrainer 2518694292480 38575532134515
30 # <<<prism_alerts:sep(9)>>>
31 # timestamp message severity
32 # 1456749413164951 DIMM fault detected on host 172.25.209.110. The node is running with 384 GB whereas 512 GB was installed. kCritical
33 # 1456748512334905 DIMM fault detected on host 172.25.209.110. The node is running with 384 GB whereas 512 GB was installed. kCritical
34 # <<<prism_cluster:sep(9)>>>
35 # name version
36 # CHZRHPCLNB2BINT001 4.5.1.2
39 def inventory_prism_cluster(parsed):
40 yield None, None
43 def check_prism_cluster(_no_item, _no_params, parsed):
44 return 0, "%s, version %s" % (parsed[0]['name'], parsed[0]['version'])
47 check_info['prism_info'] = {
48 'check_function': check_prism_cluster,
49 'inventory_function': inventory_prism_cluster,
50 'parse_function': parse_prism,
51 'service_description': "Prism Cluster",
52 'includes': ["prism.include"]