Skip to content

Commit 61cd074

Browse files
committed
Merge pull request #18 from feldmisco/master
Include RELOCATING state as a good state for replica shards
2 parents bd31d46 + 3e949d5 commit 61cd074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check_elasticsearch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ class ElasticSearchCheck(NagiosCheck):
435435
"shard %d" % (idx_name, shard_no))
436436

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

0 commit comments

Comments
 (0)