488 Commits

Author SHA1 Message Date
Neil Williams
8dfaab5641 HTTP Checks: Make User-Agent configurable.
This is helpful so the service being checked can log the source of the
health check requests more informatively.
2015-08-07 11:14:06 -07:00
Chris Elsmore
da8fe97d48 Update setup_dependencies.sh
Rewrite static alias in the HTTPS example Nginx config to be the same location as HTTP, so you don't lose static assetswhen you start only serving from HTTPS!
2015-06-11 14:39:10 +01:00
David Buxton
f5f201ca92 Merge pull request #226 from elsmorian/patch-1
example production env tweak
2015-06-11 10:59:20 +01:00
Chris Elsmore
9165f3b662 example production env tweak
Only including this as it got me for a little while - a reminder that Cabot won't see your graphite server if you leave off the trailing slash.

(It tries to access graphite.example.comevents instead of joining the URL together with a slash if not already present- suggest using urljoin to prevent this?)
2015-06-11 10:56:24 +01:00
David Buxton
a03450507f Merge pull request #221 from miguel250/patch-2
Add support for authentication with LDAP
2015-05-13 22:11:53 +01:00
Dawid Cieplinski
15c51102f8 Convert *_INTERVAL variables to int
ALERT_INTERVAL and NOTIFICATION_INTERVAL are now converted to
numbers. This allows user-defined ALERT_INTERVAL and
NOTIFICATION_INTERVAL env variables to work without throwing
TypeErrors:

    return self.run(*args, **kwargs)
  File "/cabot/cabot/cabotapp/tasks.py", line 68, in update_service
    service.update_status()
  File "/cabot/cabot/cabotapp/models.py", line 243, in update_status
    self.alert()
  File "/cabot/cabot/cabotapp/models.py", line 174, in alert
    if self.last_alert_sent and (timezone.now() - timedelta(minutes=settings.ALERT_INTERVAL)) < self.last_alert_sent:
TypeError: unsupported type for timedelta minutes component: str
2015-05-12 12:07:50 +02:00
Miguel Perez
bed4ace93b Add support for authentication with LDAP
- add necessary dependencies
2015-05-11 17:20:47 -04:00
David Buxton
2708ee7eed Merge pull request #213 from kmwhite/make-backup-task-use-consts
Using defined values in backup task
2015-04-08 17:28:12 -04:00
Kristofer M White
08de4d4a07 Using defined values in backup task
The backup fabric task was using hardcoded values that represented the
defaults for the PG_* values. This change makes use of the variables so
that the task works in different environments
2015-04-08 16:15:26 -05:00
David Buxton
1b323366fd Merge pull request #193 from 0rc/add_alerting_on_expected_metric_values
added alerting on expected metrics values rather than number of hosts re...
2015-04-05 14:58:20 -04:00
David Buxton
a9820f0818 Merge pull request #211 from efagin/master
Deployment improvements
2015-04-05 14:44:54 -04:00
Edward Fagin
fc4f64bc46 Move foreman -e command line param to earlier as it doesn't seem to be getting called properly right now - foreman keeps defaulting to whatever's in the .foreman file otherwise on Ubuntu 14.04. 2015-04-03 11:55:54 -04:00
Edward Fagin
fbaa120653 Add better string escaping to upstart template just in case somebody has an exclamation point in a Django key or something. 2015-04-03 11:47:58 -04:00
David Buxton
76ab3fb66f Merge pull request #206 from xinity/patch-1
adding alert type selection and hackpad support
2015-03-30 10:18:29 +01:00
xinity
c1c78e08fc adding alert type selection to instances 2015-03-30 10:46:55 +02:00
David Buxton
2829eed8e5 Merge pull request #191 from bonniejools/master
Remove 'No URL file' error message and set default versions for plugins.
2015-03-24 15:24:26 +00:00
Dmitry Batiyevsky
41f8f4e5a3 added alerting on expected metrics values rather than number of hosts reporting 2015-03-03 15:22:27 +02:00
Jonathan Balls
14a6bcc357 Merge branch 'master' of github.com:arachnys/cabot 2015-02-25 18:25:08 +00:00
Jonathan Balls
6e5762975d removed URL file missing errors and explicitly defined plugin version numbers. 2015-02-25 18:24:20 +00:00
David Buxton
8362690722 Merge branch 'packetcollision-ubuntu1404' 2015-02-20 09:34:09 +00:00
David Buxton
cc0c4bcb92 Merge branch 'ubuntu1404' of https://github.com/packetcollision/cabot into packetcollision-ubuntu1404
Conflicts:
	.gitignore
2015-02-20 09:33:27 +00:00
David Buxton
db554a5192 Whitespace 2015-02-09 19:47:34 +00:00
David Buxton
5cceaa926a Merge pull request #182 from bonniejools/cabot-alert-plugins
Cabot alert plugins landed in dev
2015-02-09 15:48:47 +00:00
Jonathan Balls
b2625c2004 merged upstream 2015-02-09 12:49:54 +00:00
Jonathan Balls
43ae71a986 Added support for alert plugins 2015-02-09 12:34:36 +00:00
David Buxton
f794461ea7 Merge pull request #174 from 0rc/cabot-API--instances-field-is-not-exposed-to-/api/services
fixed cabot API: instances field is not exposed to /api/services/
2015-01-31 11:07:42 +00:00
Dmitry Batiyevsky
56ccb00f4d fixed cabot API: instances field is not exposed to /api/services/ 2015-01-26 10:23:18 +02:00
David Buxton
c6f604b09f Merge pull request #173 from bpaquet/master
Allow to specify email backend
2015-01-25 14:49:54 +00:00
Bertrand Paquet
2c34868266 Merge pull request #1 from bpaquet/email_backend_config
Allow to specify email backend
2015-01-23 22:02:30 +01:00
Bertrand Paquet
bcf5058a5c Allow to specify email backend 2015-01-23 22:01:30 +01:00
Daniel Nelson
ef09cb4f84 Merge branch 'master' into ubuntu1404 2015-01-22 01:38:03 -08:00
David Buxton
b3ca47808c Merge pull request #162 from lebedevdsl/#161-fix
#161 updated pytz
2015-01-22 08:58:27 +00:00
David Buxton
42b185b8b7 Merge pull request #170 from packetcollision/fix-tests
Fix tests failing because of http vs https
2015-01-22 08:57:57 +00:00
Daniel Nelson
6cef0793a4 Fix tests failing because of http vs https 2015-01-21 23:41:16 -08:00
Daniel Nelson
569c71d0b1 Make Cabot work on 14.04 as well as 12.04
Closes upstream #122
2015-01-21 19:35:55 -08:00
David Buxton
b84c524753 Update test expectations 2015-01-07 15:30:24 +00:00
David Buxton
302a5ed69d Merge pull request #165 from Labgoo/master
Alert sequence fails when one of the alerts fails
2014-12-31 15:27:58 +00:00
romankor
dee44198fc removing @property from last_result 2014-12-30 15:29:44 -08:00
romankor
430f466473 Merge remote-tracking branch 'upstream/master' 2014-12-29 11:10:11 -08:00
Roman Kournjaev
06a849be09 fixing sending alert when one fails all fail 2014-12-26 17:35:46 -08:00
Dmitry Lebedev
51f1ecb23e updated pytz 2014-12-24 01:37:06 +03:00
David Buxton
2957bec84b Merge pull request #158 from bonniejools/master
Added badge to readme which links to docs
2014-12-07 17:06:42 -06:00
Jonathan Balls
aca9ddad43 Added badge to readme which links to docs 2014-12-05 13:29:12 +00:00
David Buxton
b0056c644d Merge pull request #152 from bonniejools/jenkins_job_number
Updated models to show jenkins job number in StatusCheckResult
2014-12-01 11:32:59 -06:00
Matthew Brown
3040cffde5 Updated models to show jenkins job number in StatusCheckResult. Job number and link is also reported in hipchat template.
Tests were not merged because alert testing has already been implemented.
Conflicts:
	cabot/cabotapp/tests/tests_basic.py
2014-12-01 17:23:10 +00:00
David Buxton
d33c57af01 Merge pull request #150 from bonniejools/travis_integration
Travis integration
2014-11-30 13:56:14 -05:00
Jonathan Balls
096e569f09 Added a badge to the README to show whether the build is passing or not 2014-11-28 22:58:11 +00:00
Jonathan Balls
290b6d1bd7 Created a .travis.yml file which will allow Cabot to be built and tested on travis-ci 2014-11-28 22:53:23 +00:00
David Buxton
e689938df1 Merge pull request #148 from bonniejools/master
Update tests and stop inactive users being alerted
2014-11-28 06:49:14 -05:00
Jonathan Balls
ee1952c812 Updated and fixed unit tests 2014-11-28 11:00:17 +00:00