Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.27 KB

05-update.md

File metadata and controls

40 lines (27 loc) · 1.27 KB

Update the module

Using Git

If you used git clone to install the module, just do

git pull

inside the module directory (usually /usr/share/icingaweb2/modules/grafana)

Using latest tarball

The steps taken to update are the same as installation, but to make sure old files are removed we will delete the old module directory first. Get the latest version number from git and put into the MODULE_VERSION variable

MODULE_VERSION="2.0.0"
ICINGAWEB_MODULEPATH="/usr/share/icingaweb2/modules"
REPO_URL="https://github.com/NETWAYS/icingaweb2-module-grafana"
TARGET_DIR="${ICINGAWEB_MODULEPATH}/grafana"
URL="${REPO_URL}/archive/v${MODULE_VERSION}.tar.gz"
rm -rf ${TARGET_DIR}
install -d -m 0755 "${TARGET_DIR}"
wget -q -O - "$URL" | tar xfz - -C "${TARGET_DIR}" --strip-components 1

Check module configuration

Go to your module configuration page and check the possible new and or changed configuration options. When done, just hit the Save Changes button to save the new configuration.

Dashboards

Don't forget to check the dashboard directories for newer versions of existing ones or new dashboards.