appel du script d'analyse de la config
This commit is contained in:
@@ -185,6 +185,28 @@ delete_extra_local_files() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run_local_conf_sync() {
|
||||||
|
|
||||||
|
local sync_script="${MONITORING_BASE_DIR}/bin/sync-local-confs.sh"
|
||||||
|
|
||||||
|
if [ -x "$sync_script" ]; then
|
||||||
|
log_info "local_conf_sync_start" \
|
||||||
|
"Synchronisation des fichiers .local.conf"
|
||||||
|
|
||||||
|
if "$sync_script"; then
|
||||||
|
log_info "local_conf_sync_done" \
|
||||||
|
"Synchronisation terminée"
|
||||||
|
else
|
||||||
|
log_warning "local_conf_sync_failed" \
|
||||||
|
"La synchronisation des .local.conf a échoué"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
log_notice "local_conf_sync_missing" \
|
||||||
|
"Script de synchronisation absent" \
|
||||||
|
"script=$sync_script"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
local total=0 updated_or_checked=0 failed=0
|
local total=0 updated_or_checked=0 failed=0
|
||||||
local hash mode path
|
local hash mode path
|
||||||
@@ -205,6 +227,8 @@ main() {
|
|||||||
done < "$TMP_MANIFEST"
|
done < "$TMP_MANIFEST"
|
||||||
|
|
||||||
delete_extra_local_files
|
delete_extra_local_files
|
||||||
|
|
||||||
|
run_local_conf_sync
|
||||||
|
|
||||||
if [ "$failed" -gt 0 ]; then
|
if [ "$failed" -gt 0 ]; then
|
||||||
log_warning "update_finished_with_errors" \
|
log_warning "update_finished_with_errors" \
|
||||||
|
|||||||
@@ -2,7 +2,8 @@ f433b3e2ca25c76cccebf971072255dae64169a8ae162d6baa10776904d733e9 755 bin/alert-e
|
|||||||
7ff2eb1163ca8b9aa3927ac7f0ebbcc1f90c944e51afbc880d57359b83a0c73f 755 bin/check_disk.sh
|
7ff2eb1163ca8b9aa3927ac7f0ebbcc1f90c944e51afbc880d57359b83a0c73f 755 bin/check_disk.sh
|
||||||
4fae83b48dc25c5e2a59bba944d8c3f2c6dff89bf2adb932d4dd9201f6305ca4 755 bin/install-monitoring.sh
|
4fae83b48dc25c5e2a59bba944d8c3f2c6dff89bf2adb932d4dd9201f6305ca4 755 bin/install-monitoring.sh
|
||||||
36528963f2e78a160738a2cf3b8da67b9d12dbe495d9d01ca6c1ba97956288fa 755 bin/monitoring.sh
|
36528963f2e78a160738a2cf3b8da67b9d12dbe495d9d01ca6c1ba97956288fa 755 bin/monitoring.sh
|
||||||
f6aab5dc2c5eaf20c17341c1b0c8c3d66171d6461ff28ea70aaf7a7f3e9f61da 755 bin/monitoring-update.sh
|
78ccebfd1da7cf885fddb8d5a967c23e379c495d8f43490584ace7133690ec55 755 bin/monitoring-update.sh
|
||||||
|
4d9b28a1e5b93b74a904ed991621ac5baa507e0e439c9c8d2adb2cea901f6b13 755 bin/monitor-update-config.sh
|
||||||
83db39c8d0cfd6f6e9d3cc5b961a67db29dc73666304a91e0d4a6d5831c623cb 644 conf/alert-engine.conf
|
83db39c8d0cfd6f6e9d3cc5b961a67db29dc73666304a91e0d4a6d5831c623cb 644 conf/alert-engine.conf
|
||||||
caaa8f6031d66bc43a897ac2804124ce2050a64523734195d5505ae863836bf4 644 conf/monitoring.conf
|
caaa8f6031d66bc43a897ac2804124ce2050a64523734195d5505ae863836bf4 644 conf/monitoring.conf
|
||||||
654cd98ecda1c485a0ea1224f160a3c4d7396ab95a491603574e2ad1981fe010 644 lib/monitoring-lib.sh
|
654cd98ecda1c485a0ea1224f160a3c4d7396ab95a491603574e2ad1981fe010 644 lib/monitoring-lib.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user