Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

  • Autorefresh settings not applied

    Posted by gohone on April 29, 2019 at 16:27

    Hi,

    I upgraded pandora fms from 6 to Version 7 (community version) . All is working except the autorefresh feature.

    In my user profile I can enable autorefresh for specific pages (tactical view, dashboard…) and It seems to be OK when I apply the change. I have the following message “SUCCESS Request successfully processed”

    However when I test the autorefresh, it’s still disabled on the top and if I go back to my user profile page, I notice my settings have not been saved.

    Do you have an idea where is the root cause ? (maybe an issue on the database ?)

    Thanks in advance for your support.

    gohone replied 5 years, 8 months ago 2 Members · 4 Replies
  • 4 Replies
  • jose.almendros

    Member
    April 29, 2019 at 16:58
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,

    I upgraded pandora fms from 6 to Version 7 (community version) . All is working except the autorefresh feature.

    In my user profile I can enable autorefresh for specific pages (tactical view, dashboard…) and It seems to be OK when I apply the change. I have the following message “SUCCESS Request successfully processed”

    However when I test the autorefresh, it’s still disabled on the top and if I go back to my user profile page, I notice my settings have not been saved.

    Do you have an idea where is the root cause ? (maybe an issue on the database ?)

    Thanks in advance for your support.

    Hello gohone,

    What Pandora FMS version are you using exactly? We are currently working on v733 MR 26.

    Please, try to update to the lastest version, that configuration does not fail in our environment.

    In case it continues failing, you can set directly the refresh time with a database query:

    – update tusuario set time_autorefresh = [5, 10, 15, 30, 60, 120, 300, 900, 1800 or 3600] where id_user = [username]

    Regards.

  • gohone

    Member
    April 30, 2019 at 17:57
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,

    I just updated to Pandora FMS v7.0NG.734 – Build 191231 but the issue is remaining.
    I also executed the MR sql command until 27 (1.sql to 27.sql).

    As you mentioned, I tried directly with an sql query on the database server:

    update tusuario set time_autorefresh=’120′ where id_user=’viewer1′;
    Query OK, 1 row affected (0.01 sec)
    Rows matched: 1  Changed: 1  Warnings: 0
    –> This setting is correctly changed when I go back to my user settings webpage.

    update tusuario set autorefresh_white_list=’Dashboard’ where id_user=viewer1;
    Query OK, 1 row affected (0.00 sec)
    Rows matched: 1  Changed: 1  Warnings: 0
    –> No change on the webpage. I still have “none” in the whitelist.

    For the moment my workaround is to use an autorefresh plugin with my web browser but if you have an idea I take it.

    Thanks for your support.

  • jose.almendros

    Member
    April 30, 2019 at 18:28
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,

    I just updated to Pandora FMS v7.0NG.734 – Build 191231 but the issue is remaining.
    I also executed the MR sql command until 27 (1.sql to 27.sql).

    As you mentioned, I tried directly with an sql query on the database server:

    update tusuario set time_autorefresh=’120′ where id_user=’viewer1′;
    Query OK, 1 row affected (0.01 sec)
    Rows matched: 1  Changed: 1  Warnings: 0
    –> This setting is correctly changed when I go back to my user settings webpage.

    update tusuario set autorefresh_white_list=’Dashboard’ where id_user=viewer1;
    Query OK, 1 row affected (0.00 sec)
    Rows matched: 1  Changed: 1  Warnings: 0
    –> No change on the webpage. I still have “none” in the whitelist.

    For the moment my workaround is to use an autorefresh plugin with my web browser but if you have an idea I take it.

    Thanks for your support.

    Hello gohone,

    I don’t know why you get that error in the user view, it is strange and I was not able to replicate it.

    I give you the query needed to set Dashboards in the autorefresh white list:

    update tusuario set autorefresh_white_list = ‘[“enterprise/dashboard/main_dashboard”]’ where id_user like ‘[id user]’

    This is autorefresh_while_list value with all pages with autorefresh, in case you need to add more pages via query:

    ["enterprise/dashboard/main_dashboard","operation/agentes/estado_agente","operation/agentes/alerts_status",
    "enterprise/godmode/reporting/cluster_view","operation/events/events","operation/reporting/graph_viewer",
    "operation/agentes/group_view","operation/agentes/status_monitor","operation/agentes/pandora_networkmap",
    "enterprise/operation/services/services","operation/snmpconsole/snmp_view","operation/agentes/tactical",
    "operation/visual_console/render_view"]

    Regards

  • gohone

    Member
    April 30, 2019 at 19:18
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I’m using php 7.3 instead of 7.2. Maybe my issue comes from the version.

    Anyway your workaround is working for me. I was able to add “dashboard and “tactical view” in the white list by using a sql query. The autorefresh is working well like that now.

    Thank you