Dashboard Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ksafa
Posts: 91
Joined: Wed Jan 15, 2014 3:05 pm

Dashboard Issue

Post 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
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Dashboard Issue

Post 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.
Previous Nagios employee
ksafa
Posts: 91
Joined: Wed Jan 15, 2014 3:05 pm

Re: Dashboard Issue

Post 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.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Dashboard Issue

Post 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.
Previous Nagios employee
ksafa
Posts: 91
Joined: Wed Jan 15, 2014 3:05 pm

Re: Dashboard Issue

Post by ksafa »

That resolved my issue.

Thanks
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Dashboard Issue

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ksafa
Posts: 91
Joined: Wed Jan 15, 2014 3:05 pm

Re: Dashboard Issue

Post by ksafa »

good to close.
Locked