The follwing Icinga error
PROBLEM - PyBal backends health check on lvs1010 is CRITICAL: PYBAL CRITICAL - Bad Response from pybal: 500 Internal Server Error
is caused by PyBal's alerting endpoint returning an HTTP 500 in certain cases
$ curl http://localhost:9090/alerts <html> <head><title>500 - Request did not return bytes</title></head> <body> <h1>Request did not return bytes</h1> <p>Request: <pre><Request at 0x7f34ad625878 method=GET uri=/alerts clientproto=HTTP/1.1></pre><br />Resource: <pre><pybal.instrumentation.Alerts instance at 0x7f34acd22170></pre><br />Value: <pre>u'CRITICAL - thumbor_8800: Servers thumbor1004.eqiad.wmnet, thumbor1002.eqiad.wmnet, thumbor1003.eqiad.wmnet are marked down but pooled'</pre></p> </body> </html>