User Tools

Site Tools


software:service:icinga

Table of Contents

Icinga

New monitoring test after prometheus and Nagios

Arch Install

yay -S icinga2
systemctl enable --now icinga2
yay -S icingaweb2 icingaweb2-module-director php-intl php-pgsql postgresql
systemctl enable --now icinga-director.service
 
su -l postgres
initdb -D /var/lib/postgres/data
exit
systemctl enable --now postgresql
 
vi /etc/nginx/nginx.conf
server {
	listen 80;
	listen [::]:80;
	server_name monitor.fortier-family.com;
	root /usr/share/webapps/icingaweb2/public;
	location ~ ^/icingaweb2/index\.php(.*)$ {
		fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
		fastcgi_index index.php;
		include fastcgi_params;
		fastcgi_param SCRIPT_FILENAME /usr/share/webapps/icingaweb2/public/index.php;
		fastcgi_param ICINGAWEB_CONFIGDIR /etc/icingaweb2;
		fastcgi_param REMOTE_USER $remote_user;
	}
	location ~ ^/icingaweb2(.+)? {
		alias /usr/share/webapps/icingaweb2;
		index index.php;
		try_files $1 $uri $uri/ /icingaweb2/index.php$is_args$args;
	}
}
vi /etc/php/php.ini
extension=curl
...
extension=gettext
...
extension=intl
...
extension=pdo_pgsql
...
extension=sockets
#Windows style®©™
reboot
icingacli setup config directory --group icingaweb2;
icingacli setup token create;

FUCKING RIGHTS:

chown -Rh icinga  /var/lib/icingaweb2
[root@monitor ~]chmod g+w/var/lib/icingaweb2

References

software/service/icinga.txt · Last modified: 2022/01/01 13:48 by warnaud