forked from zampat/neteye4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_setup.sh
executable file
·59 lines (42 loc) · 1.88 KB
/
run_setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
# VARIABLES DEFINITION
GIT_MONITORING_TEMPLATES="https://github.com/zampat/icinga2-monitoring-templates.git"
ICINGA2_AGENT_VERSION="2.10.2"
NETEYESHARE_ROOT_PATH="/neteye/shared/neteyeshare"
NETEYESHARE_MONITORING="${NETEYESHARE_ROOT_PATH}/monitoring"
ICINGA2_LIB_HOME_DIR="/usr/share/icingaweb2"
ICINGA2_CONF_HOME_DIR="/neteye/shared/icingaweb2/conf"
MONITORING_PLUGINS_CONTRIB_DIR="/neteye/shared/monitoring/plugins"
MONITORING_PLUGINS_CACHE_CONTRIB_DIR="/neteye/shared/monitoring/cache"
# Init share folder structure and WEB link
#
./scripts/010_init_neteyeshare.sh ${NETEYESHARE_MONITORING}
./scripts/011_init_neteyeshare_weblink.sh
# Icinga2 Agents
#
./scripts/020_get_icinga2_agents.sh ${NETEYESHARE_MONITORING} ${ICINGA2_AGENT_VERSION}
# NetEye 4 default configurations
# - Ressources
#
# LDAP Ressource
./scripts/030_ressources_init.sh ${ICINGA2_CONF_HOME_DIR}
./scripts/031_root_navigation_sample.sh ${ICINGA2_CONF_HOME_DIR}
./scripts/032_role_init.sh ${ICINGA2_CONF_HOME_DIR}
# Monitoring Templates Import
# - Icinga2 Templates
# - Icingaweb2 Icons: Host icions
#
./scripts/040_monitoring_templates_init.sh ${NETEYESHARE_ROOT_PATH} ${GIT_MONITORING_TEMPLATES}
./scripts/041_icingaweb2_icons_init.sh ${ICINGA2_LIB_HOME_DIR}
# Monitoring Plugins Import
#
# Only copy contents to neteyeshare/
./scripts/051_copy_nonproduct_monitoring_git_plugins.sh $NETEYESHARE_MONITORING
# Activate Plugins in PluginsContribDir/
./scripts/052_install_nonproduct_monitoring_plugins.sh ${MONITORING_PLUGINS_CONTRIB_DIR}
./scripts/053_install_product_monitoring_plugins_before_release.sh ${MONITORING_PLUGINS_CONTRIB_DIR}
# Synchronize content for neteyeshare
./scripts/060_synch_monitoring_plugins.sh $NETEYESHARE_MONITORING
# - Monitoring configuration samples
./scripts/061_sync_monitoring_configurations.sh ${NETEYESHARE_MONITORING}
./scripts/062_sync_monitoring_analytics.sh ${NETEYESHARE_MONITORING}