Skip to content

Nagios Plugin check_cswch

Davide Madrisan edited this page Dec 18, 2016 · 2 revisions

check_cswch - monitors the total number of context switches across all CPUs

[/etc/nrpe.d/check_cswch]
command[check_cswch]=/usr/lib/nagios/plugins/check_cswch 1 2
Usage note
This plugin monitors the total number of context switches across all CPUs.
Copyright (C) 2014,2015 Davide Madrisan <[email protected]>

Usage:
  check_cswch [-v] [-w COUNTER] -c [COUNTER] [delay [count]]

Options:
  -w, --warning COUNTER   warning threshold
  -c, --critical COUNTER   critical threshold
  -v, --verbose   show details for command-line debugging (Nagios may truncate output)
  -h, --help      display this help and exit
  -V, --version   output version information and exit
  delay is the delay between updates in seconds (default: 1sec)
  count is the number of updates (default: 2)

Examples:
  check_cswch 1 2
Example of output
cswch OK - number of context switches/s 1317 | cswch/s=1317
Performance data

cswch/s

Documentation

LINFO (The Linux Information Project) - Context Switch