安装(> = 0.16)
如果您使用的是icinga web <2.9.0,也需要以下模块
一旦您启动并运行了Icinga Web 2,就应该已经存在所有必需的依赖关系。全部,但是PHP肥皂
和php-posix
。它们可在所有主要的Linux发行版中使用,可以与您的软件包管理器(YUM,APT…)一起安装。非Linux系统也是如此。
准备 - 数据库
提示:您应该更换某个通信
使用安全的自定义密码。
在您的网络前端,请去配置 /应用程序 /资源
并创建一个指向您新创建的数据库的新数据库资源。请确保您选择UTF8MB4
作为编码。
![数据库配置“src=]()
安装并提取将其安装到默认的ICinga Web 2模块目录中。最终将更换现有的模块安装,因此也可以用于升级:
#您可以自定义这些设置,但是我们建议坚持我们的默认设置:module_version=“ 1.4.0”DAEMON_USER=“ iCingavsphspheredB”DAEMON_GROUP=“ icingaweb2”icingaweb_modulepath=“/usr/share/icingaweb2/模块”repo_url=“ https://github.com/icinga/icingaweb2-module-vspheredb”target_dir=“$ {icingaweb_modulepath}/vspheredb“”URL=“$ {repo_url}/存档/refs/tags/v$ {module_version}.tar.gz“#SystemD默认值:socket_path=/run/icinga-vspheredbtmpfiles_config=/etc/tmpfiles.d/icinga-vspheredb.conf getent passwd“$ {DAEMON_USER}“> /dev /null||USERADD -R -G“$ {DAEMON_GROUP}“\ \-d/var/lib/$ {DAEMON_USER}-s /bin /false$ {DAEMON_USER}安装-D -O“$ {DAEMON_USER}“-G“$ {DAEMON_GROUP}“-m0750/var/lib/$ {DAEMON_USER}安装-D -M0755“$ {target_dir}“测试-d“$ {target_dir}_tmp”&&RM -RF“$ {target_dir}_tmp”测试-d“$ {target_dir}_backup”&&RM -RF“$ {target_dir}_backup”安装-D -O根-G根-M0755“$ {target_dir}_tmp”WGET -Q -O-“$ URL“|tar xfz -c -c“$ {target_dir}_tmp”- 条纹组件1\ \&&MV“$ {target_dir}““$ {target_dir}_backup”\ \&&MV“$ {target_dir}_tmp”“$ {target_dir}“\ \&&RM -RF“$ {target_dir}_backup”回声“ d$ {socket_path}0755$ {DAEMON_USER}$ {DAEMON_GROUP}- ”>“$ {tmpfiles_config}“CP -F“$ {target_dir}/contrib/systemd/icinga-vspheredb.service“/etc/systemd/system/systemd-tmpfiles-创建“$ {tmpfiles_config}“icingacli模块使能够vspheredb systemctl守护程序 - 雷神加载systemctl使能够icinga-vspheredb.Service Systemctl restart incinga-vspheredb.service.Service
你准备去