Refactoring: Changed all check parameters starting with a 'g' or 'h' to new rulespec...
[check_mk.git] / inventory / solaris_psrinfo
blob4c6e367cd7086ee912c79c87128fd8bd6ceb73fc
1 #!/usr/bin/python
2 # -*- encoding: utf-8; py-indent-offset: 4 -*-
3 # +------------------------------------------------------------------+
4 # | ____ _ _ __ __ _ __ |
5 # | / ___| |__ ___ ___| | __ | \/ | |/ / |
6 # | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
7 # | | |___| | | | __/ (__| < | | | | . \ |
8 # | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
9 # | |
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 #<<<solaris_psrinfo:persist(1405715354)>>>
28 #The physical processor has 8 virtual processors (0-7)
29 # SPARC64-VII+ (portid 1024 impl 0x7 ver 0xc1 clock 2660 MHz)
30 #The physical processor has 8 virtual processors (8-15)
31 # SPARC64-VII+ (portid 1032 impl 0x7 ver 0xc1 clock 2660 MHz)
32 #The physical processor has 8 virtual processors (16-23)
33 # SPARC64-VII+ (portid 1040 impl 0x7 ver 0xc1 clock 2660 MHz)
34 #The physical processor has 8 virtual processors (24-31)
35 # SPARC64-VII+ (portid 1048 impl 0x7 ver 0xc1 clock 2660 MHz)
37 #<<<solaris_psrinfo:persist(1405715354)>>>
38 #The physical processor has 10 cores and 80 virtual processors (0-79)
39 # The core has 8 virtual processors (0-7)
40 # The core has 8 virtual processors (8-15)
41 # The core has 8 virtual processors (16-23)
42 # The core has 8 virtual processors (24-31)
43 # The core has 8 virtual processors (32-39)
44 # The core has 8 virtual processors (40-47)
45 # The core has 8 virtual processors (48-55)
46 # The core has 8 virtual processors (56-63)
47 # The core has 8 virtual processors (64-71)
48 # The core has 8 virtual processors (72-79)
49 # SPARC-T5 (chipid 0, clock 3600 MHz)
51 #<<<solaris_psrinfo:persist(1405715354)>>>
52 #The physical processor has 8 virtual processors (0-7)
53 # SPARC-T5 (chipid 0, clock 3600 MHz)
56 def inv_solaris_psrinfo(info):
57 node = inv_tree("hardware.cpu.")
58 node["Model"] = info[-1][0]
59 node["Maximum Speed"] = "%s %s" % (info[-1][-2], info[-1][-1].strip(')'))
62 inv_info['solaris_psrinfo'] = {
63 "inv_function": inv_solaris_psrinfo,