# we have to convert KB to MB by dividing $this (i.e. the result of the lookup) with 1024
calc: $this / 1024 * 100 / ( $system.ram.used + $system.ram.cached + $system.ram.free )
every: 1m
- warn: $this > 1
- crit: $this > 10
+ warn: $this > 10
+ crit: $this > 20
units: % of RAM
- info: the sum of all memory swapped out during the last 30 minutes, as a percentage of the available RAM
+ info: the amount of memory swapped in the last 30 minutes, as a percentage of the system RAM
alarm: pcent_of_ram_in_swap
on: system.swap
warn: $this > 10
crit: $this > 50
units: % of RAM
- info: the currently used swap space, as a percentage of the available RAM
+ info: the swap memory used, as a percentage of the system RAM
}
html += '<tr><td width="10%" style="text-align:right">check every</td><td>' + frequency_text(alarm.update_every) + '</td></tr>'
+ + '<tr><td width="10%" style="text-align:right">execute</td><td><span style="font-family: monospace;">' + alarm.exec + '</span></td></tr>'
+ '<tr><td width="10%" style="text-align:right">source</td><td><span style="font-family: monospace;">' + alarm.source + '</span></td></tr>'
+ '</table></td></tr>';