rbramley / Opsview-elasticsearch

Opsview checks for elasticsearch
http://leanjavaengineering.wordpress.com/2012/08/30/monitoring-elasticsearch/
4 stars 9 forks source link

Status 'green' returns UNKNOWN status #2

Closed ghost closed 12 years ago

ghost commented 12 years ago

Hi,

if the status of a cluster is 'green' then a UNKNOWN status will be returned.

On line 145 and some other lines a "exists" or "defined" or something else is missed.

As example:

if ( $statusCodesMap{$obj->{status}} ) {

Should be:

if ( defined $statusCodesMap{$obj->{status}} ) {

Cheers, Jonny

rbramley commented 12 years ago

Thanks will have a look into it.

rbramley commented 12 years ago

Thanks Jonny - fixed in commit https://github.com/rbramley/Opsview-elasticsearch/commit/a60bd426cd1a600748e478c54739b8e47f48d046