Linuxfabrik / monitoring-plugins

200+ check plugins for Icinga and other Nagios-compatible monitoring applications. Each plugin is a standalone command line tool (written in Python) that provides a specific type of check.
https://linuxfabrik.ch
The Unlicense
207 stars 48 forks source link

about-me: expanded RAM isn't updating #757

Open slalomsk8er opened 2 months ago

slalomsk8er commented 2 months ago

This issue respects the following points:

Which variant of the Monitoring Plugins do you use?

Bug description

On a VM the RAM got doubled without a reboot but a manual scheduled about-me will not report the new value.

Steps to reproduce - Plugin call

/usr/lib64/nagios/plugins/about-me

Steps to reproduce - Data

  1. increase RAM of VM
  2. schedule about-me
  3. observe RAM value didn't change

Environment

AlmaLinux 8.9 (Midnight Oncilla) Kernel 4.18.0-513.18.2.el8_9.x86_64 virtualized on vmware

Plugin Version

about-me: v2023051201 by Linuxfabrik GmbH, Zurich/Switzerland

Python version

No response

List of Python modules

No response

Additional Information

psutil is correct but from the code I suspect dmidecode is used and this will only show the new value after a reboot.

$ python3
Python 3.6.8 (default, Jan 16 2024, 08:27:02)
[GCC 8.5.0 20210514 (Red Hat 8.5.0-20)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.virtual_memory().total
67752341504