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.
Cant delete dashboards
Cant delete dashboards
You do not have the required permissions to view the files attached to this post.
Re: Cant delete dashboards
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.
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
Code: Select all
tail -f /var/log/httpd/*_logBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Cant delete dashboards
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
Thanks,
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,
Last edited by tgriep on Mon Jul 29, 2019 4:02 pm, edited 1 time in total.
Reason: Changed the Code Wraps around large output.
Reason: Changed the Code Wraps around large output.
Re: Cant delete dashboards
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:
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.
Then logout and login again and recreate the dashboards for 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- 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 nagiosxiBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Cant delete dashboards
This worked for me, Thanks.
Re: Cant delete dashboards
Excellent! Glad to hear it worked! Closing thread.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!