Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong RAM size reported #768

Open
jackburton79 opened this issue May 2, 2022 · 2 comments
Open

Wrong RAM size reported #768

jackburton79 opened this issue May 2, 2022 · 2 comments

Comments

@jackburton79
Copy link

jackburton79 commented May 2, 2022

For some servers (the ones with big amount of RAM) NSClient++ reports a smaller amount of physical memory than the one installed.
This server, for example, has 36GB
image

But nsclient (when queried with check_nscp_api) reports only 30GB.

[stefano@monitoring ~]$ '/usr/lib64/nagios/plugins/check_nscp_api' '--password' '' '-H' '' '-P' '****' '-q' 'check_memory'
check_memory WARNING: committed = 30.843GB, physical = 30.493GB | 'committed'=30.843372GB;31.999649;35.999605;0;39.999561 'committed %'=77%;80;90;0;100 'physical'=30.4934
08GB;28.799649;32.399605;0;35.999561 'physical %'=85%;80;90;0;100

If I remember correctly, when I was using check_nt it reported it correctly.

Details

  • NSClient++ version: 0.5.2041
  • OS and Version: Windows Server 2012R2 (but on 2016 is the same)
  • Checking from: Icinga2
  • Checking with: check_nscp_api
@jackburton79
Copy link
Author

Note that also running check_memory from NSClient++ test mode returns the wrong amount of memory:
check_memory
L cli WARNING: WARNING: committed = 30.722GB, physical = 30.39GB
L cli Performance data: 'committed'=30.72219GB;31.99964;35.9996;0;39.999
56 'committed %'=77%;80;90;0;100 'physical'=30.38951GB;28.79964;32.3996;0;35.999
56 'physical %'=84%;80;90;0;100

Here's also a screenshot of the VM definition
image

@jackburton79
Copy link
Author

checkmem, instead, seems to return the full memory capacity, pagefile included:

checkmem
D w32system Created command: "detail-syntax=%(type): Total: %(size) - Used: %(
sed) (%(used_pct)%) - Free: %(free) (%(free_pct)%)"
L cli WARNING: WARNING: committed: Total: 40GB - Used: 30.739GB (76%) -
ree: 9.26GB (23%), physical: Total: 36GB - Used: 30.417GB (84%) - Free: 5.583GB
(15%)
L cli Performance data: 'committed'=30.73938GB;31.99964;35.9996;0;39.99
56 'committed %'=77%;80;90;0;100 'physical'=30.4166GB;28.79964;32.3996;0;35.999
6 'physical %'=84%;80;90;0;100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant