READ ONLY USER WITH API ACCESS

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mohan23
Posts: 118
Joined: Tue Oct 03, 2017 7:11 am

READ ONLY USER WITH API ACCESS

Post by mohan23 »

Hi Team,

We have created read only user and provided API access to the read only user and were trying to get users list from nagios server using API Key of read only user like below



http://hostname/nagiosxi/api/v1/system/ ... 8QpUFTY5vD

We are getting error and not able to pull data using API Key of read only user and only admin user is able to pull all the data using API Key of admin user


Can some one help me on how to pull data using API key of read only user

Regards,
Mohan
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: READ ONLY USER WITH API ACCESS

Post by lmiltchev »

What is the data that this user is not able to access? Please, show us an example command along with the output of it (error messages, etc.). Also, show the security settings of this user.

Admin > Manage Users > <ro user> > Edit
Be sure to check out our Knowledgebase for helpful articles and solutions!
mohan23
Posts: 118
Joined: Tue Oct 03, 2017 7:11 am

Re: READ ONLY USER WITH API ACCESS

Post by mohan23 »

Hi,

Attached are the screenshots that shows read only user permissions and error screenshot when we try to pull users who are added in nagios using API Key of read only user and third screenshot shows admin user is able to pull same users list.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: READ ONLY USER WITH API ACCESS

Post by scottwilkerson »

From the top of the Help page
Help -> REST API Docs -> System Reference

The system section of the API allows management of the system, services, and backend. This API section is admin only.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mohan23
Posts: 118
Joined: Tue Oct 03, 2017 7:11 am

Re: READ ONLY USER WITH API ACCESS

Post by mohan23 »

We are trying to pull performance data from nagios using REST API, is there any way that read only user can pull ? As it was mentioned in earlier , only admin can handle API section.

Also can you provide me using admin how we can pull performance data using REST API using custom time period( from a particular date to some other particular date).
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: READ ONLY USER WITH API ACCESS

Post by scottwilkerson »

Performance data would be available to that user, that is under Help -> Objects -> objects/rrdexport
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked