GithubHelp home page GithubHelp logo

joubbi / check_ohm_temperatures Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5 KB

A PowerShell script used by NSClient++ to check the temperatures on a host running Windows.

License: Other

PowerShell 100.00%
icinga icinga-plugin nagios nagios-plugins op5 nsclient

check_ohm_temperatures's Introduction

check_ohm_temperatures

This is a PowerShell script used by NSClient++ to check the temperatures on a host running Microsoft Windows. NSClient++ can then be called by Nagios (Op5 Monitor, Icinga or similar) to run this script.

[Open Hardware Monitor] (http://openhardwaremonitor.org) is used as a driver for the temperature sensors. Open Hardware monitor creates WMI objects of all the found sensors. This script retrieves the temperatures from those WMI objects. This means that you have to download and run OpenHardwareMonitor.exe before running this check.

There is no standardized way to retrieve the temperatures in Windows even if the hardware has a temperature sensor. Open Hardware monitor supports many sensors and is open source.

All the found temperatures will be output as performance data so that they can be graphed.

Tested with Windows 7 and Windows 2003.

Define the command in NSClient++:

cmd /c echo scripts\custom\check_temperatures.ps1 -warning $ARG1$ -critical $ARG2$; exit($lastexitcode) | powershell.exe -command -

You can omit or hard code the warning and critical arguments in case you do not permit sending arguments to nsclient.

Example

.\check_ohm_temperatures.ps1 -warning 80 -critical 90

Version history

  • 1.1 2016-03-24 Minor cleanup of variables and documentation.
  • 1.0 2016-03-11 Initial release.

Licensed under the Apache License Version 2.0

Written by [email protected]

http://www.joubbi.se/monitoring.html

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.