Page 1 of 1

part 2 - how to make dashboard visible to non-Nagios users

Posted: Wed Feb 08, 2017 3:26 pm
by caterpillartce
Hello,

This is a sequel to my previous post " how to make dashboard visible to non-Nagios users".

Now my question is - is there a way to hide the URL and still display the dashboard to users? We have concern for users to see the Nagios URL and be able to modify it to go to the homepage where they can see all hosts and services. Though I locked the auto-login account to read only, if I had a choice, I would rather for them to see just the dashboard.

Thanks!

Jessica Zhang

Re: part 2 - how to make dashboard visible to non-Nagios use

Posted: Wed Feb 08, 2017 3:35 pm
by rkennedy
Built into XI there isn't a way to 'mask' the URL. I went ahead and filed a feature request for this -

Code: Select all

NEW TASK ID 10987 created - Nagios XI Feature Request: Add user option for access to 'only Dashboard' or 'only Reports'
I'll tell you what I did for a job one time though in the past, which you may be able to run with. We had a Firewall which had limited access to x subnet and x users, but management wanted access to reports from anywhere.

There was a 'reports' section that everyone was supposed to have access to, but nothing else. This wasn't built into the application, though. (so, similar to XI)

What I did, was used HA proxy as a reverse proxy, to serve the content. I then added in specific regex filters for the locations to allow / deny at this layer, so that anyone using the proxy was restricted on what else they could view, and it essentially 'locked' them in to this section.

Re: part 2 - how to make dashboard visible to non-Nagios use

Posted: Thu Feb 09, 2017 2:42 pm
by caterpillartce
Thanks for the reply. Unfortunately I don't have access to proxy or firewall and the users who wanted to see the dashboard could come from all over the world (i.e. not feasible to restrict per subnet).

I have the following thoughts and would appreciate all the help:

1) can the URL for dashboard be hidden?
2) I see there is schedule function where you can schedule for the dashboard to be emailed to you in jpeg or pdf format. however I tried both formats and the attachment in the email can not be opened. Is there any trick to make this work?
3)is there a way to modify the dashboard to display host alias instead of host names? I am using "Host group status overview" on the dashboard.
4) is there a way to use report to display the same information and schedule for it to run hourly? I see the smallest schedule interval is daily.

Thanks!

Re: part 2 - how to make dashboard visible to non-Nagios use

Posted: Thu Feb 09, 2017 3:34 pm
by caterpillartce
5) is there a way to provide information of the database (table/view) needed by that dashboard to Tableau to create a Tableau report instead?

Thanks

Re: part 2 - how to make dashboard visible to non-Nagios use

Posted: Thu Feb 09, 2017 6:16 pm
by rkennedy
caterpillartce wrote:1) can the URL for dashboard be hidden?
Within XI, it cannot. You could probably use a URL hider of some sort, or hide it within frames some how.
2) I see there is schedule function where you can schedule for the dashboard to be emailed to you in jpeg or pdf format. however I tried both formats and the attachment in the email can not be opened. Is there any trick to make this work?
That should be working - could you create a new forum post for this issue and provide a bit more details about it and what you receive?
3)is there a way to modify the dashboard to display host alias instead of host names? I am using "Host group status overview" on the dashboard.
Can you post a screenshot of this? Off the top of my head, I do not believe so, but there is a feature request for the ability to edit a dashlet -

Code: Select all

7139	Nagios XI Feature Request: Add function to edit current dashlets
4) is there a way to use report to display the same information and schedule for it to run hourly? I see the smallest schedule interval is daily.
At this time, I don't believe so. I filed a feature request for it though -

Code: Select all

NEW TASK ID 11006 created - Nagios XI Feature Request: Add ability to schedule reports hourly
One thing to note, this could become pretty heavy on the system depending on how much data you're attempting to sort through, and what all is included in the report.

Re: part 2 - how to make dashboard visible to non-Nagios use

Posted: Thu Feb 09, 2017 6:17 pm
by rkennedy
caterpillartce wrote:5) is there a way to provide information of the database (table/view) needed by that dashboard to Tableau to create a Tableau report instead?

Thanks
Are you looking for a custom report? Bit confused on this one. If you can provide any more information / screenshots that'll help!

Re: part 2 - how to make dashboard visible to non-Nagios use

Posted: Fri Feb 10, 2017 4:28 pm
by caterpillartce
rkennedy wrote:
caterpillartce wrote:5) is there a way to provide information of the database (table/view) needed by that dashboard to Tableau to create a Tableau report instead?

Thanks
Are you looking for a custom report? Bit confused on this one. If you can provide any more information / screenshots that'll help!
No, I am trying to use Tableau to connect to the DB of Nagios and get the data behind the dashboard. Then Tableau can display the data however way we want. Attached please find the screenshot in Tableau where it shows what servers it can connect to and sample information it is asking for. I imagine it also needs table / view name after the initial DB information.

Thanks!

Re: part 2 - how to make dashboard visible to non-Nagios use

Posted: Mon Feb 13, 2017 10:36 am
by rkennedy
The data is not only stored in the database, but also the RRD files. We cannot support third party applications accessing it at a database level.

I'm not sure what you're after exactly, but the RRD data may have it. This would be located at /usr/local/nagios/share/perfdata/.

Re: part 2 - how to make dashboard visible to non-Nagios use

Posted: Wed Feb 15, 2017 3:12 pm
by rseiwert
what would be the modern way would be an odata interface to stream the data to analytics. Don't think this exists for Nagios XI.

Re: part 2 - how to make dashboard visible to non-Nagios use

Posted: Wed Feb 15, 2017 5:58 pm
by ssax
You are correct, it doesn't exist for XI at this point in time. Just a note, you can write your own API endpoints and also query RRD data through the API, please see here on your server:

Code: Select all

http://YOURXISERVER/nagiosxi/help/api-object-reference.php#objects-rrdexport
http://YOURXISERVER/nagiosxi/help/custom-api-endpoints.php
Those are the only options we have currently.

Let us know if you have any questions.


Thank you