Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating the browser page #26

Open
psmartins opened this issue Feb 1, 2018 · 7 comments
Open

Updating the browser page #26

psmartins opened this issue Feb 1, 2018 · 7 comments
Labels

Comments

@psmartins
Copy link

The link traffic information changes only when I refresh the page in the browser or press f5 on the keyboard. Can you tell me where I have to change in the configuration for the map page to update dynamically.

My zabbix has been compiled and put all your files inside the /opt/zabbix/directory. The frontend files are within /opt/zabbix/www/

The Zabbix-Network-Weathermap plugin files are in the /opt/zabbix/maps_wheatermap_zabbix/Zabbix-Network-Weathermap-master/

Thank you.

@Prototype-X
Copy link
Owner

Zabbix -> Administration -> Users -> username -> Refresh (in seconds)

@psmartins
Copy link
Author

It was already set for 50s. I switched to 10s and the problem still persisted.

@Prototype-X
Copy link
Owner

In this case, the question should be addressed to the developers of Zabbix.
Alternative:

  1. Update Zabbix
  2. Downgrade to Zabbix LTS 3.0
  3. Change web browser
  4. Install plugin in web browser for refresh page
  5. Wait for Zabbix updates in which the problem will be solved

@psmartins
Copy link
Author

The version of my zabbix is ​​3.4.4. The other maps are updating normally.

Thank you

@psmartins
Copy link
Author

Prototype-X

What is the Linux distribution and what version of zabbix have you tested on your map?

Thanks!

@Prototype-X
Copy link
Owner

Prototype-X commented Feb 2, 2018

Ubuntu 16.04 LTS + Zabbix 3.0.9 LTS

Zabbix appliance 3.4.6 with last weathermap - zabbix frontend do not reload background image while refresh. This behavior can be fixed by the browser plugin Auto refresh page.

@Prototype-X
Copy link
Owner

Prototype-X commented Feb 2, 2018

Hotfix for refresh background image.
Open /usr/share/zabbix/js/vector/class.svg.map.js and comment or delete:

if (this.background !== null && background === this.options.background) {
        // Background was not changed.
        return;
}

Like this:

/**
 * Update background image.
 *
 * @param {string}    background     Background image id.
 */
SVGMap.prototype.updateBackground = function (background) {
        var element = null;

        if (background && background !== '0') {
                //if (this.background !== null && background === this.options.background) {
                        // Background was not changed.
                        //return;
                //}

@Prototype-X Prototype-X added the bug label Feb 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants