Skip to content

Nagios script Checking Elasticsearch Watcher History ⏰

Notifications You must be signed in to change notification settings

Rohlik/nagios_es_watcher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

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"

About

Nagios script Checking Elasticsearch Watcher History ⏰

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%