{"id":944,"date":"2017-01-19T15:33:47","date_gmt":"2017-01-19T15:33:47","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=944"},"modified":"2017-01-19T15:33:47","modified_gmt":"2017-01-19T15:33:47","slug":"create-rackspace-cloud-monitoring-check-error-database-connection-lost","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2017\/01\/19\/create-rackspace-cloud-monitoring-check-error-database-connection-lost\/","title":{"rendered":"Create a Rackspace Cloud Monitoring Check for Error database connection lost"},"content":{"rendered":"<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nif (metric&#x5B;'body_match'] regex 'Error establishing a database connection') {\r\n  return new AlarmStatus(CRITICAL, 'Database connection lost, returning CRITICAL.');\r\n}\r\n<\/pre>\n<p>Simples.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>if (metric&#x5B;&#8217;body_match&#8217;] regex &#8216;Error establishing a database connection&#8217;) { return new AlarmStatus(CRITICAL, &#8216;Database connection lost, returning CRITICAL.&#8217;); } Simples.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[],"class_list":["post-944","post","type-post","status-publish","format-standard","hentry","category-rackspace"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/944","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=944"}],"version-history":[{"count":1,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/944\/revisions"}],"predecessor-version":[{"id":945,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/944\/revisions\/945"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}