If you used git clone to install the module, just do
git pull
inside the module directory (usually /usr/share/icingaweb2/modules/grafana)
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
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.
Don't forget to check the dashboard directories for newer versions of existing ones or new dashboards.