- Icinga Web 2 (>= 2.6)
- PHP (>= 5.6, preferably 7.x)
The module needs Google Chrome or Chromium supporting headless mode.
Add the Chrome repository from Google to yum, next to EPEL.
yum -y install epel-release
cat >/etc/yum.repos.d/google-chrome-stable.list <<EOF
[google-chrome-stable]
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
EOF
yum makecache
Install Chrome and additional dependencies (optional).
yum install google-chrome-stable
yum install mesa-libOSMesa mesa-libOSMesa-devel gnu-free-sans-fonts ipa-gothic-fonts ipa-pgothic-fonts
Add the Chrome repository from Google to apt.
apt-get -y install apt-transport-https gnupg wget
wget -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
apt-get update
Install Chrome.
apt-get install google-chrome-stable
-
Just drop this module to a
pdfexport
subfolder in your Icinga Web 2 module path. -
Log in with a privileged user in Icinga Web 2 and enable the module in
Configuration -> Modules -> pdfexport
. Or use theicingacli
and runicingacli module enable pdfexport
.
This concludes the installation. PDF exports now use Google Chrome/Chromium for rendering.