Giter VIP home page Giter VIP logo

check_cpu.py's Introduction

Name

check_cpu.py - Usage and IO Wait

Description

Monitor total CPU usage and CPU IO Wait for any single CPU core, and overall (average of all CPU cores)


Detailed Description

This plugin will generate an alert if
* The overall CPU usage exceeds a given threshold
* The overall CPU IO Wait exceeds a given threshold
* The CPU usage of any single CPU core exceeds a threshold
* The CPU IO Wait of any single CPU core exceeds a threshold
* The CPU steal of any single CPU core exceeds a threshold

This plugin also generates performance data suitable for PNP4Nagios, and a suitable PNP4Nagios template is supplied.
The template provides a neater presentation than the default.

Note that this plugin measures CPU usage by reading /proc/stat twice over a time interval (default is 1 second).
As such:
* It is specific to Linux, and probably won't work on other systems
* It does NOT rely on the python library psutil, and hence is backwards compatible
  with older Linux systems which do have the psutil library.

New features for version 1.5
* Can alert on overall IO Wait (missing from previous versions)
* Can output the raw values from /proc/stat - see option '-a'
* Also outputs ctxt and processes (context switches and new processes) as performance data (no alerting, just for graphing)

This plugin is a fork of check_cpu.py by Kirk Hammond, and was written to cater for older Linux distributions which do
not have a the library psutil available. It also adds the feature of monitoring IO Wait explicitly.

check_cpu.py's People

Stargazers

Jose Luis avatar Zakhar Kleyman avatar

Watchers

Markus Waldmüller avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.