Skip to content

Instantly share code, notes, and snippets.

@wopfel
Last active July 4, 2018 15:21
Show Gist options
  • Save wopfel/38a4b7ca56e773545ca0c3df7e0531e0 to your computer and use it in GitHub Desktop.
Save wopfel/38a4b7ca56e773545ca0c3df7e0531e0 to your computer and use it in GitHub Desktop.
Software updates

Updating my Icinga 2 VM

pacman -Syu

cd ~/icinga2
git pull
cd build
cmake -DICINGA2_WITH_PGSQL=OFF -DUSE_SYSTEMD=ON -DCMAKE_INSTALL_PREFIX=/usr/local/icinga2 -DICINGA2_PLUGINDIR=/usr/local/icinga/libexec -DCMAKE_INSTALL_LOCALSTATEDIR=/usr/local/icinga2/var ..
make -j2
sudo make install
cd /usr/local/share/icingaweb2
git pull
cd /usr/local/share/icingaweb2/modules/grafana
git pull

mysql -h database -u icinga -p icinga < /usr/local/icinga2/share/icinga2-ido-mysql/schema/upgrade/2.8.1.sql

Failures

CMake reports error Your cache is probably stale

Solution: rm -rf build/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment