Installed on:
After clean install (file /usr/share/zabbix/conf/zabbix.conf.php created succefully and contains valid data) I can't get login screen.
The frontend has title "Warning [refreshed every 30 seconds]" and in the red box contains: "Access denied. Your are logged in as guest. You have no permissions to access this page. If you think this message is wrong, please consult your administrators about getting the necessary permissions."
When I press "Login" button it tries to redirect to "/index.php?request=index.php" with the same text as shown above.
In PostgreSQL trace it seems that queries runs on zabbix DB:
i.e. connection to DB works.
Nginx site config:
I have tried to install zabbix twice - with the same result.
Can somebody tell me what I am doing wrong?
With best regards,
Andrew
- OpenSUSE 13.1
- Zabbix 2.2.6 (from OpenSUSE repo)
- PostgreSQL 9.2
- Nginx 1.4.7
- PHP 5.4.20
After clean install (file /usr/share/zabbix/conf/zabbix.conf.php created succefully and contains valid data) I can't get login screen.
The frontend has title "Warning [refreshed every 30 seconds]" and in the red box contains: "Access denied. Your are logged in as guest. You have no permissions to access this page. If you think this message is wrong, please consult your administrators about getting the necessary permissions."
When I press "Login" button it tries to redirect to "/index.php?request=index.php" with the same text as shown above.
In PostgreSQL trace it seems that queries runs on zabbix DB:
Code:
SET bytea_output = escape SELECT 1 FROM information_schema.tables WHERE table_catalog='zabbix' AND table_schema='public' AND table_name='dbversion' SELECT dv.mandatory,dv.optional FROM dbversion dv SELECT n.* FROM nodes n WHERE n.nodetype=1 ORDER BY n.nodeid BEGIN SELECT u.userid,u.autologout,s.lastaccess FROM sessions s,users u WHERE s.sessionid='c2145834e78e5436585119f5d6d3b842' AND s.status=0 AND s.userid=u.userid AND (s.lastaccess+u.autologout>1412238436 OR u.autologout=0) SELECT g.usrgrpid FROM usrgrp g,users_groups ug WHERE ug.userid='2' AND g.usrgrpid=ug.usrgrpid AND g.users_status=1 LIMIT 1 OFFSET 0 DELETE FROM sessions WHERE userid=2 AND lastaccess<1412237536 UPDATE sessions SET lastaccess=1412238436 WHERE userid=2 AND sessionid='c2145834e78e5436585119f5d6d3b842' SELECT MAX(g.gui_access) AS gui_access FROM usrgrp g,users_groups ug WHERE ug.userid=2 AND g.usrgrpid=ug.usrgrpid SELECT u.userid,u.alias,u.name,u.surname,u.url,u.autologin,u.autologout,u.lang,u.refresh,u.type, u.theme,u.attempt_failed,u.attempt_ip,u.attempt_clock,u.rows_per_page FROM users u WHERE u.userid='2' SELECT ug.userid FROM usrgrp g,users_groups ug WHERE ug.userid='2' AND g.usrgrpid=ug.usrgrpid AND g.debug_mode=1 COMMIT
i.e. connection to DB works.
Nginx site config:
Code:
server
{
listen 192.168.200.1:80;
listen [fd00:192:168:200::1]:80;
server_name zabbix.home.localnet;
server_name www.zabbix.home.localnet;
location /
{
root /usr/share/zabbix;
index index.php index.html index.htm;
}
location ~ \.php$
{
root /usr/share/zabbix;
#try_files $uri =404;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
I have tried to install zabbix twice - with the same result.
Can somebody tell me what I am doing wrong?
With best regards,
Andrew
Comment