My scheduled report was working beautifully until I configured SSL (on apache) for Zabbix that redirect all request HTTP to HTTPS. (Directions at the bottom).
So, I reconfigured the server URL for the GUI (Administration->General->others) pointing to HTTPS:// instead of HTTP://, Then I changed the server configuration:
/etc/zabbix/zabbix_web_service.conf
But after restarting zabbix_services, and testing the scheduled report I got: "Cannot connect to web service: sSL connect error"
Browsing for similar issues, I found several tickets with the problem but none of them was commented on or even resolved.
I was giving up on SSL and started rollback, but I only returned the Zabbix server config to HTTP (and restarting zabbix server), nothing else was rolled back, yet that made the trick.
/etc/zabbix/zabbix_server.conf
So despite the apache server has SSL redirecting from HTTP to HTTPS, the scheduled report is working beautifully again.
SSL for Zabbix on Apache
====================
sudo yum install mod_ssl
adding the next three lines to /etc/httpd/conf.d/zabbix.conf :
sudo systemctl restart httpd
Regards,
Verde
So, I reconfigured the server URL for the GUI (Administration->General->others) pointing to HTTPS:// instead of HTTP://, Then I changed the server configuration:
/etc/zabbix/zabbix_server.conf
+ WebServiceURL=https://zabbix.ip:10053/report
/etc/zabbix/zabbix_web_service.conf
+IgnoreURLCertErrors=1
But after restarting zabbix_services, and testing the scheduled report I got: "Cannot connect to web service: sSL connect error"
Browsing for similar issues, I found several tickets with the problem but none of them was commented on or even resolved.
I was giving up on SSL and started rollback, but I only returned the Zabbix server config to HTTP (and restarting zabbix server), nothing else was rolled back, yet that made the trick.
/etc/zabbix/zabbix_server.conf
+ WebServiceURL=http://zabbix.ip:10053/report
So despite the apache server has SSL redirecting from HTTP to HTTPS, the scheduled report is working beautifully again.
SSL for Zabbix on Apache
====================
sudo yum install mod_ssl
adding the next three lines to /etc/httpd/conf.d/zabbix.conf :
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
sudo systemctl restart httpd
Regards,
Verde
Comment