Skip to content

Commit ff9b9a1

Browse files
committed
fix(about-me): remove dead code in elif dmi: branch (fix #1006)
1 parent 5db004f commit ff9b9a1

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Grafana:
8181
Monitoring Plugins:
8282

8383
* about-me: error in perfdata if using `--dmidecode` and there is no HW information
84-
* about-me: fix various errors with `sys_dimensions` on some machines
84+
* about-me: fix various errors with `sys_dimensions` on some machines ([#1006](https://github.com/Linuxfabrik/monitoring-plugins/issues/1006))
8585
* by-ssh: add missing `--verbose` parameter
8686
* file-age: handle `FileNotFoundError` race condition when files disappear on busy file systems
8787
* fs-ro: ignore `/run/credentials` (https://systemd.io/CREDENTIALS/)

check-plugins/about-me/about-me

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ except ImportError:
4040

4141

4242
__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
43-
__version__ = '2025100603 / v2.2.1'
43+
__version__ = '2026032401'
4444

4545
DESCRIPTION = 'Provides a quick overview of host dimensions and software.'
4646

@@ -849,14 +849,6 @@ def main():
849849
msg += 'Firmware: {}, '.format(lib.dmidecode.firmware(dmi))
850850
msg += 'SerNo: {}, '.format(lib.dmidecode.serno(dmi))
851851
msg += 'Proc: {}, '.format(lib.dmidecode.cpu_type(dmi))
852-
if sys_dimensions:
853-
msg += 'CPUs: {}/{}/{} (phys/lcpu/onln), '.format(
854-
sys_dimensions['cpu_physical'],
855-
sys_dimensions['cpu_logical'],
856-
sys_dimensions['cpu_usable'],
857-
)
858-
if sys_dimensions['cpu_freq']:
859-
msg += 'Current Speed: {} MHz, '.format(int(sys_dimensions['cpu_freq'][0]))
860852
msg += '{} RAM, '.format(lib.human.bytes2human(lib.dmidecode.ram(dmi)))
861853
elif sys_dimensions:
862854
msg += 'CPUs: {}/{}/{} (phys/lcpu/onln), '.format(

0 commit comments

Comments
 (0)