Univention Bugzilla – Bug 51538
AWS VMs without SWAP - flagged as CRITIAL failure in Nagios
Last modified: 2020-11-26 13:01:20 CET
Our AWS instances have no SWAP configured: # cat /proc/swaps Filename Type Size Used Priority # grep -A2 check_univention_swap /usr/share/nagios-plugins/templates-univention/univention.cfg # 'check_univention_swap' command definition define command{ command_name check_univention_swap command_line /usr/lib/nagios/plugins/check_swap -w '$ARG1$' -c '$ARG2$' } # /usr/lib/nagios/plugins/check_swap -w 40% -c 20% SWAP CRITICAL - 0% free (0 MB out of 0 MB) - Swap is either disabled, not present, or of zero size. |swap=0MB;0;0;0;0 The check should be disabled on systems without swap. TT: 2020-06-18/19
/usr/lib/nagios/plugins/check_swap --help … -n, --no-swap=<ok|warning|critical|unknown> Resulting state when there is no swap regardless of thresholds. Default: CRITICAL
*** Bug 32947 has been marked as a duplicate of this bug. ***
TT 2020-11-19/20