Revision 8f3fca99
[#1224] Acquittement et purge automatique.
Ajoute une tâche cron permettant d'acquitter et de purger
automatiquement les alertes de VigiBoard en fonction de certains
critères.
Refs; #1224.
Change-Id: Ifefb70a5766d0702f1c27a33a642b8931c98655a
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/1428
Tested-by: Build system <qa@vigilo-dev.si.c-s.fr>
Reviewed-by: Thomas BURGUIERE <thomas.burguiere@c-s.fr>
Makefile | ||
---|---|---|
4 | 4 |
deployment/logrotate.conf \ |
5 | 5 |
deployment/settings.ini \ |
6 | 6 |
deployment/vigiboard.conf \ |
7 |
deployment/vigiboard.wsgi |
|
7 |
deployment/vigiboard.wsgi \ |
|
8 |
pkg/vigilo-vigiboard.sh |
|
8 | 9 |
|
9 | 10 |
all: build |
10 | 11 |
build: $(SUBST_FILES) |
... | ... | |
20 | 21 |
-e 's,@NAGIOS_BIN@,$(NAGIOS_BIN),g' \ |
21 | 22 |
-e 's,@LOCALSTATEDIR@,$(LOCALSTATEDIR),g' $^ > $@ |
22 | 23 |
|
24 |
pkg/vigilo-vigiboard.sh: pkg/vigilo-vigiboard.sh.in |
|
25 |
sed -e 's,@INITCONFDIR@,$(INITCONFDIR),g' \ |
|
26 |
-e 's,@BINDIR@,$(BINDIR),g' $^ > $@ |
|
27 |
|
|
23 | 28 |
install: build install_python install_data |
24 | 29 |
install_pkg: build install_python_pkg install_data |
25 | 30 |
|
... | ... | |
30 | 35 |
$(SETUP_PY_OPTS) --root=$(DESTDIR) --record=INSTALLED_FILES |
31 | 36 |
|
32 | 37 |
install_data: $(SUBST_FILES) |
38 |
# Configuration de la tâche cron. |
|
39 |
install -p -m 644 -D pkg/initconf $(DESTDIR)$(INITCONFDIR)/$(PKGNAME) |
|
40 |
echo $(INITCONFDIR)/$(PKGNAME) >> INSTALLED_FILES |
|
33 | 41 |
# Permissions de la conf |
34 | 42 |
chmod a+rX -R $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME) |
35 | 43 |
[ `id -u` -ne 0 ] || chgrp $(HTTPD_USER) $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/*.ini |
Also available in: Unified diff