Coder Social home page Coder Social logo

nagios_es_watcher's Introduction

Nagios Watcher script for Elasticsearch Indices

This is a simple script to check the status of an elasticsearch watcher history and other indices.

Options

  -H/--hostname
     Defines the hostname. Default is: localhost
  -P/--port
     Defines the port. Default is: 9200
  -A/--auth
     Defines the HTTP authentication. Default is: none
  -L/--last
     Specifies the timerange to search Default is: 5m
  -p/--path
     Specifies the query path. Default is: ".watch_history*/_count"
  -T/--ts
     Specifies the timefield for filters. Default is: "@timestamp"
  -Q/--query
     Specifies the query string to use. Default is: "*" 

Usage Examples

Count watcher events in last 5 minutes using timefield result.execution_time and query_string

./nagios_es_watcher -H 127.0.0.1 -P 9200 --auth "username:password" \
-Q "result.condition.met:true" -L "5m" -T "result.execution_time"

Count specific matches in last hour using custom path and query_string and

./nagios_es_watcher -H 127.0.0.1 -P 9200 --auth "username:password" \
-Q "reply:503 AND cseq:INVITE" -L "1h" --path "myindex-*/_count"

nagios_es_watcher's People

Contributors

lmangani avatar rohlik avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

rohlik

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.