Skip to content

Commit

Permalink
Merge pull request #18 from feldmisco/master
Browse files Browse the repository at this point in the history
Include RELOCATING state as a good state for replica shards
  • Loading branch information
olorin committed Jun 16, 2014
2 parents bd31d46 + 3e949d5 commit 61cd074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_elasticsearch
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ class ElasticSearchCheck(NagiosCheck):
"shard %d" % (idx_name, shard_no))

for replica in primary_replica_map[primary]:
if replica.state != SHARD_STATE['STARTED']:
if replica.state not in ( SHARD_STATE['STARTED'], SHARD_STATE['RELOCATING'] ):
downgraded |= self.downgrade_health(YELLOW)
detail.append("Index '%s' replica down on "
"shard %d" % (idx_name, shard_no))
Expand Down

0 comments on commit 61cd074

Please sign in to comment.