Capomastro http check is broken

Bug #1496338 reported by Jacek Nykis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Capomastro
Fix Released
Critical
Caio Begotti

Bug Description

Capomastro http check is failing with:
Invalid HTTP response received from host: HTTP/1.1 400 BAD REQUEST

It's due to missing host header and bad regex in the check. Currently it's:
/usr/lib/nagios/plugins/check_http -I <IP> -p 80 -u / -e '302 FOUND' -u / -d 'http://capomastro/accounts/login/'

It should be:
/usr/lib/nagios/plugins/check_http -I <IP> -p 80 -H capomastro.canonical.com -u / -e '302 FOUND' -u / -d
'http://capomastro.canonical.com/accounts/login/'

Parameters are hardcoded in the charm so charm needs small patch and testing

Related branches

Caio Begotti (caio1982)
Changed in capomastro:
importance: Undecided → Critical
assignee: nobody → Caio Begotti (caio1982)
status: New → Confirmed
Caio Begotti (caio1982)
Changed in capomastro:
status: Confirmed → In Progress
Caio Begotti (caio1982)
Changed in capomastro:
status: In Progress → Fix Committed
Caio Begotti (caio1982)
Changed in capomastro:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.