Welcome! Log In Create A New Profile


Lots of help needed with Nagios

Posted by Cloudmaster 
Lots of help needed with Nagios
March 29, 2012 09:00AM
Hi all,

I've been battling all day to get Nagios Core running on NGinx, I'm as far as having a menu bar down the left and seeing the home page, but the following is wrong with URL's within the menu (an example) -

http://domain.com/cgi-bin/tac.cgi is offered as http://domain.com/nagios/cgi-bin/tac.cgi

This is the server block from NGinx

server {
listen ************:80;
server_name ***********;

location / {
root /usr/local/nagios/share;
index index.php;

location ~ ^/(.*\.php)$ {
root /usr/local/nagios/share/;
rewrite ^/(.*) /$1 break;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/local/nagios/share$fastcgi_script_name;

location ~ ^/(.*\.cgi)$ {
alias /usr/local/nagios/sbin/;
rewrite ^/(.*) /$1.cgi break;
include /etc/nginx/fastcgi_params;
fastcgi_param AUTH_USER $remote_user;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param SCRIPT_FILENAME /usr/local/nagios/sbin$fastcgi_script_name;

I've tried many different variations from many different websites, but nothing's worked so far.

Tearing my hair out, hoping someone can help
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 61
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready