Page 1 of 1

Dashboard Issue

Posted: Wed Apr 05, 2017 4:02 pm
by ksafa
I am attempting to create some dashboards with performance graphs. Some of these dashboards have a lot of elements in them and when I attempt to clone them it wipes out all my dashboard. Am i reaching some sort of limitation in regards to how many dashboards/dashlets one can have configured? I'm seeing the following errors in http error log:

[Wed Apr 05 20:57:30 2017] [error] [client x.x.x.x] PHP Notice: unserialize(): Error at offset 65492 of 65535 bytes in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 269, referer: http://x.x.x.x/nagiosxi/dashboards/manage.php
[Wed Apr 05 20:57:30 2017] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 273, referer: http://x.x.x.x/nagiosxi/dashboards/manage.php
[Wed Apr 05 20:57:30 2017] [error] [client x.x.x.x] PHP Notice: Undefined variable: home_id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 283, referer: http://x.x.x.x/nagiosxi/dashboards/manage.php
[Wed Apr 05 20:57:30 2017] [error] [client x.x.x.x] PHP Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 285, referer: http://x.x.x.x/nagiosxi/dashboards/manage.php
[Wed Apr 05 20:57:30 2017] [error] [client x.x.x.x] PHP Warning: array_reverse() expects parameter 1 to be array, boolean given in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 288, referer: http://x.x.x.x/nagiosxi/dashboards/manage.php
[Wed Apr 05 20:57:30 2017] [error] [client x.x.x.x] PHP Notice: Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 289, referer: http://x.x.x.x/nagiosxi/dashboards/manage.php
[Wed Apr 05 20:57:31 2017] [error] [client x.x.x.x] PHP Notice: unserialize(): Error at offset 65492 of 65535 bytes in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 269, referer: http://x.x.x.x/nagiosxi/dashboards/
[Wed Apr 05 20:57:31 2017] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 273, referer: http://x.x.x.x/nagiosxi/dashboards/
[Wed Apr 05 20:57:31 2017] [error] [client x.x.x.x] PHP Notice: Undefined variable: home_id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 283, referer: http://x.x.x.x/nagiosxi/dashboards/
[Wed Apr 05 20:57:31 2017] [error] [client x.x.x.x] PHP Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 285, referer: http://x.x.x.x/nagiosxi/dashboards/
[Wed Apr 05 20:57:31 2017] [error] [client x.x.x.x] PHP Warning: array_reverse() expects parameter 1 to be array, boolean given in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 288, referer: http://x.x.x.x/nagiosxi/dashboards/
[Wed Apr 05 20:57:31 2017] [error] [client x.x.x.x] PHP Notice: Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 289, referer: http://x.x.x.x/nagiosxi/dashboards/

Thanks

Re: Dashboard Issue

Posted: Wed Apr 05, 2017 4:42 pm
by avandemore
There seem to be multiple errors:

Code: Select all

PHP Notice: unserialize(): Error at offset 65492 of 65535 bytes in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php 
^ That one indicates the dashboard failed to unserialize. Could be because of DB column type.

Code: Select all

PHP Notice: Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php 
^ That one indicates you don't have a home dashboard, which is sort of needed.

Re: Dashboard Issue

Posted: Thu Apr 06, 2017 7:49 am
by ksafa
I have a home dashboard prior to attempting to clone. 1st clone attempt works then when i try to clone again it erases all my previous dashboards and just leaves home dashboard.

Re: Dashboard Issue

Posted: Thu Apr 06, 2017 1:30 pm
by avandemore
I think you may need to do the steps referenced in this post and not the following ones first.

https://support.nagios.com/forum/viewto ... 95#p185025

The above is assuming dashboards are in a working state to begin with. If they are not you should make them so first including the home dashboard. If you need it, I can give you the SQL needed to restore default dashboards.

Re: Dashboard Issue

Posted: Fri Apr 07, 2017 12:43 pm
by ksafa
That resolved my issue.

Thanks

Re: Dashboard Issue

Posted: Fri Apr 07, 2017 12:54 pm
by cdienger
Glad to hear it has been resolved. Can we go ahead and lock the thread or did you have any follow up questions?

Re: Dashboard Issue

Posted: Fri Apr 07, 2017 12:55 pm
by ksafa
good to close.