Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.71 KB

02-Installation.md

File metadata and controls

64 lines (41 loc) · 1.71 KB

Installation

Requirements

  • Icinga Web 2 (>= 2.6)
  • PHP (>= 5.6, preferably 7.x)

Google Chrome/Chromium Setup

The module needs Google Chrome or Chromium supporting headless mode.

RHEL/CentOS

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

Debian/Ubuntu

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

Module Installation

  1. Just drop this module to a pdfexport subfolder in your Icinga Web 2 module path.

  2. Log in with a privileged user in Icinga Web 2 and enable the module in Configuration -> Modules -> pdfexport. Or use the icingacli and run icingacli module enable pdfexport.

This concludes the installation. PDF exports now use Google Chrome/Chromium for rendering.