summaryrefslogtreecommitdiff
path: root/lib/custodian
AgeCommit message (Collapse)Author
2015-02-05Simplify the flushing of queues.Steve Kemp
Now that we've moved to using redis by default the handling of queue-flushing needs to change. We can simply get rid of the busy-wait and run a redis "del" operation. With that in mind we've moved the flushing logic to our queue abstraction layer, and simplified our queue-helper script.
2015-01-30Removed executable permissions, this is a library.Steve Kemp
2015-01-29Removed shebang.Steve Kemp
This refereed to ruby1.8 in a versioned way which was wrong.
2015-01-29Don't output messages unless $DEBUG=1Steve Kemp
2015-01-22Allow inverted tests for MX.Steve Kemp
(i.e. "pxe.io must not run mx otherwise 'no mail for steve'.")
2015-01-21Added accessor for the queue-type.Steve Kemp
Default to redis as this is more likely to be installed.
2015-01-21Read the queue-type from the settings-object.Steve Kemp
This replaces redis as a hard-wired default.
2015-01-19Updated to use our queue-abstraction.Steve Kemp
This means we can queue/dequeue to either Redis or Beanstalkd.
2015-01-13Updated to actually test the backend MX servers.Steve Kemp
We now connec to the MX-servers via XX:25 and alert if that fails.:wq
2015-01-13Lookup MX record(s) for the domain under test.Steve Kemp
2015-01-13Stub MX-test.Steve Kemp
This will perform a DNS-lookup AND SMTP-test for the given domain.
2015-01-13Added queue-abstraction layer.Steve Kemp
This is not-yet used, but it will-be shortly. The intention is that we can seamlessly swap out the queue implemention in the near future so that we'll be able to use Redis.
2015-01-08Simplified error messages for DNS failures.Steve Kemp
We show the result we expected and what we received, but we do so with quoted strings. So rather than: * one * two we show "one,two". This closes #8538.
2014-12-11Fixed typoPatrick J Cherry
2014-12-11Resolve DNS server name to an IP before connecting, so ruby knowsPatrick J Cherry
which protocol to use.
2014-12-11Use getnameinfo rather than getaddrinfoPatrick J Cherry
2014-12-11Removed ruby1.8ismsPatrick J Cherry
2014-12-11Further tidying the DNS class to use an array rather than a string toPatrick J Cherry
compare stuff.
2014-12-11make dns comparisons alL LoWeR CaSePatrick J Cherry
2014-12-02Added host header override to errors in HTTP testJames Hannah
2014-10-13Remove lines which are just whitespace before parsingJames Hannah
2014-10-13Added support for overriding the HTTP Host headerJames Hannah
2014-05-16Fixed numerous typos in the http libraryPatrick J Cherry
2014-05-16Updated http protocoltest to connect over both IPv4 and 6.Patrick J Cherry
2013-11-22 Added trivial TCP-connect test for postgresqlSteve Kemp
2013-11-22 Added IMAP protocol-test.Steve Kemp
2013-10-15 We now allow "with cache busting", and "without cache busting".Steve Kemp
2013-10-08 Attempt to avoid caching artifacts on all URL-testing bySteve Kemp
appending ?ctime=XX to HTTP/HTTPS-requests.
2013-10-08 Updated to send via UDP, without system.Steve Kemp
2013-10-07 fixed escaping.Steve Kemp
2013-10-04 Ensure we quit netcat after sending.Steve Kemp
2013-10-04 Show the test-target in the graphite listSteve Kemp
2013-10-04 Graphite alerter.Steve Kemp
2013-08-09 Fixed syntax error.Steve Kemp
2013-08-06 Added more logging of bad IPs.Steve Kemp
Ensure we parse zones correctly.
2013-08-05 DNSBL test.Steve Kemp
2013-08-01Updated the cool-off period to work after every failed test, bar thePatrick J Cherry
last one.
2013-07-11 Read the alert-source for mauve-notifier form the settings object.Steve Kemp
2013-07-11 Added new global variable "alert_source", for use withSteve Kemp
mauve-notification.
2013-07-11 Updated the first IPv6 range.Steve Kemp
2013-07-11 Added 2001:41c9::/32 as a Bytemark range.Steve Kemp
2013-06-24Updated the code to be more module.Steve Kemp
Broke down the inside? function into a function for returning the hours in a period, and for sanitizing hour strings "14" vs. "2pm", etc. Updated test-cases to match.
2013-06-24The worst-case for testing a time-period, and one used in theSteve Kemp
parser test, is matching against a period that covers the full 24 hours. Correctly terminate this case, and add a new test-case to ensure that this is always correct.
2013-06-24Removed obsolete debug-code.Steve Kemp
2013-06-24 Use our utility class for time-period testing.Steve Kemp
This fixes #4551, and closes #4551.
2013-06-24 Updated comment to reflect reality.Steve Kemp
2013-06-24Use the global timeout-period for DNS lookups.Steve Kemp
The rest of custodian will use the configuration file to read the timeout value (with a default of 30 seconds), but the DNS-lookups were hardwired to timeout after four seconds. This is now resolved; the DNS lookups will use the global timeout period too now.
2013-06-24Allow the code to load when the ruby LDAP module is not present.Steve Kemp
Although the actual protocol-test will instafail this allows the test suite to be executed without the LDAP library being present.
2013-06-24 Added Custodian::Util::TimeSpanSteve Kemp
This class is used to determine whether an "hour" is within a given hour-span. e.g. To cope with: foo must run ping except between 04-06 otherwise 'alert'. This updates issue #4551.
2013-05-20 Updated to test the kind of argument correctly.Steve Kemp