Grafana v6.5.3 Harvest 1.6
Thanks, @vachagan_gratian I was able to sort out the issue by following steps
1. Copy python module
Unzip netapp-manageability-sdk-9.7.zip (/tmp/netapp-manageability-sdk-9.7/lib/python/NetApp)
Copy these files NaElement.py NaErrno.py NaServer.py to /opt/netapp-harvest/lib
2. Update poller
# csgxxxxxxxx
[csgxxxxxx]
hostname = XXX.XX.XX.XX
group = XXX_cDot
template = default,extension.conf
3. Ignore SSL validation # due to error ZAPI request failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618)
vi /opt/netapp-harvest/extension/snapmirror_replications.py
Add following red line after import logging & before def main();
import logging
import ssl
try:
_create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
# Legacy Python that doesn't verify HTTPS certificates by default
pass
else:
# Handle target environment that doesn't support HTTPS verification
ssl._create_default_https_context = _create_unverified_https_context
def main():
4. Add privileges # ZAPI request failed: Insufficient privileges: user 'netapp-harvest' does not have read access to this resource
Add snapmirror show command to role
security login role create -role netapp-harvest-role -access readonly -cmddirname "snapmirror show"
5. Change all "datasource": null, from Snapmirror Replication Settings - JSON Model
${DS_GRAPHITE} to "datasource": null
Then Refresh Browser
