Subscribe
Accepted Solution

harvest issue

recently insttaled  harvest  based on the document  toolchest. however during importing dashbaord it fails

i get following error, seems like some permission error.

 

grafana is configured on port 443 wth self signef  certificcaite. not sure which permission is causing the issue.

 

appericate your support, thanks

 

 /opt/netapp-harvest/netapp-manager -import
[OK     ] Will import dashboards to [https://localhost:443]
[OK     ] Dashboard directory is [/opt/netapp-harvest/grafana]
[ERROR  ] Failed to import dashboard [db_netapp-dashboard-cluster-group.json] due to error: 403 Forbidden
[ERROR  ] -Response was :{"message":"Permission denied"}
[ERROR  ] Exiting due to fatal error.

Re: harvest issue

Hi @babukish11

 

I don't think this is SSL related but rather an invalid API key.  I would generate another API key and paste that new value (including any '=' symbols at the end) into the netapp-harvest.conf file.  Then try the import again.

 

Cheers,
Chris Madden

Solution Architect - 3rd Platform - Systems Engineering NetApp EMEA (and author of Harvest)

Blog: It all begins with data

 

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO or both!

 

Re: harvest issue

thanks for reply,

here is the key I got from grafana, even I delete and create it just create the same key

however I tired useing fist one, then it does not complain the key, then used second one( pu it in the quote) . it does not like the key.

 

even I tried to change to http, still no luck

 

#grafana_api_key = eyJrIjoiVzNwcFFLdWJXUzM0YUpUaUFKZWh2c01qN29MNU9rNXAiLCJuIjoibmV0YXBwLWhhcnZlc3QiLCJpZCI6MX0=
grafana_api_key = 'eyJrIjoiUjA0ZGdta29rZzdzNTlFMDFIQzlvQUVBcWhra3lQNEsiLCJuIjoibmV0YXBwLWhhcnZlc3QiLCJpZCI6MX0='

 

 

 /opt/netapp-harvest/netapp-manager -import
[OK     ] Will import dashboards to [http://localhost:3000]
[OK     ] Dashboard directory is [/opt/netapp-harvest/grafana]
[ERROR  ] Failed to import dashboard [db_netapp-dashboard-cluster-group.json] due to error: 403 Forbidden
[ERROR  ] -Response was :{"message":"Permission denied"}
[ERROR  ] Exiting due to fatal error.
-----
 /opt/netapp-harvest/netapp-manager -import
[OK     ] Will import dashboards to [http://localhost:3000]
[OK     ] Dashboard directory is [/opt/netapp-harvest/grafana]
[ERROR  ] Failed to import dashboard [db_netapp-dashboard-cluster-group.json] due to error: 401 Unauthorized
[ERROR  ] -Response was :{"message":"Invalid API key"}
[ERROR  ] Exiting due to fatal error.

 

 

thanks

Re: harvest issue

Hi @babukish11

 

 

The netapp-harvest.conf file format is always key = value.  The key and value are taken exactly as they are, so no quotes, unless you want your password to have a quote in it!  The commented out entry looks like a 'normal' entry that could work.

 

When you created the API key did you set the role to 'editor' or greater in the Grafana API Key add GUI?

 

Cheers,
Chris Madden

Solution Architect - 3rd Platform - Systems Engineering NetApp EMEA (and author of Harvest)

Blog: It all begins with data

 

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO or both!

 

 

Re: harvest issue

Thank you, that worked