Page 1 of 1

Computing Resource Users Site

Posted: Fri Jul 12, 2024 3:06 am
by anatolewilson
I have a about 25 servers that Nagios is monitoring. I would like users to see the resources being used on those servers particularly CPU & RAM usage so the users can see the loads on those systems. I don't want to create accounts so that users have to log into Nagios to view server resources. Is there a way that i can build a dashboard for these systems and set it up as a separate site that users can browse to if they need to check server usage, without having to login?

Re: Computing Resource Users Site

Posted: Fri Jul 12, 2024 9:40 am
by sgardil
anatolewilson wrote: Fri Jul 12, 2024 3:06 am I have a about 25 servers that Nagios is monitoring. I would like users to see the resources being used on those servers particularly CPU & RAM usage so the users can see the loads on those systems. I don't want to create accounts so that users have to log into Nagios to view server resources. Is there a way that i can build a dashboard for these systems and set it up as a separate site that users can browse to if they need to check server usage, without having to login?
Hey @anatolewilson

I don't think we have anything to do this as is so you would likely have to build a web server to hos the dashboard you make. I would take a look at our api to see if you can grab the data you are looking for first to see if you can grab the data you want to display. Do you have xi or just base nagios?

Re: Computing Resource Users Site

Posted: Fri Jul 12, 2024 9:45 am
by gwesterman
Hi @anatolewilson,

There are a few steps you need to go through to accomplish this:

- As the admin user:
1) Navigate to Admin -> System Config -> System Settings
2) Under the Security tab, check both frame restriction boxes.
3) Under the Backward Compatibility tab, check the "Allow Insecure Logins" box.
4) Create the new user / users with read-only permissions (or perhaps allow users to insecurely access the nagiosadmin account / dashboard - up to you).
5) Navigate to Manage Users. For the user(s) you want the dashboard to be visible for without logging in, edit their settings, checking the box that says "Enable insecure login for this user". Generate a new insecure ticket and copy it.

- As the dashboard user (can be nagiosadmin if you choose):
1) Login.
2) Create your dashboard(s) that you want visible.
3) Get the dashboard's permalink (i.e. open it in a new tab and get the link - all you really need is the id in the url).
4) Logout.

- Navigate to:

Code: Select all

http://server_name/nagiosxi/dashboards/dashboard.php?id=<dashboard id from url>&username=<dashboard user's username>&ticket=<ticket number from user settings>
For additional reference (and in case I missed anything), this is the post I used to get this all working.

Let us know if you need anything else.

Thank you!