Giter Club home page Giter Club logo

check_poe_consumption_snmp's Introduction

check_poe_consumption_snmp

ShellCheck

Intro

This is a Nagios/Icinga compatible check plugin for PoE capable Switches that implement POWER-ETHERNET-MIB. It queries a switch with SNMP and produces warnings if these values exceed a given threshold (either set in the switch itself or via command arguments).

Installing

copy check_poe_consumption_snmp.sh to your Nagios/Icinga plugin directory (usually /usr/lib64/nagios/plugins/ )
Edit your Nagios/Icinga config accordingly.
For Icinga2 you can copy check_poe_consumption_snmp.conf to your CheckCommand-Definitions (usually /usr/share/icinga2/include/plugins-contrib.d/ )
If you are running icinweb2-module-graphite you can place the provided check_poe_consumption_snmp.ini into the template directory (usually /usr/share/icingaweb2/modules/graphite/templates/ or /etc/icingaweb2/modules/graphite/templates/ )

Usage

Usage: check_poe_consumption_snmp.sh -H <FQDN or IP> [-C <SNMP-Community>] [-v <snmp_version>] [-w <warning>] [-c <critical>]
 -H <FQDN or IP>        FQDN or IP-Address for SNMP Query (REQUIRED)
 -C <SNMP-Community>    SNMP Community string (OPTIONAL, default: "public")
 -v <snmp_version>      SNMP-Version (OPTIONAL, default: "2c", also currently only 2c is supported)
 -w <warning>           Warning threshold (in %) for watt consumption (OPTIONAL, default: threshold found in SNMP, 50% if no threshold is found)
 -c <critical>          Critical threshold (in %) for watt consumption (OPTIONAL, default: threshold found in SNMP, 80% if no threshold is found)
 -h                     Displays this help message

Credits

onkelbeh for initial idea

check_poe_consumption_snmp's People

Contributors

antonfischl1980 avatar onkelbeh avatar

Stargazers

 avatar

Watchers

 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.