Skip to content

Nagios Plugin check_paging

Davide Madrisan edited this page Aug 9, 2017 · 2 revisions

check_paging - check the memory and swap paging

[/etc/nrpe.d/check_paging]
command[check_paging]=/usr/lib/nagios/plugins/check_paging --swapping -w 10 -c 25
Usage note
This plugin checks the memory and swap paging.
Copyright (C) 2014,2015,2017 Davide Madrisan <davide.madrisan@gmail.com>
Usage:
  check_paging [-s] [-S] [-w PAGES] [-c PAGES]
Options:
  -s, --swapping  display also the swap reads and writes
  -S, --swapping-only  only display the swap reads and writes
  -h, --help      display this help and exit
  -V, --version   output version information and exit
  PAGES is the sum of `pswpin' and `pswpout' per second,
        if the command-line option `--swapping-only' has been specified,
        or the number of `majfault/s' otherwise.
Examples:
  check_paging --swapping -w 10 -c 25
  check_paging --swapping-only -w 40 -c 60
Example of output
# check_paging --swapping
paging OK: 0 majfault/s | vmem_pgpgin/s=15116 vmem_pgpgout/s=0 vmem_pgfault/s=274 vmem_pgmajfault/s=0 vmem_pgfree/s=6725 vmem_pgsteal/s=0 vmem_pgscand/s=0 vmem_pgscank/s=0, vmem_pswpin/s=0, vmem_pswpout/s=0

# check_paging --swapping-only
paging OK: 0 pswp/s | vmem_pswpin/s=0 vmem_pswpout/s=0
Performance data

vmem_pgpgin/s vmem_pgpgout/s vmem_pgfault/s vmem_pgmajfault/s vmem_pgfree/s vmem_pgsteal/s vmem_pgscand/s vmem_pgscank/s vmem_pswpin/s vmem_pswpout/s

vmem_pswpin/s vmem_pswpout/s only, if the command-line option --swapping-only is specified.