Loaded brand new Centos8, MariaDB, Zabbix 5.2.1 but instead of using Apache I used nginx
first using:
https://technologyrss.com/how-to-install-zabbix-5-0-on-centos-8/
#1 main sw install step [root@centos8 ~]# dnf install zabbix-server-mysql zabbix-web-mysql zabbix-agent
then from
https://www.digitalocean.com/communi...n-ubuntu-20-04
#2 main sw install step [root@centos8 ~]# dnf install zabbix-nginx-conf
The only tricks I had to do were 2 symbolic links
[root@centos8 zabbix]# ln -s /etc/nginx/conf.d/zabbix.conf /etc/zabbix/nginx.conf
[root@centos8 zabbix]# ln -s /etc/php-fpm.d/zabbix.conf /etc/zabbix/php-fpm.conf
Gui works - product works - everything works except API gives 404
end user curl= or even here with wget gives:
[root@labucftp01 zabbix_dev]# wget http://10.xxx.1xx.254/zabbix/api_jsonrpc.php
--2020-12-28 21:45:23-- http://10.xxx.1xx.254/zabbix/api_jsonrpc.php
Connecting to 10.xxx.1xx.254:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-12-28 21:45:23 ERROR 404: Not Found.
Today I tried to see if getting php user:group to run as nginx:nginx instead of apache:apache would help but it didn't
[root@nipt-ems-dev-01 php-fpm.d]# pwd
/etc/php-fpm.d
vi www.conf and zabbix.conf
nginx error.log =
[root@nipt-ems-dev-01 nginx]# pwd
/var/log/nginx
2020/12/28 21:46:40 [error] 531437#0: *4 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: IP.IP.IP.IP hidden, server: DNSname-hidden, request: "GET /zabbix/api_jsonrpc.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/zabbix.sock:", host: "IP.IP.IP.IPhidden
all php config basically comes from
dnf install zabbix-nginx-conf
anyone can help?
first using:
https://technologyrss.com/how-to-install-zabbix-5-0-on-centos-8/
#1 main sw install step [root@centos8 ~]# dnf install zabbix-server-mysql zabbix-web-mysql zabbix-agent
then from
https://www.digitalocean.com/communi...n-ubuntu-20-04
#2 main sw install step [root@centos8 ~]# dnf install zabbix-nginx-conf
The only tricks I had to do were 2 symbolic links
[root@centos8 zabbix]# ln -s /etc/nginx/conf.d/zabbix.conf /etc/zabbix/nginx.conf
[root@centos8 zabbix]# ln -s /etc/php-fpm.d/zabbix.conf /etc/zabbix/php-fpm.conf
Gui works - product works - everything works except API gives 404
end user curl= or even here with wget gives:
[root@labucftp01 zabbix_dev]# wget http://10.xxx.1xx.254/zabbix/api_jsonrpc.php
--2020-12-28 21:45:23-- http://10.xxx.1xx.254/zabbix/api_jsonrpc.php
Connecting to 10.xxx.1xx.254:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-12-28 21:45:23 ERROR 404: Not Found.
Today I tried to see if getting php user:group to run as nginx:nginx instead of apache:apache would help but it didn't
[root@nipt-ems-dev-01 php-fpm.d]# pwd
/etc/php-fpm.d
vi www.conf and zabbix.conf
nginx error.log =
[root@nipt-ems-dev-01 nginx]# pwd
/var/log/nginx
2020/12/28 21:46:40 [error] 531437#0: *4 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: IP.IP.IP.IP hidden, server: DNSname-hidden, request: "GET /zabbix/api_jsonrpc.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/zabbix.sock:", host: "IP.IP.IP.IPhidden
all php config basically comes from
dnf install zabbix-nginx-conf
anyone can help?
Comment