Ad Widget

Collapse

Script error when updating, only when behind reverse proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thomasjsn
    Junior Member
    • Dec 2017
    • 1

    #1

    Script error when updating, only when behind reverse proxy

    Hi

    I've found two actions that doesn't work when using the Zabbix front-end behind HAProxy:

    Monitoring -> Maps -> Edit map -> Update
    Code:
    jsLoader.php?ver=3.4.4&lang=en_GB&showGuiMessaging=1&files[]=class.svg.canvas.js&files[]=class.svg.map.js&files[]=class.cmap.js&files[]=class.cviewswitcher.js&files[]=multiselect.js&files[]=servercheck.js:2461 Uncaught Error: Cannot update map.
        at Object.error (jsLoader.php?ver=3.4.4&lang=en_GB&showGuiMessaging=1&files[]=class.svg.canvas.js&files[]=class.svg.map.js&files[]=class.cmap.js&files[]=class.cviewswitcher.js&files[]=multiselect.js&files[]=servercheck.js:2461)
        at c (jsLoader.php?ver=3.4.4&lang=en_GB&showGuiMessaging=1:4978)
        at Object.fireWith [as rejectWith] (jsLoader.php?ver=3.4.4&lang=en_GB&showGuiMessaging=1:4978)
        at k (jsLoader.php?ver=3.4.4&lang=en_GB&showGuiMessaging=1:4980)
        at XMLHttpRequest.r (jsLoader.php?ver=3.4.4&lang=en_GB&showGuiMessaging=1:4980)
    Configuration -> Hosts -> Toggle status on any host

    Code:
    Operation cannot be performed due to unauthorized request.
    Both of these operations work just find when the Zabbix front-end is not behind HAproxy.

    Any way around this? I've been unable to find any information about it.

    Haproxy config:

    Code:
    defaults
            log     global
            mode    http
            option  httplog
            option  dontlognull
            option  forwardfor
            option  http-server-close
    
    frontend www-public
        bind :::80 v4v6
    
        # monitor
        acl host_monitor hdr(host) -i monitor.my-domain
        acl path_zabbiz path_dir -i zabbix
        use_backend zabbix if host_monitor path_zabbiz
    
    backend zabbix
        server vm-monitor vm-monitor.local-domain
Working...