mirror of
https://github.com/Napsty/check_esxi_hardware.git
synced 2026-02-06 15:15:20 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7aaaae4337 | ||
|
|
8a99d8aace |
4
.github/ISSUE_TEMPLATE/bug_report.md
vendored
4
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -15,8 +15,8 @@ I confirm, I have cleared the server's local IPMI cache (`localcli hardware ipmi
|
|||||||
**Describe the bug**
|
**Describe the bug**
|
||||||
A clear and concise description of what the bug is.
|
A clear and concise description of what the bug is.
|
||||||
|
|
||||||
**Show the full plugin output, including the command with -V parameter**
|
**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.
|
Run the plugin with `-v` parameter and show the full output (including command) here. Obviously obfuscate credentials.
|
||||||
|
|
||||||
**Expected behavior**
|
**Expected behavior**
|
||||||
A clear and concise description of what you expected to happen.
|
A clear and concise description of what you expected to happen.
|
||||||
|
|||||||
@@ -289,6 +289,10 @@
|
|||||||
#@ Author : Marco Markgraf
|
#@ Author : Marco Markgraf
|
||||||
#@ Reason : Added JSON-output (Zabbix needs it)
|
#@ Reason : Added JSON-output (Zabbix needs it)
|
||||||
#@---------------------------------------------------
|
#@---------------------------------------------------
|
||||||
|
#@ Date : 20221230
|
||||||
|
#@ Author : Claudio Kuenzler
|
||||||
|
#@ Reason : Fix bug when missing S/N (issue #68)
|
||||||
|
#@---------------------------------------------------
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import sys
|
import sys
|
||||||
@@ -299,7 +303,7 @@ import pkg_resources
|
|||||||
import json
|
import json
|
||||||
from optparse import OptionParser,OptionGroup
|
from optparse import OptionParser,OptionGroup
|
||||||
|
|
||||||
version = '20220708'
|
version = '20221230'
|
||||||
|
|
||||||
NS = 'root/cimv2'
|
NS = 'root/cimv2'
|
||||||
hosturl = ''
|
hosturl = ''
|
||||||
@@ -863,7 +867,6 @@ for classe in ClassesToCheck :
|
|||||||
model = instance[u'Model']
|
model = instance[u'Model']
|
||||||
if model:
|
if model:
|
||||||
verboseoutput(" Model = "+model)
|
verboseoutput(" Model = "+model)
|
||||||
#server_info += model + ' s/n:'
|
|
||||||
server_info += model
|
server_info += model
|
||||||
|
|
||||||
elif elementName == 'Server Blade' :
|
elif elementName == 'Server Blade' :
|
||||||
@@ -1067,7 +1070,7 @@ xdata['GlobalStatus'] = GlobalStatus
|
|||||||
|
|
||||||
if GlobalStatus == ExitOK :
|
if GlobalStatus == ExitOK :
|
||||||
if format == 'string':
|
if format == 'string':
|
||||||
print("OK - Server: %s %s %s%s" % (server_info, 's/n: ' + SerialNumber, bios_info, perf))
|
print("OK - Server: %s s/n: %s %s%s" % (server_info, SerialNumber, bios_info, perf))
|
||||||
else:
|
else:
|
||||||
xdataprint()
|
xdataprint()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user