Computing Resource Users Site
-
anatolewilson
- Posts: 1
- Joined: Fri Jul 12, 2024 2:58 am
Computing Resource Users Site
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
Hey @anatolewilsonanatolewilson 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?
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?
-
gwesterman
- Posts: 269
- Joined: Wed Aug 23, 2023 11:29 am
Re: Computing Resource Users Site
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:
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!
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>Let us know if you need anything else.
Thank you!