Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: honza <[email protected]>
  • Loading branch information
honza committed Aug 22, 2019
1 parent 12d06bc commit 11c11f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ check_elasticsearch_node_shards.pl 0.3.0
check_elasticsearch_node_stats.pl 0.2.0
check_elasticsearch_nodes.pl 0.4.0
check_rundeck.py 1.0
check_es_docs 1.0
check_es-docs.sh 1.0
# vim: set ts=2 sw=2 et : #
8 changes: 4 additions & 4 deletions check_es_docs.sh → check_es-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ result=$(curl -k -s -u ${user}:${password} -X GET "${es_host}/${indexes}/_count

if [[ -z $result ]]; then
status=3
message='Unknown: unable to get the number of documents.'
message="Unknown: unable to get the number of documents from within the last ${seconds} seconds."
elif [[ $result -le $docs_critical ]]; then
status=2
message="Critical: ${result} docs were found."
message="Critical: ${result} documents were found from within the last ${seconds} seconds."
elif [[ $result -le $docs_warning ]]; then
status=1
message="Warning: ${result} docs were found."
message="Warning: ${result} documents were found from within the last ${seconds} seconds."
else
message="OK: ${result} docs were found."
message="OK: ${result} documents were found from within the last ${seconds} seconds."
status=0
fi

Expand Down

0 comments on commit 11c11f3

Please sign in to comment.