Page 1 of 1
Cant delete dashboards
Posted: Mon Jul 29, 2019 9:12 am
by ITOMB_IMT
Hi,
Currently we are using Nagios XI 5.6.1 in RHEL 7.5. I have a user created custom dashboards for his own and he can see those dashboards in Home page. but when he navigate to Dashboards > Mange my dashboards, he has lot of Dashboards on empty title and he cannot delete those Dashboards. As an admin, i though to delete those dashboards but i cannot see those dashboards as an admin in dashboards.
Re: Cant delete dashboards
Posted: Mon Jul 29, 2019 1:45 pm
by tgriep
Dashboards are specific to each user account and are not shared with all of the user accounts so that is why your account cannot see them.
Try this, login as that user in a different browser or System and see it the issue is still happening.
Or try and clear the browser cache.
If the dashboards still cannot be removed, try this.
Run this in a root shell
Then have the user try and remove a Dashboard and post the output generated in the screen running the tail command.
Re: Cant delete dashboards
Posted: Mon Jul 29, 2019 2:52 pm
by ITOMB_IMT
Are the user dashboards cannot be stored in Admins Mange Dashboasrds list? I tried login as that user and delete dashboards but i couldn't.
Please see the output of logs. i changed https as h_t_t_p_s for convince to have more urls in this post
Code: Select all
==> /var/log/httpd/ssl_access_log <==
- - [29/Jul/2019:15:41:03 -0400] "GET /data/process.txt HTTP/1.1" 200 95
==> /var/log/httpd/ssl_request_log <==
[29/Jul/2019:15:41:03 -0400] desktop TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "GET /data/process.txt HTTP/1.1" 95
==> /var/log/httpd/access_log <==
127.0.0.1 - - [29/Jul/2019:15:41:05 -0400] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips PHP/5.4.16 (internal dummy connection)"
==> /var/log/httpd/ssl_access_log <==
ip_address - - [29/Jul/2019:15:41:09 -0400] "GET /nagiosxi/ajaxhelper.php?cmd=keepalive&nsp=039e848cb2d057f1955ea46cb814bd7ca7764e1f99832380514ab2bb5675def7 HTTP/1.1" 200 -
==> /var/log/httpd/ssl_request_log <==
[29/Jul/2019:15:41:09 -0400] ip_address TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "GET /nagiosxi/ajaxhelper.php?cmd=keepalive&nsp=039e848cb2d057f1955ea46cb814bd7ca7764e1f99832380514ab2bb5675def7 HTTP/1.1" -
==> /var/log/httpd/ssl_access_log <==
ip_address - - [29/Jul/2019:15:41:09 -0400] "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_pagetop_alert_content_html%22%2C%22args%22%3A%22%22%7D&nsp=039e848cb2d057f1955ea46cb814bd7ca7764e1f99832380514ab2bb5675def7 HTTP/1.1" 200 -
==> /var/log/httpd/ssl_request_log <==
[29/Jul/2019:15:41:09 -0400] ip_address TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_pagetop_alert_content_html%22%2C%22args%22%3A%22%22%7D&nsp=039e848cb2d057f1955ea46cb814bd7ca7764e1f99832380514ab2bb5675def7 HTTP/1.1" -
==> /var/log/httpd/ssl_access_log <==
ip_address - - [29/Jul/2019:15:41:11 -0400] "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_servicestatus_table%22%2C%22args%22%3A%7B%22host%22%3A%22%22%2C%22hostgroup%22%3A%22%22%2C%22servicegroup%22%3A%22%22%2C%22sortby%22%3A%22%22%2C%22sortorder%22%3A%22asc%22%2C%22records%22%3A%2215%22%2C%22page%22%3A%221%22%2C%22search%22%3A%22%22%2C%22hostattr%22%3A%220%22%2C%22serviceattr%22%3A%220%22%2C%22hoststatustypes%22%3A%220%22%2C%22servicestatustypes%22%3A%228%22%7D%7D&nsp=039e848cb2d057f1955ea46cb814bd7ca7764e1f99832380514ab2bb5675def7 HTTP/1.1" 200 22916
==> /var/log/httpd/ssl_request_log <==
[29/Jul/2019:15:41:11 -0400] ip_address TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_servicestatus_table%22%2C%22args%22%3A%7B%22host%22%3A%22%22%2C%22hostgroup%22%3A%22%22%2C%22servicegroup%22%3A%22%22%2C%22sortby%22%3A%22%22%2C%22sortorder%22%3A%22asc%22%2C%22records%22%3A%2215%22%2C%22page%22%3A%221%22%2C%22search%22%3A%22%22%2C%22hostattr%22%3A%220%22%2C%22serviceattr%22%3A%220%22%2C%22hoststatustypes%22%3A%220%22%2C%22servicestatustypes%22%3A%228%22%7D%7D&nsp=039e848cb2d057f1955ea46cb814bd7ca7764e1f99832380514ab2bb5675def7 HTTP/1.1" 22916
==> /var/log/httpd/ssl_access_log <==
server_ip - - [29/Jul/2019:15:41:14 -0400] "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_pagetop_alert_content_html%22%2C%22args%22%3A%22%22%7D&nsp=ab84921a340505604828690c56b7b1958a1852ca9b89ba2c01548df1cb103565 HTTP/1.1" 200 -
==> /var/log/httpd/ssl_request_log <==
[29/Jul/2019:15:41:14 -0400] server_ip TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_pagetop_alert_content_html%22%2C%22args%22%3A%22%22%7D&nsp=ab84921a340505604828690c56b7b1958a1852ca9b89ba2c01548df1cb103565 HTTP/1.1" -
==> /var/log/httpd/ssl_error_log <==
[Mon Jul 29 15:41:16.377190 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.377238 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.377249 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.377259 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined variable: home_id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.377317 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.377503 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.377519 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.377529 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.377536 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.377546 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.377552 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.377560 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.377566 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.377572 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.377578 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.377586 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.377595 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
==> /var/log/httpd/ssl_access_log <==
server_ip - - [29/Jul/2019:15:41:16 -0400] "GET /nagiosxi/ajaxhelper.php?cmd=getdashboardsmenuhtml&opts=&nsp=ab84921a340505604828690c56b7b1958a1852ca9b89ba2c01548df1cb103565 HTTP/1.1" 200 10965
==> /var/log/httpd/ssl_request_log <==
[29/Jul/2019:15:41:16 -0400] server_ip TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "GET /nagiosxi/ajaxhelper.php?cmd=getdashboardsmenuhtml&opts=&nsp=ab84921a340505604828690c56b7b1958a1852ca9b89ba2c01548df1cb103565 HTTP/1.1" 10965
==> /var/log/httpd/ssl_error_log <==
[Mon Jul 29 15:41:16.588039 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.588074 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.588082 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.588099 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined variable: home_id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.588132 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.740849 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/dashboards/manage.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.740873 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/dashboards/manage.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.742647 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/dashboards/manage.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.743606 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/dashboards/manage.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.743635 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/dashboards/manage.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.745441 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/dashboards/manage.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.746362 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/dashboards/manage.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.746390 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/dashboards/manage.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
[Mon Jul 29 15:41:16.748077 2019] [:error] [pid 15207] [client server_ip:60406] PHP Notice: Undefined index: id in /usr/local/nagiosxi/html/dashboards/manage.php on line 0, referer: h_t_t_p_s://Nagios_app_server/nagiosxi/dashboards/
Thanks,
Re: Cant delete dashboards
Posted: Mon Jul 29, 2019 4:11 pm
by tgriep
No, the user dashboards are not stored in the Admins Mange Dashboards list so the only way to access them is to login as that user.
The tail output did not show any definitive errors but thanks for running it.
Two things you can try.
1. Change the user to an admin temporarily and see if they can be deleted.
2. Use the following procedure to delete all of the dashboards for that user, good and bad.
Run the following command to find the user_id for the user that is currently having the problem:
Code: Select all
echo "select user_id, username from xi_users;" | mysql -t -uroot -pnagiosxi nagiosxi
Then, to delete the corrupted data that they have in the table for the dashboards:
- Change THEUSERID in the following command to the user_id from the above command.
Code: Select all
echo "delete from xi_usermeta where user_id = 'THEUSERID' and keyname = 'dashboards';" | mysql -uroot -pnagiosxi nagiosxi
Then logout and login again and recreate the dashboards for that user.
Re: Cant delete dashboards
Posted: Tue Jul 30, 2019 2:24 pm
by ITOMB_IMT
This worked for me, Thanks.
Re: Cant delete dashboards
Posted: Tue Jul 30, 2019 3:18 pm
by mbellerue
Excellent! Glad to hear it worked! Closing thread.