Merge lp:~verterok/charms/trusty/elasticsearch/elasticsearch2_more-details-in-health-check into lp:~onlineservices-charmers/charms/trusty/elasticsearch/elasticsearch2
Proposed by
Guillermo Gonzalez
Status: | Merged |
---|---|
Approved by: | Michael Nelson |
Approved revision: | 50 |
Merged at revision: | 45 |
Proposed branch: | lp:~verterok/charms/trusty/elasticsearch/elasticsearch2_more-details-in-health-check |
Merge into: | lp:~onlineservices-charmers/charms/trusty/elasticsearch/elasticsearch2 |
Diff against target: |
84 lines (+58/-3) 2 files modified
files/nrpe/check_health (+41/-0) playbook.yaml (+17/-3) |
To merge this branch: | bzr merge lp:~verterok/charms/trusty/elasticsearch/elasticsearch2_more-details-in-health-check |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Nelson (community) | Approve | ||
Review via email: mp+285927@code.launchpad.net |
Commit message
Replace check_http based health nrpe check with a custom script that understands the status values.
Description of the change
Replace check_http based health check with a custom script that understand the status values.
To post a comment you must log in.
21:41 < noodles> verterok: Is nagios_health_color currently a config option (defaulting to green)? From memory it was, because otherwise if you're developing and using only one unit, the health will always be yellow?
21:42 < noodles> If you think that's unnecessary, we can probably remove the option (as it should only be used in dev, and worst-case, anyone upgrading will see it's removed with a config error)
21:44 < caio1982> atomatt: nice! i will take a look!
21:44 < verterok> noodles: didn't know it is a config, assumed it was the way ES reported status
21:44 < verterok> let me check
21:45 < verterok> noodles: oh, I understand now
21:46 < verterok> noodles: I can tweak the script to accept a custom "OK" status if you think it's needed.
21:47 < noodles> verterok: If that's simple enough, it'll mean maintaining the ability to deploy just one unit in a devel spec without error, but it's not that important . Fine either way. The script is a great improvement :)
21:48 < verterok> noodles: will play with the script tomorrow and ping you back when it's done. thanks
21:48 < noodles> verterok: Ack - or if it's an issue, fine to just remove that config option. No need to check back - just land with either.