mirror of
https://github.com/Napsty/check_esxi_hardware.git
synced 2026-02-06 15:15:20 +01:00
Compare commits
56 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
141fdfb500 | ||
|
|
a548d358e0 | ||
|
|
2b6511a60a | ||
|
|
d154bc9f1b | ||
|
|
e4f406a309 | ||
|
|
d8f9fa1c82 | ||
|
|
274dceee74 | ||
|
|
bf4ec05979 | ||
|
|
489da3de76 | ||
|
|
bcf607b2cb | ||
|
|
ff3228b804 | ||
|
|
08cf10de24 | ||
|
|
df56d7373d | ||
|
|
6aebd1a4bb | ||
|
|
96aced6377 | ||
|
|
9f8b22a393 | ||
|
|
413dac781b | ||
|
|
21e0c2b3ed | ||
|
|
b758ee20df | ||
|
|
277206abc7 | ||
|
|
bd61850aa5 | ||
|
|
ccb315d2d7 | ||
|
|
575c4b47a7 | ||
|
|
0e62849ffb | ||
|
|
9ea8ba5967 | ||
|
|
7d4a85d0f3 | ||
|
|
ff33e0a7b8 | ||
|
|
cec24c19bd | ||
|
|
db0ffb7a05 | ||
|
|
3566f03ecb | ||
|
|
ecf93a695e | ||
|
|
89f9e505c3 | ||
|
|
82a4156e34 | ||
|
|
1f7c3b5927 | ||
|
|
ced39ad416 | ||
|
|
ec7db6479d | ||
|
|
496ae6cf31 | ||
|
|
d8a95f864f | ||
|
|
156016869a | ||
|
|
03f8ca8335 | ||
|
|
3727e67609 | ||
|
|
8c147a204e | ||
|
|
0036c441de | ||
|
|
c806fb4d90 | ||
|
|
6c8a4bfd63 | ||
|
|
fb038edcda | ||
|
|
3f97ca6485 | ||
|
|
b3c0ca4cdd | ||
|
|
e3a43a5dd0 | ||
|
|
8aecf4e7d1 | ||
|
|
60b03332f9 | ||
|
|
16b07977ae | ||
|
|
16e85dcc0c | ||
|
|
d67db0b2ff | ||
|
|
6abc24f522 | ||
|
|
629911c8de |
32
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
32
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Before actually creating a new issue**
|
||||
I confirm, I have read the FAQ (https://www.claudiokuenzler.com/blog/308/check-esxi-hardware-faq-frequently-asked-questions): Y/N
|
||||
I confirm, I have restarted the CIM server (` /etc/init.d/sfcbd-watchdog restart `) on the ESXi server and the problem remains: Y/N
|
||||
I confirm, I have cleared the server's local IPMI cache (`localcli hardware ipmi sel clear`) and restarted the services (`/sbin/services.sh restart`) on the ESXi server and the problem remains: Y/N
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**Show the full plugin output, including the command with -V parameter**
|
||||
Run the plugin with `-V` parameter and show the full output (including command) here. Obviously obfuscate credentials.
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Versions:**
|
||||
- check_esxi_hardware plugin:
|
||||
- VMware ESXi:
|
||||
- pywbem:
|
||||
- Python:
|
||||
- Third party tools (Dell OMSA, HP Offline Bundle, etc):
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
||||
77
.github/workflows/python2check.yml
vendored
Normal file
77
.github/workflows/python2check.yml
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
# @file python2check.yml
|
||||
---
|
||||
name: Python2 check
|
||||
|
||||
# Trigger the workflow on push or pull request
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
python2-pywbem08:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: '2.7'
|
||||
- name: Install pywbem from apt
|
||||
run: |
|
||||
sudo apt-get install -qq -yy python-pywbem
|
||||
- name: Set environment PYTHONPATH
|
||||
run: |
|
||||
export PYTHONPATH=/opt/hostedtoolcache/Python
|
||||
- name: Launch script with --help
|
||||
run: |
|
||||
./check_esxi_hardware.py --help
|
||||
|
||||
# Jobs with PIP installations are currently disabled.
|
||||
# python2-pywbem09:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v1
|
||||
# - uses: actions/setup-python@v1
|
||||
# with:
|
||||
# python-version: '2.7'
|
||||
# - name: Install latest pywbem from pip
|
||||
# run: |
|
||||
# sudo apt-get install -qq -yy python-pip
|
||||
# pip install pywbem==0.9.1
|
||||
# - name: Set environment PYTHONPATH
|
||||
# run: |
|
||||
# export PYTHONPATH=/opt/hostedtoolcache/Python
|
||||
# - name: Launch script with --help
|
||||
# run: |
|
||||
# ./check_esxi_hardware.py --help
|
||||
# python2-pywbem012:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v1
|
||||
# - uses: actions/setup-python@v1
|
||||
# with:
|
||||
# python-version: '2.7'
|
||||
# - name: Install latest pywbem from pip
|
||||
# run: |
|
||||
# sudo apt-get install -qq -yy python-pip
|
||||
# pip install pywbem==0.12.6
|
||||
# - name: Set environment PYTHONPATH
|
||||
# run: |
|
||||
# export PYTHONPATH=/opt/hostedtoolcache/Python
|
||||
# - name: Launch script with --help
|
||||
# run: |
|
||||
# ./check_esxi_hardware.py --help
|
||||
# python2-pywbem014:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v1
|
||||
# - uses: actions/setup-python@v1
|
||||
# with:
|
||||
# python-version: '2.7'
|
||||
# - name: Install latest pywbem from pip
|
||||
# run: |
|
||||
# sudo apt-get install -qq -yy python-pip
|
||||
# pip install pywbem==0.14.6
|
||||
# - name: Set environment PYTHONPATH
|
||||
# run: |
|
||||
# export PYTHONPATH=/opt/hostedtoolcache/Python
|
||||
# - name: Launch script with --help
|
||||
# run: |
|
||||
# ./check_esxi_hardware.py --help
|
||||
114
.github/workflows/python3check.yml
vendored
Normal file
114
.github/workflows/python3check.yml
vendored
Normal file
@@ -0,0 +1,114 @@
|
||||
# @file python3check.yml
|
||||
---
|
||||
name: Python3 check
|
||||
|
||||
# Trigger the workflow on push or pull request
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
simple-output:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Simple hello world
|
||||
run: echo "Hello World"
|
||||
# python3-pywbem-latest:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v1
|
||||
# - uses: actions/setup-python@v1
|
||||
# with:
|
||||
# python-version: '3.8'
|
||||
# - name: Install latest pywbem from pip
|
||||
# run: |
|
||||
# sudo apt-get install -qq -yy python3-pip
|
||||
# pip3 install pywbem
|
||||
# - name: Set environment PYTHONPATH
|
||||
# run: |
|
||||
# export PYTHONPATH=/opt/hostedtoolcache/Python/3.8.0/x64/lib/python3.8/site-packages
|
||||
# - name: Verify python sys.path
|
||||
# run: (echo "import sys"; echo "print(', '.join(sys.path))") | python
|
||||
# - name: Launch script with --help
|
||||
# run: |
|
||||
# ./check_esxi_hardware.py --help
|
||||
# python3-pywbem-08:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v1
|
||||
# - uses: actions/setup-python@v1
|
||||
# with:
|
||||
# python-version: '3.x'
|
||||
# - name: Install latest pywbem from pip
|
||||
# run: |
|
||||
# sudo apt-get install -qq -yy python3-pip
|
||||
# pip3 install pywbem==0.8.4
|
||||
# - name: Set environment PYTHONPATH
|
||||
# run: |
|
||||
# export PYTHONPATH=/opt/hostedtoolcache/Python
|
||||
# - name: Launch script with --help
|
||||
# run: |
|
||||
# ./check_esxi_hardware.py --help
|
||||
# python3-pywbem-012:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v1
|
||||
# - uses: actions/setup-python@v1
|
||||
# with:
|
||||
# python-version: '3.x'
|
||||
# - name: Install latest pywbem from pip
|
||||
# run: |
|
||||
# sudo apt-get install -qq -yy python3-pip
|
||||
# pip3 install pywbem==0.12.6
|
||||
# - name: Set environment PYTHONPATH
|
||||
# run: |
|
||||
# export PYTHONPATH=/opt/hostedtoolcache/Python
|
||||
# - name: Launch script with --help
|
||||
# run: |
|
||||
# ./check_esxi_hardware.py --help
|
||||
# python3-pywbem-013:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v1
|
||||
# - uses: actions/setup-python@v1
|
||||
# with:
|
||||
# python-version: '3.x'
|
||||
# - name: Install latest pywbem from pip
|
||||
# run: |
|
||||
# sudo apt-get install -qq -yy python3-pip
|
||||
# pip3 install pywbem==0.13.1
|
||||
# - name: Set environment PYTHONPATH
|
||||
# run: |
|
||||
# export PYTHONPATH=/opt/hostedtoolcache/Python
|
||||
# - name: Launch script with --help
|
||||
# run: |
|
||||
# ./check_esxi_hardware.py --help
|
||||
# python3-pywbem-014:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v1
|
||||
# - uses: actions/setup-python@v1
|
||||
# with:
|
||||
# python-version: '3.x'
|
||||
# - name: Install latest pywbem from pip
|
||||
# run: |
|
||||
# sudo apt-get install -qq -yy python3-pip
|
||||
# pip3 install pywbem==0.14.6
|
||||
# - name: Set environment PYTHONPATH
|
||||
# run: |
|
||||
# export PYTHONPATH=/opt/hostedtoolcache/Python
|
||||
# - name: Launch script with --help
|
||||
# run: |
|
||||
# ./check_esxi_hardware.py --help
|
||||
# find-pywbem:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v1
|
||||
# - uses: actions/setup-python@v1
|
||||
# with:
|
||||
# python-version: '3.x'
|
||||
# - name: Install latest pywbem from pip
|
||||
# run: |
|
||||
# sudo apt-get install -qq -yy python-pip
|
||||
# pip install pywbem
|
||||
# - name: Find pywbem module
|
||||
# run: |
|
||||
# find / -name 'pywbem-*'
|
||||
@@ -8,4 +8,8 @@ This is the public git repository for development of the plugin.
|
||||
|
||||
Documentation + Production Ready Plugin
|
||||
-------------
|
||||
Please refer to http://www.claudiokuenzler.com/nagios-plugins/check_esxi_hardware.php
|
||||
Please refer to https://www.claudiokuenzler.com/monitoring-plugins/check_esxi_hardware.php
|
||||
|
||||
Compatibility list
|
||||
-------------
|
||||
Please check https://www.claudiokuenzler.com/blog/1110/check_esxi_hardware-esxi-compatibility-matrix-list for a (non conclusive) matrix of known working versions.
|
||||
|
||||
@@ -15,16 +15,14 @@
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
# 02110-1301, USA.
|
||||
# along with this program; if not, see <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
# Pre-req : pywbem
|
||||
#
|
||||
# Copyright (c) 2008 David Ligeret
|
||||
# Copyright (c) 2009 Joshua Daniel Franklin
|
||||
# Copyright (c) 2010 Branden Schneider
|
||||
# Copyright (c) 2010-2014 Claudio Kuenzler
|
||||
# Copyright (c) 2010-2022 Claudio Kuenzler
|
||||
# Copyright (c) 2010 Samir Ibradzic
|
||||
# Copyright (c) 2010 Aaron Rogers
|
||||
# Copyright (c) 2011 Ludovic Hutin
|
||||
@@ -35,16 +33,22 @@
|
||||
# Copyright (c) 2011 Ian Chard
|
||||
# Copyright (c) 2012 Craig Hart
|
||||
# Copyright (c) 2013 Carl R. Friend
|
||||
# Copyright (c) 2015 Andreas Gottwald
|
||||
# Copyright (c) 2015 Stanislav German-Evtushenko
|
||||
# Copyright (c) 2015 Stefan Roos
|
||||
# Copyright (c) 2018 Peter Newman
|
||||
# Copyright (c) 2020 Luca Berra
|
||||
# Copyright (c) 2022 Marco Markgraf
|
||||
#
|
||||
# The VMware 4.1 CIM API is documented here:
|
||||
# http://www.vmware.com/support/developer/cim-sdk/4.1/smash/cim_smash_410_prog.pdf
|
||||
# http://www.vmware.com/support/developer/cim-sdk/smash/u2/ga/apirefdoc/
|
||||
#
|
||||
# The VMware 5.x CIM API is documented here:
|
||||
# http://pubs.vmware.com/vsphere-50/index.jsp?nav=/5_1_1
|
||||
# The VMware 5.5 and above CIM API is documented here:
|
||||
# https://code.vmware.com/apis/207/cim
|
||||
#
|
||||
# This Nagios plugin is maintained here:
|
||||
# http://www.claudiokuenzler.com/nagios-plugins/check_esxi_hardware.php
|
||||
# This monitoring plugin is maintained and documented here:
|
||||
# https://www.claudiokuenzler.com/monitoring-plugins/check_esxi_hardware.php
|
||||
#
|
||||
#@---------------------------------------------------
|
||||
#@ History
|
||||
@@ -207,17 +211,98 @@
|
||||
#@ Author : Claudio Kuenzler (www.claudiokuenzler.com)
|
||||
#@ Reason : Another two workarounds for Dell systems (VGA Cable Pres 0, Add-in Card 4 PEM Presence 0)
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20150109
|
||||
#@ Author : Claudio Kuenzler (www.claudiokuenzler.com)
|
||||
#@ Reason : Output serial number of chassis if a blade server is checked
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20150119
|
||||
#@ Author : Andreas Gottwald
|
||||
#@ Reason : Fix NoneType element bug
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20150626
|
||||
#@ Author : Claudio Kuenzler (www.claudiokuenzler.com)
|
||||
#@ Reason : Added support for patched pywbem 0.7.0 and new version 0.8.0, handle SSL error exception
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20150710
|
||||
#@ Author : Stanislav German-Evtushenko
|
||||
#@ Reason : Exit Unknown instead of Critical for timeouts and auth errors
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20151111
|
||||
#@ Author : Stefan Roos
|
||||
#@ Reason : Removed unused sensor_value variable and string import.
|
||||
#@ Reason : Added global hosturl variable declaration after imports.
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20160411
|
||||
#@ Author : Claudio Kuenzler (www.claudiokuenzler.com)
|
||||
#@ Reason : Distinguish between pywbem 0.7 and 0.8 (which is now released)
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20160531
|
||||
#@ Author : Claudio Kuenzler (www.claudiokuenzler.com)
|
||||
#@ Reason : Add parameter for variable CIM port (useful when behind NAT)
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20161013
|
||||
#@ Author : Claudio Kuenzler (www.claudiokuenzler.com)
|
||||
#@ Reason : Added support for pywbem 0.9.x (and upcoming releases)
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20170905
|
||||
#@ Author : Claudio Kuenzler (www.claudiokuenzler.com)
|
||||
#@ Reason : Added option to ignore LCD/Display related elements (--no-lcd)
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20180329
|
||||
#@ Author : Claudio Kuenzler (www.claudiokuenzler.com)
|
||||
#@ Reason : Try to use internal pywbem function to determine version
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20180411
|
||||
#@ Author : Peter Newman
|
||||
#@ Reason : Throw an unknown if we can't fetch the data for some reason
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20181001
|
||||
#@ Author : Claudio Kuenzler
|
||||
#@ Reason : python3 compatibility
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20190510
|
||||
#@ Author : Claudio Kuenzler
|
||||
#@ Reason : Allow regular expressions from ignore list (-r)
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20190701
|
||||
#@ Author : Phil Randal (phil.randal@gmail.com)
|
||||
#@ Reason : Fix lookup of warranty info for Dell (again)
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20200605
|
||||
#@ Author : Luca Berra
|
||||
#@ Reason : Add option to ignore chassis intrusion (Supermicro)
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20200605
|
||||
#@ Author : Claudio Kuenzler
|
||||
#@ Reason : Add parameter (-S) for custom SSL/TLS protocol version
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20200710
|
||||
#@ Author : Claudio Kuenzler
|
||||
#@ Reason : Improve missing mandatory parameter error text (issue #47)
|
||||
#@ Delete temporary openssl config file after use (issue #48)
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20210809
|
||||
#@ Author : Claudio Kuenzler
|
||||
#@ Reason : Fix TLSv1 usage (issue #51)
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20220509
|
||||
#@ Author : Marco Markgraf
|
||||
#@ Reason : Added JSON-output (Zabbix needs it)
|
||||
#@---------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
import time
|
||||
import pywbem
|
||||
import re
|
||||
import string
|
||||
import pkg_resources
|
||||
import json
|
||||
from optparse import OptionParser,OptionGroup
|
||||
|
||||
version = '20140319'
|
||||
version = '20220708'
|
||||
|
||||
NS = 'root/cimv2'
|
||||
hosturl = ''
|
||||
|
||||
# define classes to check 'OperationStatus' instance
|
||||
ClassesToCheck = [
|
||||
@@ -262,6 +347,7 @@ sensor_Type = {
|
||||
}
|
||||
|
||||
data = []
|
||||
xdata = {}
|
||||
|
||||
perf_Prefix = {
|
||||
1:'Pow',
|
||||
@@ -278,6 +364,9 @@ perf_Prefix = {
|
||||
# host name
|
||||
hostname=''
|
||||
|
||||
# cim port
|
||||
cimport=''
|
||||
|
||||
# user
|
||||
user=''
|
||||
|
||||
@@ -290,6 +379,10 @@ vendor='unknown'
|
||||
# verbose
|
||||
verbose=False
|
||||
|
||||
# output json
|
||||
format='string'
|
||||
pretty=False
|
||||
|
||||
# Produce performance data output for nagios
|
||||
perfdata=False
|
||||
|
||||
@@ -298,6 +391,8 @@ timeout = 0
|
||||
|
||||
# elements to ignore (full SEL, broken BIOS, etc)
|
||||
ignore_list=[]
|
||||
regex_ignore_list=[]
|
||||
regex=False
|
||||
|
||||
# urlise model and tag numbers (currently only Dell supported, but the code does the right thing for other vendors)
|
||||
urlise_country=''
|
||||
@@ -308,6 +403,8 @@ get_volts = True
|
||||
get_current = True
|
||||
get_temp = True
|
||||
get_fan = True
|
||||
get_lcd = True
|
||||
get_intrusion = True
|
||||
|
||||
# define exit codes
|
||||
ExitOK = 0
|
||||
@@ -315,6 +412,9 @@ ExitWarning = 1
|
||||
ExitCritical = 2
|
||||
ExitUnknown = 3
|
||||
|
||||
# Special handling for blade servers
|
||||
isblade = "no"
|
||||
|
||||
def dell_country(country):
|
||||
if country == 'at': # Austria
|
||||
return 'at/de/'
|
||||
@@ -377,7 +477,7 @@ def urlised_server_info(vendor, country, server_info):
|
||||
#server_inf = server_info
|
||||
if vendor == 'dell' :
|
||||
# Dell support URLs (idea and tables borrowed from check_openmanage)
|
||||
du = 'http://www.dell.com/support/troubleshooting/' + dell_country(country) + '19/Product/poweredge-'
|
||||
du = 'http://www.dell.com/support/home/' + dell_country(country) + '04/product-support/product/poweredge-'
|
||||
if (server_info is not None) :
|
||||
p=re.match('(.*)PowerEdge (.*) (.*)',server_info)
|
||||
if (p is not None) :
|
||||
@@ -385,7 +485,7 @@ def urlised_server_info(vendor, country, server_info):
|
||||
if md == 'R210 II':
|
||||
md='r210-2'
|
||||
md=md.lower()
|
||||
server_info = p.group(1) + '<a href="' + du + md + '#ui-tabs-4">PowerEdge ' + p.group(2)+'</a> ' + p.group(3)
|
||||
server_info = p.group(1) + '<a href="' + du + md + '/">PowerEdge ' + p.group(2)+'</a> ' + p.group(3)
|
||||
elif vendor == 'hp':
|
||||
return server_info
|
||||
elif vendor == 'ibm':
|
||||
@@ -400,8 +500,8 @@ def urlised_server_info(vendor, country, server_info):
|
||||
def system_tag_url(vendor,country):
|
||||
if vendor == 'dell':
|
||||
# Dell support sites
|
||||
supportsite = 'http://www.dell.com/support/troubleshooting/'
|
||||
dellsuffix = 'nodhs1/Index?t=warranty&servicetag='
|
||||
supportsite = 'http://www.dell.com/support/home/'
|
||||
dellsuffix = '19/product-support/servicetag/'
|
||||
|
||||
# warranty URLs for different country codes
|
||||
return supportsite + dell_country(country) + dellsuffix
|
||||
@@ -424,29 +524,36 @@ def urlised_serialnumber(vendor,country,SerialNumber):
|
||||
|
||||
def verboseoutput(message) :
|
||||
if verbose:
|
||||
print "%s %s" % (time.strftime("%Y%m%d %H:%M:%S"), message)
|
||||
print(time.strftime("%Y%m%d %H:%M:%S"), message)
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
def xdataprint():
|
||||
if format == 'json' and not pretty:
|
||||
print(json.dumps(xdata, sort_keys=True))
|
||||
if format == 'json' and pretty:
|
||||
print(json.dumps(xdata, sort_keys=True, indent=4))
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
def getopts() :
|
||||
global hosturl,user,password,vendor,verbose,perfdata,urlise_country,timeout,ignore_list,get_power,get_volts,get_current,get_temp,get_fan
|
||||
usage = "usage: %prog https://hostname user password system [verbose]\n" \
|
||||
"example: %prog https://my-shiny-new-vmware-server root fakepassword dell\n\n" \
|
||||
"or, using new style options:\n\n" \
|
||||
"usage: %prog -H hostname -U username -P password [-V system -v -p -I XX]\n" \
|
||||
"example: %prog -H my-shiny-new-vmware-server -U root -P fakepassword -V auto -I uk\n\n" \
|
||||
global hosturl,hostname,cimport,sslproto,user,password,vendor,verbose,perfdata,urlise_country,timeout,ignore_list,regex,get_power,get_volts,get_current,get_temp,get_fan,get_lcd,get_intrusion,format,pretty
|
||||
usage = "usage: %prog -H hostname -U username -P password [-C port -S proto -V vendor -v -p -I XX -i list,list -r]\n" \
|
||||
"example: %prog -H hostname -U root -P password -C 5989 -V auto -I uk\n\n" \
|
||||
"or, verbosely:\n\n" \
|
||||
"usage: %prog --host=hostname --user=username --pass=password [--vendor=system --verbose --perfdata --html=XX]\n"
|
||||
"usage: %prog --host=hostname --user=username --pass=password [--cimport=port --sslproto=version --vendor=system --verbose --perfdata --html=XX --format=json --pretty]\n"
|
||||
|
||||
parser = OptionParser(usage=usage, version="%prog "+version)
|
||||
group1 = OptionGroup(parser, 'Mandatory parameters')
|
||||
group2 = OptionGroup(parser, 'Optional parameters')
|
||||
|
||||
group1.add_option("-H", "--host", dest="host", help="report on HOST", metavar="HOST")
|
||||
group1.add_option("-H", "--host", dest="host", help="connect to HOST", metavar="HOST")
|
||||
group1.add_option("-U", "--user", dest="user", help="user to connect as", metavar="USER")
|
||||
group1.add_option("-P", "--pass", dest="password", \
|
||||
help="password, if password matches file:<path>, first line of given file will be used as password", metavar="PASS")
|
||||
|
||||
group2.add_option("-C", "--cimport", dest="cimport", help="CIM port (default 5989)", metavar="CIMPORT")
|
||||
group2.add_option("-S", "--sslproto", dest="sslproto", help="SSL/TLS protocol version to overwrite system default: SSLv2, SSLv3, TLSv1, TLSv1.1, TLSv1.2, TLSv1.3", metavar="SSLPROTO")
|
||||
group2.add_option("-V", "--vendor", dest="vendor", help="Vendor code: auto, dell, hp, ibm, intel, or unknown (default)", \
|
||||
metavar="VENDOR", type='choice', choices=['auto','dell','hp','ibm','intel','unknown'],default="unknown")
|
||||
group2.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False, \
|
||||
@@ -459,6 +566,8 @@ def getopts() :
|
||||
help="timeout in seconds - no effect on Windows (default = no timeout)")
|
||||
group2.add_option("-i", "--ignore", action="store", type="string", dest="ignore", default="", \
|
||||
help="comma-separated list of elements to ignore")
|
||||
group2.add_option("-r", "--regex", action="store_true", dest="regex", default=False, \
|
||||
help="allow regular expression lookup of ignore list")
|
||||
group2.add_option("--no-power", action="store_false", dest="get_power", default=True, \
|
||||
help="don't collect power performance data")
|
||||
group2.add_option("--no-volts", action="store_false", dest="get_volts", default=True, \
|
||||
@@ -469,20 +578,28 @@ def getopts() :
|
||||
help="don't collect temperature performance data")
|
||||
group2.add_option("--no-fan", action="store_false", dest="get_fan", default=True, \
|
||||
help="don't collect fan performance data")
|
||||
group2.add_option("--no-lcd", action="store_false", dest="get_lcd", default=True, \
|
||||
help="don't collect lcd/front display status")
|
||||
group2.add_option("--no-intrusion", action="store_false", dest="get_intrusion", default=True, \
|
||||
help="don't collect chassis intrusion status")
|
||||
group2.add_option("--format", dest="format", help="'string' (default) or 'json'", \
|
||||
metavar="FORMAT", type='choice', choices=['string','json'],default="string")
|
||||
group2.add_option("--pretty", action="store_true", dest="pretty", default=False, \
|
||||
help="return data as a pretty-printed json-array")
|
||||
|
||||
parser.add_option_group(group1)
|
||||
parser.add_option_group(group2)
|
||||
|
||||
# check input arguments
|
||||
if len(sys.argv) < 2:
|
||||
print "no parameters specified\n"
|
||||
print("no parameters specified\n")
|
||||
parser.print_help()
|
||||
sys.exit(-1)
|
||||
# if first argument starts with 'https://' we have old-style parameters, so handle in old way
|
||||
if re.match("https://",sys.argv[1]):
|
||||
# check input arguments
|
||||
if len(sys.argv) < 5:
|
||||
print "too few parameters\n"
|
||||
print("too few parameters\n")
|
||||
parser.print_help()
|
||||
sys.exit(-1)
|
||||
if len(sys.argv) > 5 :
|
||||
@@ -500,7 +617,7 @@ def getopts() :
|
||||
mandatories = ['host', 'user', 'password']
|
||||
for m in mandatories:
|
||||
if not options.__dict__[m]:
|
||||
print "mandatory parameter '--" + m + "' is missing\n"
|
||||
print("mandatory option '" + m + "' not defined. read usage in help.\n")
|
||||
parser.print_help()
|
||||
sys.exit(-1)
|
||||
|
||||
@@ -514,17 +631,24 @@ def getopts() :
|
||||
|
||||
user=options.user
|
||||
password=options.password
|
||||
cimport=options.cimport
|
||||
ignore_list=options.ignore.split(',')
|
||||
format=options.format
|
||||
pretty=options.pretty
|
||||
perfdata=options.perfdata
|
||||
regex=options.regex
|
||||
sslproto=options.sslproto
|
||||
timeout=options.timeout
|
||||
urlise_country=options.urlise_country.lower()
|
||||
vendor=options.vendor.lower()
|
||||
verbose=options.verbose
|
||||
perfdata=options.perfdata
|
||||
urlise_country=options.urlise_country.lower()
|
||||
timeout=options.timeout
|
||||
ignore_list=options.ignore.split(',')
|
||||
get_power=options.get_power
|
||||
get_volts=options.get_volts
|
||||
get_current=options.get_current
|
||||
get_temp=options.get_temp
|
||||
get_fan=options.get_fan
|
||||
get_lcd=options.get_lcd
|
||||
get_intrusion=options.get_intrusion
|
||||
|
||||
# if user or password starts with 'file:', use the first string in file as user, second as password
|
||||
if (re.match('^file:', user) or re.match('^file:', password)):
|
||||
@@ -553,12 +677,78 @@ if os_platform != "win32":
|
||||
on_windows = False
|
||||
import signal
|
||||
def handler(signum, frame):
|
||||
print 'CRITICAL: Execution time too long!'
|
||||
print('UNKNOWN: Execution time too long!')
|
||||
sys.exit(ExitUnknown)
|
||||
|
||||
# Use non-default CIM port
|
||||
if cimport:
|
||||
verboseoutput("Using manually defined CIM port "+cimport)
|
||||
hosturl += ':'+cimport
|
||||
|
||||
# Use non-default SSL protocol version
|
||||
if sslproto:
|
||||
verboseoutput("Using non-default SSL protocol: "+sslproto)
|
||||
allowed_protos = ["SSLv2", "SSLv3", "TLSv1", "TLSv1.1", "TLSv1.2", "TLSv1.3"]
|
||||
if any(proto.lower() == sslproto.lower() for proto in allowed_protos):
|
||||
import os
|
||||
sslconfpath = '/tmp/'+hostname+'_openssl.conf'
|
||||
verboseoutput("Creating OpenSSL config file: "+sslconfpath)
|
||||
try:
|
||||
with open(sslconfpath, 'w') as config_file:
|
||||
config_file.write("openssl_conf = openssl_init\n[openssl_init]\nssl_conf = ssl_configuration\n[ssl_configuration]\nsystem_default = tls_system_default\n[tls_system_default]\nMinProtocol = "+sslproto+"\n")
|
||||
except Exception as e:
|
||||
print('CRITICAL: An error occured while trying to write ssl config file: %s (%s)' % (sslconfpath, e))
|
||||
sys.exit(ExitCritical)
|
||||
os.environ["OPENSSL_CONF"] = sslconfpath
|
||||
else:
|
||||
print('CRITICAL: Invalid SSL protocol version given!')
|
||||
sys.exit(ExitCritical)
|
||||
|
||||
# Append lcd related elements to ignore list if --no-lcd was used
|
||||
verboseoutput("LCD Status: %s" % get_lcd)
|
||||
if not get_lcd:
|
||||
ignore_list.append("System Board 1 LCD Cable Pres 0: Connected")
|
||||
ignore_list.append("System Board 1 VGA Cable Pres 0: Connected")
|
||||
ignore_list.append("Front Panel Board 1 FP LCD Cable 0: Connected")
|
||||
ignore_list.append("Front Panel Board 1 FP LCD Cable 0: Config Error")
|
||||
|
||||
# Append chassis intrusion related elements to ignore list if --no-intrusion was used
|
||||
verboseoutput("Chassis Intrusion Status: %s" % get_intrusion)
|
||||
if not get_intrusion:
|
||||
ignore_list.append("System Chassis 1 Chassis Intru: General Chassis intrusion")
|
||||
ignore_list.append("System Chassis 1 Chassis Intru: Drive Bay intrusion")
|
||||
ignore_list.append("System Chassis 1 Chassis Intru: I/O Card area intrusion")
|
||||
ignore_list.append("System Chassis 1 Chassis Intru: Processor area intrusion")
|
||||
ignore_list.append("System Chassis 1 Chassis Intru: System unplugged from LAN")
|
||||
ignore_list.append("System Chassis 1 Chassis Intru: Unauthorized dock")
|
||||
ignore_list.append("System Chassis 1 Chassis Intru: FAN area intrusion")
|
||||
ignore_list.append("System Chassis 1 Chassis Intru: Unknown")
|
||||
|
||||
# connection to host
|
||||
verboseoutput("Connection to "+hosturl)
|
||||
wbemclient = pywbem.WBEMConnection(hosturl, (user,password), NS)
|
||||
# pywbem 0.7.0 handling is special, some patched 0.7.0 installations work differently
|
||||
try:
|
||||
pywbemversion = pywbem.__version__
|
||||
except:
|
||||
pywbemversion = pkg_resources.get_distribution("pywbem").version
|
||||
else:
|
||||
pywbemversion = pywbem.__version__
|
||||
verboseoutput("Found pywbem version "+pywbemversion)
|
||||
|
||||
if '0.7.' in pywbemversion:
|
||||
try:
|
||||
conntest = pywbem.WBEMConnection(hosturl, (user,password))
|
||||
c = conntest.EnumerateInstances('CIM_Card')
|
||||
except:
|
||||
#raise
|
||||
verboseoutput("Connection error, disable SSL certificate verification (probably patched pywbem)")
|
||||
wbemclient = pywbem.WBEMConnection(hosturl, (user,password), no_verification=True)
|
||||
else:
|
||||
verboseoutput("Connection worked")
|
||||
wbemclient = pywbem.WBEMConnection(hosturl, (user,password))
|
||||
# pywbem 0.8.0 and later
|
||||
else:
|
||||
wbemclient = pywbem.WBEMConnection(hosturl, (user,password), NS, no_verification=True)
|
||||
|
||||
# Add a timeout for the script. When using with Nagios, the Nagios timeout cannot be < than plugin timeout.
|
||||
if on_windows == False and timeout > 0:
|
||||
@@ -577,16 +767,23 @@ ExitMsg = ""
|
||||
if vendor=='auto':
|
||||
try:
|
||||
c=wbemclient.EnumerateInstances('CIM_Chassis')
|
||||
except pywbem.cim_operations.CIMError,args:
|
||||
except pywbem.cim_operations.CIMError as args:
|
||||
if ( args[1].find('Socket error') >= 0 ):
|
||||
print "UNKNOWN: %s" %args
|
||||
print("UNKNOWN: {}".format(args))
|
||||
sys.exit (ExitUnknown)
|
||||
elif ( args[1].find('ThreadPool --- Failed to enqueue request') >= 0 ):
|
||||
print("UNKNOWN: {}".format(args))
|
||||
sys.exit (ExitUnknown)
|
||||
else:
|
||||
verboseoutput("Unknown CIM Error: %s" % args)
|
||||
except pywbem.cim_http.AuthError,arg:
|
||||
except pywbem._exceptions.ConnectionError as args:
|
||||
GlobalStatus = ExitUnknown
|
||||
print("UNKNOWN: {}".format(args))
|
||||
sys.exit (GlobalStatus)
|
||||
except pywbem.cim_http.AuthError as arg:
|
||||
verboseoutput("Global exit set to UNKNOWN")
|
||||
GlobalStatus = ExitUnknown
|
||||
print "UNKNOWN: Authentication Error"
|
||||
print("UNKNOWN: Authentication Error")
|
||||
sys.exit (GlobalStatus)
|
||||
else:
|
||||
man=c[0][u'Manufacturer']
|
||||
@@ -605,27 +802,41 @@ for classe in ClassesToCheck :
|
||||
verboseoutput("Check classe "+classe)
|
||||
try:
|
||||
instance_list = wbemclient.EnumerateInstances(classe)
|
||||
except pywbem.cim_operations.CIMError,args:
|
||||
except pywbem._cim_operations.CIMError as args:
|
||||
if ( args[1].find('Socket error') >= 0 ):
|
||||
print "CRITICAL: %s" %args
|
||||
sys.exit (ExitCritical)
|
||||
print("UNKNOWN: {}".format(args))
|
||||
sys.exit (ExitUnknown)
|
||||
elif ( args[1].find('ThreadPool --- Failed to enqueue request') >= 0 ):
|
||||
print("UNKNOWN: {}".format(args))
|
||||
sys.exit (ExitUnknown)
|
||||
else:
|
||||
verboseoutput("Unknown CIM Error: %s" % args)
|
||||
except pywbem.cim_http.AuthError,arg:
|
||||
except pywbem._exceptions.ConnectionError as args:
|
||||
GlobalStatus = ExitUnknown
|
||||
print("UNKNOWN: {}".format(args))
|
||||
sys.exit (GlobalStatus)
|
||||
except pywbem._cim_http.AuthError as arg:
|
||||
verboseoutput("Global exit set to UNKNOWN")
|
||||
GlobalStatus = ExitCritical
|
||||
print "UNKNOWN: Authentication Error"
|
||||
GlobalStatus = ExitUnknown
|
||||
print("UNKNOWN: Authentication Error")
|
||||
sys.exit (GlobalStatus)
|
||||
else:
|
||||
# GlobalStatus = ExitOK #ARR
|
||||
for instance in instance_list :
|
||||
sensor_value = ""
|
||||
elementName = instance['ElementName']
|
||||
if elementName is None :
|
||||
elementName = 'Unknown'
|
||||
elementNameValue = elementName
|
||||
verboseoutput(" Element Name = "+elementName)
|
||||
|
||||
# Ignore element if we don't want it
|
||||
if elementName in ignore_list :
|
||||
if (regex == True) and (len(ignore_list) > 0) :
|
||||
for ignore in ignore_list :
|
||||
if re.search(ignore, elementName, re.IGNORECASE) :
|
||||
verboseoutput(" (ignored through regex)")
|
||||
regex_ignore_list.append(elementName)
|
||||
|
||||
if (elementName in ignore_list) or (elementName in regex_ignore_list) :
|
||||
verboseoutput(" (ignored)")
|
||||
continue
|
||||
|
||||
@@ -636,12 +847,15 @@ for classe in ClassesToCheck :
|
||||
+ str(instance[u'ReleaseDate'].datetime.date())
|
||||
verboseoutput(" VersionString = "+instance[u'VersionString'])
|
||||
|
||||
xdata['Bios Info'] = bios_info
|
||||
|
||||
elif elementName == 'Chassis' :
|
||||
man = instance[u'Manufacturer']
|
||||
if man is None :
|
||||
man = 'Unknown Manufacturer'
|
||||
verboseoutput(" Manufacturer = "+man)
|
||||
SerialNumber = instance[u'SerialNumber']
|
||||
SerialChassis = instance[u'SerialNumber']
|
||||
if SerialNumber:
|
||||
verboseoutput(" SerialNumber = "+SerialNumber)
|
||||
server_info = man + ' '
|
||||
@@ -649,12 +863,16 @@ for classe in ClassesToCheck :
|
||||
model = instance[u'Model']
|
||||
if model:
|
||||
verboseoutput(" Model = "+model)
|
||||
server_info += model + ' s/n:'
|
||||
#server_info += model + ' s/n:'
|
||||
server_info += model
|
||||
|
||||
elif elementName == 'Server Blade' :
|
||||
SerialNumber = instance[u'SerialNumber']
|
||||
if SerialNumber:
|
||||
verboseoutput(" SerialNumber = "+SerialNumber)
|
||||
isblade = "yes"
|
||||
|
||||
xdata['SerialNumber'] = SerialNumber
|
||||
|
||||
# Report detail of Numeric Sensors and generate nagios perfdata
|
||||
|
||||
@@ -697,33 +915,38 @@ for classe in ClassesToCheck :
|
||||
if units == 7: # Watts
|
||||
if get_power:
|
||||
data.append( ("%s=%g;%g;%g " % (perf_el, cr, utnc, utc),1) )
|
||||
xdata[perf_el] = { 'Unit': 'Watt', 'Value': cr, 'warn' : utnc, 'crit': utc }
|
||||
elif units == 6: # Current
|
||||
if get_current:
|
||||
data.append( ("%s=%g;%g;%g " % (perf_el, cr, utnc, utc),3) )
|
||||
xdata[perf_el] = { 'Unit': 'Ampere', 'Value': cr, 'warn' : utnc, 'crit': utc }
|
||||
|
||||
# PSU Voltage
|
||||
elif sensorType == 3: # Voltage
|
||||
if get_volts:
|
||||
data.append( ("%s=%g;%g;%g " % (perf_el, cr, utnc, utc),2) )
|
||||
xdata[perf_el] = { 'Unit': 'Volt', 'Value': cr, 'warn' : utnc, 'crit': utc }
|
||||
|
||||
# Temperatures
|
||||
elif sensorType == 2: # Temperature
|
||||
if get_temp:
|
||||
data.append( ("%s=%g;%g;%g " % (perf_el, cr, utnc, utc),4) )
|
||||
xdata[perf_el] = { 'Value': cr, 'warn' : utnc, 'crit': utc }
|
||||
|
||||
# Fan speeds
|
||||
elif sensorType == 5: # Tachometer
|
||||
if get_fan:
|
||||
if units == 65: # percentage
|
||||
if units == 65: # percentage
|
||||
data.append( ("%s=%g%%;%g;%g " % (perf_el, cr, utnc, utc),6) )
|
||||
xdata[perf_el] = { 'Unit': '%', 'Value': cr, 'warn' : utnc, 'crit': utc }
|
||||
else:
|
||||
data.append( ("%s=%g;%g;%g " % (perf_el, cr, utnc, utc),5) )
|
||||
xdata[perf_el] = { 'Value': cr, 'warn' : utnc, 'crit': utc }
|
||||
|
||||
elif classe == "CIM_Processor" :
|
||||
verboseoutput(" Family = %d" % instance['Family'])
|
||||
verboseoutput(" CurrentClockSpeed = %dMHz" % instance['CurrentClockSpeed'])
|
||||
|
||||
|
||||
# HP Check
|
||||
if vendor == "hp" :
|
||||
if instance['HealthState'] is not None :
|
||||
@@ -739,11 +962,11 @@ for classe in ClassesToCheck :
|
||||
30 : ExitCritical, # Non-recoverable Error
|
||||
}[elementStatus]
|
||||
if (interpretStatus == ExitCritical) :
|
||||
verboseoutput("GLobal exit set to CRITICAL")
|
||||
verboseoutput("Global exit set to CRITICAL")
|
||||
GlobalStatus = ExitCritical
|
||||
ExitMsg += " CRITICAL : %s " % elementNameValue
|
||||
if (interpretStatus == ExitWarning and GlobalStatus != ExitCritical) :
|
||||
verboseoutput("GLobal exit set to WARNING")
|
||||
verboseoutput("Global exit set to WARNING")
|
||||
GlobalStatus = ExitWarning
|
||||
ExitMsg += " WARNING : %s " % elementNameValue
|
||||
# Added the following for when GlobalStatus is ExitCritical and a warning is detected
|
||||
@@ -760,9 +983,7 @@ for classe in ClassesToCheck :
|
||||
elif (vendor == "dell" or vendor == "intel" or vendor == "ibm" or vendor=="unknown") :
|
||||
# Added 20121027 As long as Dell doesnt correct these CIM elements return code we have to ignore it
|
||||
ignore_list.append("System Board 1 Riser Config Err 0: Connected")
|
||||
ignore_list.append("System Board 1 LCD Cable Pres 0: Connected")
|
||||
ignore_list.append("System Board 1 VGA Cable Pres 0: Connected")
|
||||
ignore_list.append("Add-in Card 4 PEM Presence 0: Connected")
|
||||
ignore_list.append("Add-in Card 4 PEM Presence 0: Connected")
|
||||
if instance['OperationalStatus'] is not None :
|
||||
elementStatus = instance['OperationalStatus'][0]
|
||||
verboseoutput(" Element Op Status = %d" % elementStatus)
|
||||
@@ -794,7 +1015,7 @@ for classe in ClassesToCheck :
|
||||
GlobalStatus = ExitCritical
|
||||
ExitMsg += " CRITICAL : %s " % elementNameValue
|
||||
if (interpretStatus == ExitWarning and GlobalStatus != ExitCritical) :
|
||||
verboseoutput("GLobal exit set to WARNING")
|
||||
verboseoutput("Global exit set to WARNING")
|
||||
GlobalStatus = ExitWarning
|
||||
ExitMsg += " WARNING : %s " % elementNameValue
|
||||
# Added same logic as in 20100702 here, otherwise Dell servers would return UNKNOWN instead of OK
|
||||
@@ -813,6 +1034,11 @@ if (urlise_country != '') :
|
||||
SerialNumber = urlised_serialnumber(vendor,urlise_country,SerialNumber)
|
||||
server_info = urlised_server_info(vendor,urlise_country,server_info)
|
||||
|
||||
# If this is a blade server, also output chassis serial number as additional info
|
||||
if (isblade == "yes") :
|
||||
SerialNumber += " Chassis S/N: %s " % (SerialChassis)
|
||||
xdata['ChassisSerialNumber'] = SerialChassis
|
||||
|
||||
# Output performance data
|
||||
perf = '|'
|
||||
if perfdata:
|
||||
@@ -833,13 +1059,28 @@ if perfdata:
|
||||
if perf == '|':
|
||||
perf = ''
|
||||
|
||||
# Cleanup temporary openssl config
|
||||
if sslproto:
|
||||
os.remove(sslconfpath)
|
||||
|
||||
xdata['GlobalStatus'] = GlobalStatus
|
||||
|
||||
if GlobalStatus == ExitOK :
|
||||
print "OK - Server: %s %s %s%s" % (server_info, SerialNumber, bios_info, perf)
|
||||
if format == 'string':
|
||||
print("OK - Server: %s %s %s%s" % (server_info, 's/n: ' + SerialNumber, bios_info, perf))
|
||||
else:
|
||||
xdataprint()
|
||||
|
||||
elif GlobalStatus == ExitUnknown :
|
||||
print "UNKNOWN: %s" % (ExitMsg) #ARR
|
||||
if format == 'string':
|
||||
print("UNKNOWN: %s" % (ExitMsg)) #ARR
|
||||
else:
|
||||
xdataprint()
|
||||
|
||||
else:
|
||||
print "%s- Server: %s %s %s%s" % (ExitMsg, server_info, SerialNumber, bios_info, perf)
|
||||
if format == 'string':
|
||||
print("%s - Server: %s %s %s%s" % (ExitMsg, server_info, 's/n: ' + SerialNumber, bios_info, perf))
|
||||
else:
|
||||
xdataprint()
|
||||
|
||||
sys.exit (GlobalStatus)
|
||||
|
||||
Reference in New Issue
Block a user