1. 16 Oct, 2017 3 commits
  2. 08 Sep, 2016 1 commit
  3. 31 Aug, 2016 1 commit
  4. 28 Aug, 2016 1 commit
  5. 03 Aug, 2016 1 commit
  6. 19 Dec, 2015 1 commit
  7. 18 Nov, 2015 1 commit
  8. 10 Nov, 2015 1 commit
    • Jonathan Michalon's avatar
      Implement config reload (via HUP signal) · 3c3ca1cf
      Jonathan Michalon authored
      Reloading of the configuration implemented. Old/changed checks in failure send
      an email saying it will never come back again. New checks are added to the list.
      Unmodified checks are kept the same, preserving context.
      Systemd unit now knows about reload and by the way uses systemd itself as a
      watchdog instead of the one provided alongside the program.
  9. 09 Nov, 2015 1 commit
  10. 31 Oct, 2015 1 commit
  11. 26 Oct, 2015 1 commit
    • Jonathan Michalon's avatar
      Provide a systemd templated unit · 97eefd7b
      Jonathan Michalon authored
      With systemd it's easy to manage several instances of picomon (via templated
      units) so this should be quite usefull.
      Also we switch to /etc/picomon for config (instead of %prefix%/etc/picomon)
      as /usr/local/etc don't seem to exist for real and that way it's not abnormal
      to ship the unit in /etc too. Also it's easier to manage the config at only
      one place (think about etckeeper etc.).
  12. 11 Jan, 2015 1 commit
    • Jonathan Michalon's avatar
      Activate SNI for HTTPS checks · 8bf86754
      Jonathan Michalon authored
      This fixes a strange "Error on receive" issue on some check_http versions.
      Enabling SNI we now also check the connection using the certificate of the
      configured vhost (and not the default one).
  13. 13 Sep, 2014 1 commit
    • Colomban Wendling's avatar
      Mails: don't drop mails upon temporary relay error · 844071b9
      Colomban Wendling authored
      We used to drop any mail we tried to send, regardless of whether
      sending it actually succeeded or not.  This could result in lost mails
      if the server failed to accept some mails for any temporary reason.
      Fix this by re-queuing emails that failed to send and wait a few
      moments before retrying.
  14. 08 Sep, 2014 1 commit
  15. 02 Sep, 2014 1 commit
  16. 31 Aug, 2014 7 commits
  17. 29 Aug, 2014 1 commit
  18. 25 Aug, 2014 2 commits
  19. 24 Aug, 2014 9 commits
  20. 23 Aug, 2014 4 commits
    • Colomban Wendling's avatar
      Mail thread: only report a task done when we actually handled a task · bb1ba3b2
      Colomban Wendling authored
      Don't account for a task in the `finally` handler as we actually got a
      task only if we didn't receive an exception.  This cleans up the code
      and possibly fixes it if we ever get any other exception than a
    • Colomban Wendling's avatar
      Remove a stupid and useless exception handler · 8cf30efb
      Colomban Wendling authored
      Don't explicitly handle KeyboardInterrupt in the mail thread as it
      doesn't seem it ever was of of any use, and could actually lead to
      a deadlock as it would terminate the in-thread loop without emptying
      the queue, leading to `queue.join()` in `quit()` to wait forever for
      the queue to empty.
    • Colomban Wendling's avatar
      Properly make the mail thread a daemon thread and properly quit it · 2a65dc4f
      Colomban Wendling authored
      A stupid typo lead for the mail thread not to be a daemon thread, thus
      preventing Python from quitting before that thread quits by itself.
      So properly make it a daemon thread, and as it would now actually get
      interrupted abruptly, register an atexit handler to cleanly quit it.
    • Colomban Wendling's avatar
      Mails: properly pop eaten item even if the server is not started · 3c87d5ae
      Colomban Wendling authored
      This fixes ThreadedSMTP.quit() when the connection to the server is
      down as Queue.join() will wait for all tasks to be popped and accounted
      for, but we wouldn't account for the fake (empty) task because the
      connection to the server would not be open.
      So, properly differentiate a closed connection from a queue timeout.