Page 1 of 3

Dashboard deployment for new user Nagios XI

Posted: Thu Mar 07, 2019 9:58 am
by hoegh
Hi Team,

I'm trying to make new dashboard fro new user.
I'm able to add & deploy dashlets from ServiecGroup / Hostgroup overview by clicking "Add this to a Dashboard" option.

But when user is logging into his account, instead of added Host/Services its displaying random host/services in users newly created dashboard.

I tried deleting & recreating user & dashboard but didn't work well.

Please help.

Thanks
Hoegh

Re: Dashboard deployment for new user Nagios XI

Posted: Thu Mar 07, 2019 2:37 pm
by cdienger
What are the exact steps you are taking and can you provide screenshots? What are the permissions set on the the new account? Typically users are only able to see hosts and services that have them as a contact which may explain why the user doesn't see what you see.

Re: Dashboard deployment for new user Nagios XI

Posted: Fri Mar 08, 2019 6:32 am
by hoegh
HI @cdienger,

I've attached steps i followed to deploy dashboard.

Thanks
Hoegh

Re: Dashboard deployment for new user Nagios XI

Posted: Fri Mar 08, 2019 10:38 am
by cdienger
Login as the user and go to Dashboards > My Dashboards, right click the VMS: Dashboard link, and select Copy Link address. This should copy a link like: http://nagiosxi_ip/nagiosxi/dashboards/dashboard.php?id=DFJUN2. Then click the username link in top right corner and go to My Account > Home Page Options, and select Custom URL for the "Home Page Destination" and enter the path of the URL for the "Custom URL" - /nagiosxi/dashboards/dashboard.php?id=DFJUN2. Update settings and that should do it.

Re: Dashboard deployment for new user Nagios XI

Posted: Sat Mar 09, 2019 11:01 am
by hoegh
Thanks @cdienger,
but it's not working.
1. When i'm logging as user & going to dashboard, not all Servers are visible in VMS-Dashboard which are originally added
2. It's displaying only servers which are from those 22 random server list.
3. I'm not getting any "Home Page Options" under My Account neither in nagiosadmin account nor newly created read only user account.
4. The Dashboard creation steps i've shared, I followed those steps in earlier & it worked well, so why it's not working now?

Please help, i need it fixed as soon as possible.

Thanks
HOegh

Re: Dashboard deployment for new user Nagios XI

Posted: Mon Mar 11, 2019 9:12 am
by hoegh
Please reply on this thread on priority, Need to fix this issue.

Re: Dashboard deployment for new user Nagios XI

Posted: Mon Mar 11, 2019 10:19 am
by lmiltchev
1. When i'm logging as user & going to dashboard, not all Servers are visible in VMS-Dashboard which are originally added
2. It's displaying only servers which are from those 22 random server list.
Is the user authorized to see all of the objects? Have you tried editing testuser's permissions (for testing purposes) by selecting the "Can see all hosts and services" checkbox, and clicking on "Update User"? Do numbers match now?

Do you see any errors / crashed tables in the mysqld.log (mariadb.log)?

Code: Select all

tail /var/log/mysqld.log
tail /var/log/mariadb/mariadb.log
3. I'm not getting any "Home Page Options" under My Account neither in nagiosadmin account nor newly created read only user account.
Go to Admin > System Extensions > Manage Components > Home Page Modification > Edit Settings, select the "Allow users to override their default home page settings" check-box, and click on "Apply Settings". Did this help?

Re: Dashboard deployment for new user Nagios XI

Posted: Thu Mar 14, 2019 8:31 am
by hoegh
lmiltchev wrote:Is the user authorized to see all of the objects? Have you tried editing testuser's permissions (for testing purposes) by selecting the "Can see all hosts and services" checkbox, and clicking on "Update User"? Do numbers match now?
No, numbers are not matching Total host & service list are coming, but when i'm trying to set custom URL of dashboard for Homepage then it's working but it's not appropriate.
Also we don't want to provide any access to the user except ReadOnly.
Do you see any errors / crashed tables in the mysqld.log (mariadb.log)?
tail /var/log/mysqld.log
[root@OSLMSnagios libexec]# tail /var/log/mysqld.log
190312 14:57:05 [Note] /usr/libexec/mysqld: Shutdown complete

190312 14:57:05 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
190312 14:57:07 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
190312 14:57:07 InnoDB: Initializing buffer pool, size = 8.0M
190312 14:57:07 InnoDB: Completed initialization of buffer pool
190312 14:57:07 InnoDB: Started; log sequence number 0 448185360
190312 14:57:07 [Note] Event Scheduler: Loaded 0 events
190312 14:57:07 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.73' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution

tail /var/log/mariadb/mariadb.log
[root@OSLMSnagios libexec]# tail /var/log/mariadb/mariadb.log
tail: cannot open `/var/log/mariadb/mariadb.log' for reading: No such file or directory


Go to Admin > System Extensions > Manage Components > Home Page Modification > Edit Settings, select the "Allow users to override their default home page settings" check-box, and click on "Apply Settings". Did this help?
Yes it works.

but i want read only user with customised Dashboard access.


Additionally I've restarted Nagios server & Nagios, repaired database but still not worked. Please help.

Re: Dashboard deployment for new user Nagios XI

Posted: Thu Mar 14, 2019 9:14 am
by lmiltchev
You deployed the "VMS : Dashboard" to the "testuser"
example01.PNG
and expect numbers of hosts/services in the "Link" servicegroup to match, however you are looking at the "Home Dashboard" of the "testuser", NOT at the "VMS : Dashboard"...
example02.PNG
If testuser were added as a monitoring contact to let's say 22 hosts, he/she would be able to see 22 hosts on the Home Dashboard under "Host Status Summary". However, under the "VMS : Dashboard", testuser should see less number of hosts (as the results are filtered based on the servicegroup objects).

Is "testuser" added as a monitoring contact to ALL 13 hosts that show up under the "Link" servicegroup? What are the numbers on the "VMS : Dashboard" page?

Re: Dashboard deployment for new user Nagios XI

Posted: Mon Mar 25, 2019 7:20 am
by hoegh
HI @lmiltchev,

I'll check this way & will let you know.