#Hello guys I m currently looking at the
1 messages · Page 1 of 1 (latest)
hi @quick nimbus according to https://docs.netapp.com/us-en/ontap-automation/reference/api_reference.html#access-the-ontap-api-documentation-page that REST endpoint has existed since 9.7. It should work, let us know if it doesn't work for your version of ONTAP
Hmm ok @sharp vortex, how would I then enable the rest collector on NAbox? I don't seem to get it working
I'm trying to get the nfs clients dashboard working
gotcha, see if these instructions work for you to enable the nfs_clients.yaml template https://github.com/NetApp/harvest/discussions/1284
Ah yes, they worked. Thanks!!
@sharp vortex Hi Chris, some of my ONTAP version are 9.7, 9.8 and 9.10. In order to get nfs-client metrics, I added HTTP for user harvest-harvest2 in ONTAP with certificate authentication but harvest log shows "User is not authorized." after harvest is restarted. Does HTTP for REST only supports password authentication?
@sturdy needle Your error is related to authorization. Could you check if you have certificate authentication enabled for this user application http? I have attached screenshot from both system manager and cli.
@slim breach Hi Rahul, I have certificate authentication enabled for the user application HTTP. But error “User is not authorized.” in harvest log.
@slim breach For Zapi and ZapiPerf, it’s working fine.
@sturdy needle Could you verify api level permissions for this role? Attached screenshot.
@slim breach Hi Rahul, same permission setting for harvest2-role and ONTAP version is 9.10.1.
okay. How about this command vserver services web access show -role harvest2-role
I am able to recreate this error after deleting web access rest from this role
Let's try to create rest access point using below command and it should work then
vserver services web access create -vserver umeng-aff300-01-02 -name rest -role harvest2-role
@slim breach Hi Rahul, thanks for your prompt response. I tried to create web access REST and it works now.👍🏻
awesome! We'll also add these steps in our docs
my /opt/harvest2-conf/harvest.yml
Defaults:
collectors:
- Zapi
- ZapiPerf
- Rest
my /opt/harvest2-conf/conf/rest/custom.yaml
objects:
NFSClients: nfs_clients.yaml
but it didn´t work and i cant see the nfs client dashboard
@steel gate What is the harvest version? When you say that you cann't see nfs client dashboard, Does it mean an empty dashboard or dashboard doesn't exist in grafana?
hello rahul, dashboard exits, but i have no data.
okay. Could you share harvest logs once you have restarted the pollers after making changes in custom.yaml
Also is it the first time, you are trying Rest collector? I want to rule out any permission issues. We'll get to know that from logs.
yes, first time with rest collector. please see log-file after harvest restart.
ok i see the same problem as faced by @sturdy needle in your logs
[36mnabox-harvest2 |[0m 2022-11-29T08:19:46Z WRN ./poller.go:684 > init collector-object error="6691623: User is not authorized." Poller=dcfast1 collector=Rest object=NFSClients