mozilla/zamboni — pull request #479 by hannosch (2012-10-25 15:48:15+00:00)
Title: 793305 - nagios check for public receipt certificate

I added the check for the presence of the used public cert. It also ensures that we get valid JSON and the JSON contains at least a `jwk` key. One could extend the checks on the contents of the jwk, but I'm not sure what to check there.

In addition I made some small fixes and changed the certificate expiration warning from one day to one week. The cert is likely valid for one year or more, so I don't see a reason for a last minute (or day) warning.

There's some other small code cleanups in here, but nothing that should warrant an extra pull request. I did use the `requests` library instead of urllib2, as it's much nicer and was already used in both amo and mkt code.