Page 1 of 1

Dashboard Error

Posted: Mon Mar 13, 2017 10:43 am
by asardouk
Hello,

I have an issue with the dashboard system.I can't anymore create a new dashboard of add widget to an existant one.

Code: Select all

-rwxr-xr-x. 1 nagios apache 25792 Feb 24  2016 dashboard.php
-rwxr-xr-x. 1 nagios apache 16820 Feb 24  2016 dashlets.php
-rwxr-xr-x. 1 nagios apache 25900 Feb 24  2016 index.php
-rw-r--r--. 1 nagios apache 19680 Feb 24  2016 manage.php
Thanks for help.

Re: Dashboard Error

Posted: Mon Mar 13, 2017 1:12 pm
by tgriep
If you have a lot of dashboards defined, there is a table in the MYSQL database that may not be large enough to store all of them so that could be the issue.
To increase that table, login as root to the Nagios server and run the following command

Code: Select all

echo "alter table xi_usermeta modify keyvalue LONGTEXT;" | mysql -uroot -pnagiosxi nagiosxi
Restart the processes by running to the changes will take effect.

Code: Select all

service nagios stop
service ndo2db stop
service httpd restart
service ndo2db start
service nagios start
Try that and let us know if it fixes the issue for you.

Re: Dashboard Error

Posted: Fri Mar 17, 2017 11:59 am
by asardouk
MariaDB [nagiosxi]> alter table xi_usermeta modify keyvalue LONGTEXT;
Query OK, 0 rows affected (0.01 sec)
Records: 0 Duplicates: 0 Warnings: 0
Nothing changed.

Re: Dashboard Error

Posted: Fri Mar 17, 2017 2:04 pm
by tgriep
Try changing the owner / group of those files by running the following.

Code: Select all

chown nagios.nagios  /usr/local/nagiosxi/html/dashboards/*
Then restart the nagios and apache process by running this

Code: Select all

service nagios restart
service httpd restart
If you still cannot create a dashboard, run the following command
t

Code: Select all

ail -f /var/log/httpd/*_log
Then try and create a dashboard and post the output of the tail command.
Hopefully it will show the error you are experiencing.

Re: Dashboard Error

Posted: Tue Mar 21, 2017 10:52 am
by asardouk

Code: Select all

[Tue Mar 21 16:43:27.787214 2017] [:error] [pid 18634] [client 10.153.0.58:62616] client denied by server configuration: /usr/local/nagiosxi/html/ajaxhelper.php, referer: https://supervision.xxxxxx.fr/nagiosxi/admin/dashlets.php?&=
[Tue Mar 21 16:43:27.798269 2017] [:error] [pid 18634] [client 10.153.0.58:62616] client denied by server configuration: /usr/local/nagiosxi/html/ajaxhelper.php, referer: https://supervision.xxxxxx.fr/nagiosxi/admin/dashlets.php?&=
[Tue Mar 21 16:43:30.009171 2017] [:error] [pid 18634] [client 10.153.0.58:62616] client denied by server configuration: /usr/local/nagiosxi/html/dashboards/, referer: https://supervision.xxxxxx.fr/nagiosxi/admin/?xiwindow=dashlets.php
[Tue Mar 21 16:43:53.381069 2017] [:error] [pid 4807] [client 10.153.0.58:62616] PHP Notice:  Use of undefined constant Hostgroup - assumed 'Hostgroup' in /usr/local/nagiosxi/html/includes/components/bbmap/bbmap.inc.php on line 192, referer: https://supervision.xxxxxxx.fr/nagiosxi/dashboards/dashboard.php?id=vontr08o

Re: Dashboard Error

Posted: Tue Mar 21, 2017 1:39 pm
by tgriep
It could be a missing SSL setting on the XI server when the system was setup to be accessed over SSL.
Take a look at this link and verify that the system is setup correctly for SSL.
https://assets.nagios.com/downloads/nag ... s%20XI.pdf

If you are still having issues, please post the following files

Code: Select all

/etc/httpd/conf.d/nagiosxi.conf
/etc/httpd/conf.d/ssl.conf
/etc/httpd/conf/httpd.conf
Then run the following as root and attach the /tmp/info.txt file to this post.

Code: Select all

ls -lR /usr/local/nagiosxi/html/ >/tmp/info.txt
grep use_https config.inc.php >>/tmp/info.txt

Re: Dashboard Error

Posted: Wed Mar 22, 2017 5:28 am
by asardouk
nagiosxi.conf :

Code: Select all

#NameVirtualHost *:443

<VirtualHost *:80> # Add this line
<Directory "/usr/local/nagiosxi/html">
	Options None
	AllowOverride None
	Order allow,deny
	Allow from all
	Require all granted
</Directory> # Add this line
	##RewriteEngine On
	##RewriteCond %{HTTPS} off
	##RewriteRule (.*) https://%{SERVER_NAME}/nagiosxi/$1 [R,L]	
</VirtualHost>

<VirtualHost *:443>
	ServerName supervision.xxxxxx.fr:443
	SSLEngine on
	SSLCompression off
	SSLProtocol all -SSLv2 -SSLv3
	SSLCertificateFile /etc/letsencrypt/live/supervision.xxxxxx.fr/cert.pem
	SSLCertificateChainFile /etc/letsencrypt/live/supervision.xxxxxx.fr/lets-encrypt-x3-cross-signed.pem
	SSLCertificateKeyFile /etc/letsencrypt/live/supervision.xxxxxx.fr/privkey.pem
	SSLHonorCipherOrder on
	SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS !RC4"
<Directory "/usr/local/nagiosxi/html">
	AllowOverride All
	Require all granted
</Directory>
</VirtualHost>

Alias /nagiosxi "/usr/local/nagiosxi/html"

Re: Dashboard Error

Posted: Wed Mar 22, 2017 12:45 pm
by tgriep
In the /etc/httpd/conf.d/nagiosxi.conf file, the section below has to be removed as it is a duplication if the settings in the top of the file and that section is causing the access issues.
Remove this section

Code: Select all

    <Directory "/usr/local/nagiosxi/html">
       AllowOverride All
       Require all granted
    </Directory>
Then restart the Apache daemon by running

Code: Select all

service httpd restart
Then login to the XI GUI and see if you can edit / create dashboards now.

Re: Dashboard Error

Posted: Mon Aug 21, 2017 1:50 pm
by asardouk
Hello,

I still have the same problem. all users got it. and so impossible to edit dashboards.

Re: Dashboard Error

Posted: Mon Aug 21, 2017 2:46 pm
by tgriep
Try resetting the owner / permissions for the dashboards folder by running the following as root on the XI server.

Code: Select all

chown -R nagios.nagios  /usr/local/nagiosxi/html/dashboards
chmod -R 777 /usr/local/nagiosxi/html/dashboards
service httpd restart
Then try creating a dashboard, you you get any errors, look in the /var/log/httpd/ log files for any errors and post them here.