Arch Icinga2
Version vom 26. Februar 2015, 09:48 Uhr von Thomas (Diskussion | Beiträge) (→anpassen des webserver)
notwendige pakete
- [thomas@barclay local]$ sudo pacman -S libmariadbclient monitoring-plugins yajl postgresql-libs libmariadbclient cmake boost yajl boost-libs php php-apache
icinga2 download, entpacken, bauen und installieren
- [thomas@barclay local]$ curl -O https://aur.archlinux.org/packages/ic/icinga2/icinga2.tar.gz
- [thomas@barclay local]$ tar -xvzf icinga2.tar.gz
- [thomas@barclay local]$ cd icinga2
- [thomas@barclay icinga2]$ makepkg
- [thomas@barclay icinga2]$ sudo pacman -U icinga2-2.2.4-1-x86_64.pkg.tar.xz
icinga-classic-ui download, entpacken, bauen und installieren
- [thomas@barclay local]$ curl -O https://aur.archlinux.org/packages/ic/icinga-classic-ui/icinga-classic-ui.tar.gz
- [thomas@barclay local]$ tar -xvzf icinga-classic-ui.tar.gz
- [thomas@barclay local]$ cd icinga-classic-ui
- [thomas@barclay icinga-classic-ui]$ makepkg
- [thomas@barclay icinga-classic-ui]$ sudo pacman -U icinga-classic-ui-1.12.0-1-x86_64.pkg.tar.xz
icingaadmin anlegen
- [root@barclay icinga2]# htpasswd -b -c /etc/icinga2/passwd icingaadmin 'sysadm'
anpassen des webserver
- [root@barclay ~]# mv /etc/httpd/conf.d/icinga.conf /etc/httpd/conf/extra/icinga.conf
- [root@barclay ~]# echo "Include /etc/httpd/conf/extra/icinga.conf" >> /etc/httpd/conf/httpd.conf
- [root@barclay ~]# systemctl restart httpd
feature enablen
- [root@barclay ~]# icinga2 feature enable statusdata compatlog command
user http zur gruppe icingacmd fügen
- [root@barclay icinga2]# gpasswd -a http icingacmd