After running the Windows Server wizard you notice that the Windows memory usage checks have values that do not match up with the physical memory in the server.
The checks created by the wizard use the check_nt plugin with the MEMUSE command.
Windows refers to the sum of memory and swap files, that is, the entire available virtual memory. Windows regularly swaps program and data code from the main memory, even when it still has spare reserves. The values returned aren't necessarily a bug in Nagios XI or NSClient++, but rather a view of the virtual memory of the machine.
In this respect the load of the entire virtual memory in Windows is the more important parameter to observe over simply physical or swap.
However if you want to monitor the physical memory in the server you will need to change the command to use the check_nrpe plugin along with enabling the NRPE module in NSClient++.
First, please refer to these guides in enabling the NRPE Listener module in NSClient++:
Nagios KB - Configuring NSClient++
Next, you will create / edit the service in Core Configuration Manager (CCM) to use the check_nrpe command along with the CheckMEM arguments. Please refer to the following screenshot:
In the screenshot above, the $ARG2$ field is populated with:
-a ShowAll type=physical MaxWarn=80% MaxCrit=90%
Once created, save and then Apply Configuration.
For any support related questions please visit the Nagios Support Forums at:
Article ID: 169
Created On: Tue, Jan 26, 2016 at 11:52 PM
Last Updated On: Tue, Dec 11, 2018 at 5:19 PM
Authored by: tlea
Online URL: https://support.nagios.com/kb/article/nagios-xi-windows-memory-usage-physical-169.html