===== PNP4Nagios Debian 12 ===== Obtain code from: https://github.com/pnp4nagios/pnp4nagios ==== Install ==== ./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-http_server=nginx make all make fullinstall ln -s /usr/local/pnp4nagios/var/log/pnp4nagios/rrd/ /usr/local/pnp4nagios/var/perfdata ==== nginx ==== location ^~ /pnp4nagios { alias /usr/local/pnp4nagios/share; index index.php; try_files $uri $uri/ @pnp4nagios; } location @pnp4nagios { if ( $uri !~ /pnp4nagios/index.php(.*)) { rewrite ^/pnp4nagios/(.*)$ /pnp4nagios/index.php/$1; break; } fastcgi_pass unix:/var/run/php/php-fpm.sock; fastcgi_index index.php; include /etc/nginx/fastcgi_params; # this splits out the trailing path # eg index.php?host -> $fastcgi_path_info == 'host' fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME /usr/local/pnp4nagios/share/index.php; }