Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Autorefresh settings not applied
#1
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.
 Reply
#2
(04-29-2019, 12:27 PM)gohone Wrote: 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.
 Reply
#3
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.
 Reply
#4
(04-30-2019, 01:57 PM)gohone Wrote: 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:



Code:
["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
 Reply
#5
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
 Reply


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes