Data Infrastructure Management Software Discussions

Highlighted

NetApp - Harvest install issues

Hi,

Following the install options from: NetApp Grafana, carbon, harvest etc installer <pdf>

 

Everything goes with no issues until i get to:

chmod 755 /etc/init.d/carbon-cache

 

Where i receive the following error:

 


chmod: cannot access â/etc/init.d/carbon-cacheâ: No such file or directory

 

Is that .pdf from NetApp not accurate or something went missing along the lines?

 

Trying to set this up on CentOS 7

 

Thanks!

4 REPLIES 4
Highlighted

Re: NetApp - Harvest install issues

How did you install Graphite? This guide is for Debian based distributions.

 

It looks like graphite isn't fully installed, or the system init files aren't installed.

 

An alternative is to use NAbox, that contains everything

Highlighted

Re: NetApp - Harvest install issues

If i remember correctly the carbon-cache init script is included with the installer, i copied it manually to the /etc/init.d directory.. but i have to look it up for you as it is a while ago i installed it..

 

try finding it with 

find / -name carbon-cache

otherwise you can get it from https://github.com/graphite-project/carbon/blob/master/distro/redhat/init.d/carbon-cache

Highlighted

Re: NetApp - Harvest install issues

Hi Team,

 

I am trying to install Graphite and Graphana for Harvest .. Harvest is installed with no issues ..

 

But Graphite giveing me lot of issue , I guess I not finding right RHEL repo . Any idea best repos for graphite .

 

yum install -y python-devel mod_wsgi pycairo dejavu-sans-fonts gcc git pytz python-memcached nc net-tools lsof unzip

 

Its Lab so I cant register my system to RHEL support .

 

Repy to anwarsa@microland.com

Highlighted

Re: NetApp - Harvest install issues

This is something I recently tested for a customer :

 

# THIS MIGHT BE DIFFERENT FOR AN ACTUAL RHEL
 
# This should work :
yum install -y graphite-web python-carbon
 
Edit /etc/carbon/storage-schemas.conf, put the following content :
 
#==================================================================
# Schema definitions for Whisper files. Entries are scanned in order,
# and first match wins. This file is scanned for changes every 60 seconds.
#
#  [name]
#  pattern = regex
#  retentions = timePerPoint:timeToStore, timePerPoint:timeToStore, ...
 
# Carbon's internal metrics. This entry should match what is specified in
# CARBON_METRIC_PREFIX and CARBON_METRIC_INTERVAL settings
[carbon]
pattern = ^carbon\.
retentions = 60:90d
 
## 
## Dev defaults
##
[netapp.perf.dev]
pattern = ^netapp\.perf\.dev\..*
retentions = 10s:24h, 1m:100d, 15m:395d, 1h:5y
 
[netapp.poller.perf.dev]
pattern = ^netapp\.poller\.perf\.dev\..*
retentions = 10s:24h, 1m:100d, 15m:395d, 1h:5y
 
[netapp.perf7.dev]
pattern = ^netapp\.perf7\.dev\..*
retentions = 10s:24h, 1m:100d, 15m:395d, 1h:5y
 
[netapp.poller.perf7.dev]
pattern = ^netapp\.poller\.perf7\.dev\..*
retentions = 10s:24h, 1m:100d, 15m:395d, 1h:5y
 
## 
## Prod defaults
##
[OPM]
pattern = ^netapp-performance\..*
retentions = 5m:100d, 15m:395d, 1h:5y
 
[OPM Capacity]
pattern = ^netapp-capacity\..*
retentions = 15m:100d, 1d:5y
 
[OPM Capacity Poller]
pattern = ^netapp-poller\..*
retentions = 15m:100d, 1d:5y
 
[netapp.capacity]
pattern = ^netapp\.capacity\.*
retentions = 15m:100d, 1d:5y
 
[netapp.poller.capacity]
pattern = ^netapp\.poller\.capacity\.*
retentions = 15m:100d, 1d:5y
 
[netapp.perf]
pattern = ^netapp\.perf\.*
retentions = 60s:35d, 5m:100d, 15m:395d, 1h:5y
 
[netapp.poller.perf]
pattern = ^netapp\.poller\.perf\.*
retentions = 60s:35d, 5m:100d, 15m:395d, 1h:5y
 
[netapp.perf7]
pattern = ^netapp\.perf7\.*
retentions = 60s:35d, 5m:100d, 15m:395d, 1h:5y
 
[netapp.poller.perf7]
pattern = ^netapp\.poller\.perf7\.*
retentions = 60s:35d, 5m:100d, 15m:395d, 1h:5y
 
##
## Catch all
##
[defaults]
pattern = .*
retentions = 60s:35d, 5m:100d, 15m:395d, 1h:5y
 
#==================================================================
 
Then :
 
systemctl enable carbon-cache
systemctl start carbon-cache
firewall-cmd --permanent --add-service=httpd
firewall-cmd --reload
 
Edit /etc/httpd/conf.d/graphite-web.conf , and make sure that section matches (it defaults to "local" instead of "all granted")
 
       <IfModule mod_authz_core.c>
           # Apache 2.4
           Require all granted
       </IfModule>
 
Run the following command :
 
PYTHONPATH=/usr/share/graphite/webapp django-admin syncdb --settings=graphite.settings
 
You will be asked to create a super user, just accept the defaults, and give it a password
 
Now if you go on http://yourserver/ you should see Graphite web interface
 
Install Grafana
 
systemctl enable grafana-server
systemctl start grafana-server
firewall-cmd --permanent --add-port=3000/tcp
firewall-cmd --reload
 
Now if you go on http://yourserver:3000/ you should see Grafana web interface (admin/admin to log in)
 
Add a Datasource
 
Go in Configurations > Datasources and add a Datasource for Graphite :
 
Name : Graphite Default : YES (important)
Type : Graphite
Version 1.0.x (Important)
 
Leave defaults for the rest
 
Create an API key for Harvest
 
Go to Settings > API Keys
 
Key Name : Harvest
Role : Editor
 
Click Add and save the key somewhere (i.e. eyJrIjoiOHJKaVNYMzVmT3FERkxuOE1KY3NqeXdXM3JMQlBxTWIiLCJuIjoiSGFydmVzdCIsImlkIjoxfQ==)
You cannot get it after you leave that page, you will use it in Harvest install guide.
 
Install dependencies for Harvest
 
yum install -y perl-LWP-Protocol-https perl-XML-Parser perl-JSON
Check out the KB!
Knowledge Base
All Community Forums