User Tools

Site Tools


software:service:icinga

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
software:service:icinga [2022/01/01 13:36] – warnaudsoftware:service:icinga [2022/01/01 13:48] (current) – warnaud
Line 1: Line 1:
 +====== Icinga ======
 +New monitoring test after prometheus and Nagios
  
 +====== Arch Install ======
 +<code bash>
 +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</code>
 +<code perl>
 +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;
 + }
 +}</code>
 +<code bash>
 +vi /etc/php/php.ini</code>
 +<code perl>
 +extension=curl
 +...
 +extension=gettext
 +...
 +extension=intl
 +...
 +extension=pdo_pgsql
 +...
 +extension=sockets
 +</code>
 +<code bash>
 +#Windows style®©™
 +reboot
 +icingacli setup config directory --group icingaweb2;
 +icingacli setup token create;
 +</code>
 +FUCKING RIGHTS:
 +<code bash>
 +chown -Rh icinga  /var/lib/icingaweb2
 +[root@monitor ~]chmod g+w/var/lib/icingaweb2
 +</code>
 +====== References ======
 +
 +  * https://wiki.archlinux.org/title/Icinga
 +  * https://icinga.com/docs/icinga-2/latest/doc/01-about/