Patches for check_ram plugin (based on check_swap) [sf#1847879] [#855]