No commit activity in last 3 years
No release in over 3 years
This plugin provides native environmental instrumentation for metrics collection, including: temperature via `sensors`
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 0.10
~> 10.5
~> 3.2
~> 3.4
~> 0.40.0
~> 0.8

Runtime

 Project Readme

sensu-plugins-environmental-checks

Build Status Gem Version Code Climate Test Coverage Dependency Status

Functionality

Plugin to collect environmental metrics (e.g. temperatures, power draw).

metrics-temperature.rb

parameters

  • --scheme: The scheme to concatenate the metrics with (default: HOSTNAME.sensors)

metrics

Multiple chips are supported and labelled by the chip name (e.g. sensors.coretemp-isa-0000.core0, sensors.i350bb-pci-8100.loc1). Depending on the chip you will get different metrics.

  • sensors.CHIPNAME.coreCORE_NUMBER: Temperature of the core (Degree Celsius)
  • sensors.CHIPNAME.locLOCATION_NUMBER: Temperature of the location (Degree Celsius)
  • sensors.CHIPNAME.physicalidCPU_NUMBER: Temperature of the CPU as a whole (Degree Celsius)
  • sensors.CHIPNAME.powerNUMBER: Power draw of the machine (Watt)

If you do not get all of the listed values, your mainboard probably does not support the features. To check, you can query it yourself by running sensors or sensors -A respectively.

check-temperature.rb

checks

Maps high and crit values as reported by lm-sensors to warning and critical status respectivley.

Usage

To collect metrics with the scheme of your choice:

metrics-temperature.rb --scheme YOUR_SCHEME_HERE

Installation

sensu-install --plugin sensu-plugins-environmental-checks

In order to use this plugin you will the need sensors installed. Prepackaged versions exist, e.g. the Ubuntu package is named lm-sensors.

For more help see Installation and Setup.