mlazarov / supervisord-monitor

Supervisord Monitoring Tool
950 stars 224 forks source link

nginx error 500 #25

Closed FAKERINHEART closed 5 years ago

FAKERINHEART commented 8 years ago

I have nginx config with: server{ server_name 10.21.200.75; listen 9011; root /data/release/server/infras/supervisord-monitor/public_html/; index index.php;

access_log /data/release/server/infras/supervisord-monitor/public_html/access.log;
error_log  /data/release/server/infras/supervisord-monitor/public_html/error.log;

location / {
    try_files $uri $uri/ /index.php;
}

location ~* \.php$ {
    include fastcgi.conf;
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_index index.php;
}

}

and supervisord-monitor.php with:

// Dashboard columns. 2 or 3 config['supervisor_cols'] = 2;

// Refresh Dashboard every x seconds. 0 to disable config['refresh'] = 10;

// Enable or disable Alarm Sound config['enable_alarm'] = true;

// Show hostname after server name config['show_host'] = true;

config['supervisor_servers'] = array( 'server01' => array( 'url' => '10.21.200.75', 'port' => '9010', 'username' => 'user', 'password' => '123' ), );

// Set timeout connecting to remote supervisord RPC2 interface ;config['timeout'] = 3;

// Path to Redmine new issue url $config['redmine_url'] = 'http://redmine.url/path_to_new_issue_url';

// Default Redmine assigne ID $config['redmine_assigne_id'] = '69';

However, when I started the nginx service and go to the 10.21.200.75:9011, it returned error 500. Could you help me resolve this problem? Thx~

mlazarov commented 8 years ago

What errors do you have in the error_log?