nrpe check for graylog-api fails with 307 redirect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Graylog Charm |
New
|
Medium
|
Unassigned |
Bug Description
Graylog is running correctly but the API check charm reports false positive.
graylog version: 3.0.1
The nrpe check for graylog API checks url at 127.0.0.1:9000/api:
root@graylog-3:~# /usr/lib/
HTTP CRITICAL: HTTP/1.1 307 Temporary Redirect - string 'cluster_id' not found on 'http://
This fails with temporary redirect:
< HTTP/1.1 307 Temporary Redirect
< Location: http://
Graylog is listening so it is graylog process sending the redirect:
root@graylog-3:~# netstat -lntp | grep 9000
tcp6 0 0 :::9000 :::* LISTEN 3873/java
The check does not seem to use the credentials created in Graylog.
Related branches
- Xav Paice (community): Disapprove
- Paul Goins: Needs Information
-
Diff: 42 lines (+5/-1)2 files modifiedlib/charms/layer/graylog/utils.py (+2/-0)
reactive/graylog.py (+3/-1)
Changed in charm-graylog: | |
importance: | Undecided → Medium |
managed to reproduce; issues is that query must be issued to http:/127. 0.0.1:9001/ api and not to http:/127. 0.0.1:9000/ api