Bug 51538 - AWS VMs without SWAP - flagged as CRITIAL failure in Nagios
AWS VMs without SWAP - flagged as CRITIAL failure in Nagios
Status: NEW
Product: UCS
Classification: Unclassified
Component: Monitoring (Prometheus or Nagios)
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
: 32947 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-06-19 17:18 CEST by Philipp Hahn
Modified: 2020-11-26 13:01 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2020-06-19 17:18:02 CEST
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
Comment 1 Philipp Hahn univentionstaff 2020-06-19 17:20:24 CEST
/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
Comment 2 Philipp Hahn univentionstaff 2020-07-05 07:47:09 CEST
*** Bug 32947 has been marked as a duplicate of this bug. ***
Comment 3 Philipp Hahn univentionstaff 2020-11-26 13:01:20 CET
TT 2020-11-19/20