chequeos de blazer

This commit is contained in:
f 2020-05-29 15:03:24 -03:00
parent 1086a51306
commit 67b232c626
3 changed files with 29 additions and 1 deletions

View file

@ -1,2 +1,6 @@
migrate: bundle exec rake db:prepare db:seed migrate: bundle exec rake db:prepare db:seed
sutty: bundle exec puma -d config.ru sutty: bundle exec puma -d config.ru
blazer_5m: bundle exec rake blazer:run_checks SCHEDULE="5 minutes"
blazer_1h: bundle exec rake blazer:run_checks SCHEDULE="1 hour"
blazer_1d: bundle exec rake blazer:run_checks SCHEDULE="1 day"
blazer: bundle exec rake blazer:send_failing_checks

View file

@ -71,7 +71,7 @@ override_csp: true
# enable forecasting # enable forecasting
# note: with trend, time series are sent to https://trendapi.org # note: with trend, time series are sent to https://trendapi.org
# forecasting: trend # forecasting: prophet
# enable map # enable map
# mapbox_access_token: <%= ENV["MAPBOX_ACCESS_TOKEN"] %> # mapbox_access_token: <%= ENV["MAPBOX_ACCESS_TOKEN"] %>

View file

@ -6,3 +6,27 @@ check process sutty with pidfile /srv/http/tmp/puma.pid
check program sync_assets check program sync_assets
with path /usr/local/bin/sync_assets with path /usr/local/bin/sync_assets
if status = 0 then unmonitor if status = 0 then unmonitor
check program blazer_5m
with path "/bin/sh -c 'cd /srv/http && foreman start blazer_5m'"
as uid "app" and gid "www-data"
every 5 cycles
if status != 0 then alert
check program blazer_1h
with path "/bin/sh -c 'cd /srv/http && foreman start blazer_1h'"
as uid "app" and gid "www-data"
every 60 cycles
if status != 0 then alert
check program blazer_1d
with path "/bin/sh -c 'cd /srv/http && foreman start blazer_1d'"
as uid "app" and gid "www-data"
every 1440 cycles
if status != 0 then alert
check program blazer
with path "/bin/sh -c 'cd /srv/http && foreman start blazer'"
as uid "app" and gid "www-data"
every 61 cycles
if status != 0 then alert