Unfortunately B/s is not a valid unit in the Nagios plugin specification. As a bit of a sad workaround, we set the unit to B, which is technically incorrect, but we can't really do much about that without amending the spec...
fixes#10544
Signed-off-by: Jean Flach <jean-marcel.flach@netways.de>
Quoting needs to be with single quotes, not double quotes. Also single quotes need to be escaped.
refs #10544
Signed-off-by: Jean Flach <jean-marcel.flach@netways.de>
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