Giter Site home page Giter Site logo

nagios_tools's Introduction

Some handy scripts we've written for Nagios, at Etsy:


check_graphite_data:
    Alert on data, based on number from Graphite.
Usage:
    check_graphite_data <options>
Options:
    -c <num> --crit=<num>       Critical threshold
    -w <num> --warn=<num>       Warning threshold
    -u <url> --url=<url>        Graphite graph URL
    -r                          Reverse - Alert when the value is UNDER warn/crit instead of OVER
    -s <secs> --seconds=<secs>  Average over the last N seconds of data
    --d1 <url> --d2 <url>       Diff the latest values between two graphs
    -W --holt-winters           Perform a Holt-Winters check
    -U --critupper              Upper Holt-Winters band breach causes a crit,
                                    - breaching lower band causes a warn
    -L --critlower              Lower Holt-Winters band breach causes a crit,
                                    - breaching upper band causes a warn
    (If -W, but neither -U nor -L are given, we will always warn)
    --scale=<multiplier>        scale, eg 8 to treat bytes as bits
    --scale-invert=<divisor>    scale, eg 1073741824 to treat bytes as GiB
                                    - --scale{-invert} lets you give thresholds in sane units

nagios_tools's People

Contributors

avleen avatar bugi avatar edgeworthe avatar jedi4ever avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nagios_tools's Issues

HW Bandwith alert logic

When the default critical alerting warnings for holt-winters confidence bands will alert if either the upper or lower thresholds are exceeded regardless of what is passed as arguments.

Not always pulling data

Hello we are using this to create alerts from graphite. The url open returns 0 a lot. but when we curl it shows proper values. After a manual curl the script works.

Look here:

[14:46:43 root@private /home/zbintlif]# /usr/lib64/nagios/plugins/check_graphite_data  -w 10  -c 5 -u "http://graphite-web.private.com/render?from=-600s&until=now&target=carbon.agents.graphite1a-44a3a4be-a.updateOperations"
Current value: 0.0, warn threshold: 10.0, crit threshold: 5.0
[14:46:44 root@private /home/zbintlif]# curl -vvv "http://graphite-web.private.com//render?from=-2hours&until=now&width=400&height=250&target=carbon.agents.graphite1a-44a3a4be-a.updateOperations&rawData"
*   Trying 10.195.72.78...
* Connected to graphite-web.private.com (10.195.72.78) port 80 (#0)
> GET /render?from=-2hours&until=now&width=400&height=250&target=carbon.agents.graphite1a-44a3a4be-a.updateOperations&rawData HTTP/1.1
> User-Agent: curl/7.40.0
> Host: graphite-web.private.com/
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/1.6.2
< Date: Thu, 09 Apr 2015 14:47:30 GMT
< Content-Type: text/plain
< Transfer-Encoding: chunked
< Connection: keep-alive
< Vary: Accept-Encoding
<
carbon.agents.graphite1a-44a3a4be-a.updateOperations,1428583680,1428590880,60|28826.0,29417.0,27676.0,24933.0,27956.0,25706.0,27562.0,22971.0,15911.0,14541.0,19167.0,26592.0,25679.0,20385.0,25102.0,29349.0,28346.0,28786.0,28243.0,29107.0,28601.0,29241.0,28825.0,29039.0,29276.0,28642.0,28850.0,28234.0,29040.0,29081.0,28982.0,29095.0,28532.0,28086.0,29042.0,29011.0,28975.0,28810.0,27296.0,28538.0,26984.0,26923.0,27741.0,28691.0,29487.0,29105.0,28478.0,28366.0,28885.0,29249.0,29041.0,29598.0,28366.0,28517.0,29003.0,29204.0,29388.0,28676.0,28453.0,28976.0,29264.0,29559.0,27439.0,23557.0,28246.0,29303.0,29181.0,25977.0,26449.0,28543.0,29504.0,29319.0,23014.0,14954.0,18018.0,29393.0,29195.0,28577.0,28256.0,29804.0,28860.0,29396.0,28667.0,25213.0,28956.0,29048.0,29614.0,28757.0,27697.0,28626.0,29390.0,29173.0,28077.0,24647.0,29062.0,29204.0,27522.0,29430.0,28992.0,29078.0,29736.0,29476.0,28856.0,29214.0,28852.0,28939.0,28802.0,28010.0,27346.0,29767.0,29063.0,28696.0,27778.0,27137.0,29357.0,29246.0,29147.0,28543.0,29324.0,None
* Connection #0 to hostgraphite-web.private.com left intact

need help with python

hello. i am of 13 i cannot pay please help me for free! i want a plugin for znc which accept request and etc like elitebnc have please send me plugin on following email : [email protected]

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.