This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (metric['body_match'] == '') { | |
return new AlarmStatus(CRITICAL, 'URL response did not contain the correct content.'); | |
} | |
if (metric['code'] != '200') { | |
return new AlarmStatus(CRITICAL, 'URL returned a #{code} code. Expected to receive a 200.'); | |
} | |
return new AlarmStatus(OK, 'URL responds as expected.'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
print "status ok results returned" | |
for x in xrange(300): | |
print "metric metric%d string %d" % (x, x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If we receive an email with a list of accounts related to the ddos in LON, we need to do the following: | |
The email will likely be from Slade and will relate to a new comment in this gist - https://gist.github.rackspace.com/virg3823/efc9483068ea64bc879cdc2b9f35daa9 | |
The last one I have run is "992837, als0FRG5zP" from https://gist.github.rackspace.com/virg3823/efc9483068ea64bc879cdc2b9f35daa9#gistcomment-4193 | |
so look for anything after it. | |
You need to convert that to a list with just the tenant ids: | |
e.g. | |
I copy it into sublime and remove the alarm ids, then: |