Nagios Exchange Nagios Exchange
  • Home
  • Directory
  • Library
  • Support
  • About

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up

Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More

  • Home
  • Directory
  • Library
  • Support
  • About
Plugins4401Themes and Skins13Add-ons756Graphics and Logos36View All Categories
LinuxSecuritySNMPFile SystemCloud
New Listings Recently Updated Listings Most Favored Listings Most Popular Listings Most Rated Listings Most Reviewed Listings
Random Project
Other Tutorials And HOWTOs Automatic Downtimes in Nagios Without Using Time Periods
0.0 (0)
83.7K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Yoann LAMY (7)deskwork_itunes142 (4)Julien DESMAREST (4)Davide Lemma (3)Chad Columbus (3)
See More
Newest Contributors
signalgrid (1)Sanna Glue (2)fisherrs (1)smolinux (1)juanfertor (1)
See More

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home > Suny
S

Suny

@ynux

User Stats

Member Since: April 7, 2016

Favorites0

Views

Projects0

No Projects Found
check_elasticsearch_health (edouard.lamoine)

with username:password

We also use Shield, and are using this now: --- #!/bin/bash ################################################################# # Creation: Edouard Lamoine # Last Modification: 27 mai 2015 # This script is verifying the elasticsearch status # # USAGE: ./check_elasticsearch_health HOST_ADDRESS # # ex: ./check_elasticsearch_health localhost # with Shield: # ./check_elasticsearch localhost monitoring_user secret password # # ################################################################# #Memo for Nagios outputs #STATE_OK=0 #STATE_WARNING=1 #STATE_CRITICAL=2 #STATE_UNKNOWN=3 type curl >/dev/null 2>&1 || { echo >&2 "This plugin require curl but it's not installed."; exit 3; } function usage { echo "Usage: $(basename $0) HOST_ADDRESS USERNAME PASSWORD" } HOST=$1 USERNAME=$2 PASSWORD=$3 if [ -z $USERNAME -a -z $PASSWORD ] then CREDENTIALS="" else CREDENTIALS=" -u $USERNAME:$PASSWORD" fi STATUS=`/usr/bin/curl $CREDENTIALS -s $HOST:9200/_cluster/health?pretty|grep status|awk '{print $3}'|cut -d" -f2` if [[ $STATUS && "$STATUS" != "green" ]]; then echo "CRITICAL - Status is $STATUS" exit 2 fi if [[ "$STATUS" == "green" ]]; then echo "OK - Status is $STATUS" exit 0 fi echo "UNKNOWN - No data were returned by elastisearch on host $HOST" exit 3

Reviewed 10 years ago

No Favorites Found

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile