pythian / opsviz

26 stars 24 forks source link

Fix NGINX proxy for the sensu healthcheck #46

Closed dtest closed 9 years ago

dtest commented 9 years ago

Uchiwa makes an API call to this address:

(dashboard_url)/sensu/health/sensu

This is supposed to return an object similar to this:

{"Sensu":{"output":"ok"}}

However, nginx is redirecting it to the events page. This causes the alerts on datacenter being undefined due to the way javascript is parsing it.

screen shot 2015-03-17 at 5 24 39 pm

dtest commented 9 years ago

This is the issue: https://github.com/pythian/opsviz/blob/master/site-cookbooks/bb_monitor/templates/default/nginx/dashboard.erb#L30

I just don't know the reasoning behind this rule. Can we rewrite Line 31 to be a permanent?

jmetzmeier commented 9 years ago

Nice job tracking this down. :+1: