On a PC with >4GB of RAM, check_memory utility returns
an incorrect amount of RAM:
MEMORY OK - 100% free | memory=4096MB;;;0;4096
This patch uses GlobalMemoryStatusEx instead of GlobalMemoryStatus
[https://msdn.microsoft.com/en-us/library/windows/desktop/aa366586%28v=vs.85%29.aspx]
Following patch output of check_memory is as follows:
MEMORY OK - 32.4873% free | memory=5312MB;;;0;16351
fixes#8559
Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
Adds check_memory which works like check_swap which has been updated to work like check_memory
Both sport a -u(nit) option with MB as default, like their linux versions.
A possible bug with all plugins having the -u(nit) option when using -u kB has been fixed. Don't use icinga to monitor you commodore though.
refs #8287#8060
check_swap should now be faster and more accurate, it also checks against free space instead of taken swap.
The output and CMakeLists have been updated accordingly.
fixes#8287 refs #8060
In their perfdata the plugins will now use absolute values for percentage thresholds.
Also the check_disks output is now more similar to the one of nagios/check_disk.
The README has also been improved.
refs #7886#8060