check_sar_perf

Icinga plugin to get performance data from sar

check_sar_perf

This plug-in was written to get performance data from sar. Can be integrated into Icinga with using the agent. v2.11 provides a CheckCommand definition inside the ITL.

You may need to tweak the profiles to be compatible with your version of sysstat. Please make modifications to the myOpts section.

Requirements

  • sysstat tool

Usage

# ./check_sar_perf.py  [ ...]

Example:

check_sar_perf.py cpu
sar OK| CPU=all user=59.90 nice=0.00 system=4.46 iowait=0.00 steal=0.00 idle=35.64

check_sar_perf.py disk sda
sar OK| DEV=sda tps=0.00 rd_sec/s=0.00 wr_sec/s=0.00 avgrq-sz=0.00 avgqu-sz=0.00 await=0.00 svctm=0.00 util=0.00

check_sar_perf.py foo
ERROR: option not defined

Profiles

  • pagestat
  • cpu
  • memory_util
  • memory_stat
  • io_transfer
  • queueln_load
  • swap_util
  • swap_stat
  • task
  • kernel
  • disk