Hello Frank
I have been trying to get the pcp-graphite script working with graphite.
My problem is with the graphite side, so please excuse me for posting here.
I have followed your instructions at
https://web.elastic.org/~fche/blog3/archive/2014/04/13/pcp-and-graphite
My laptop is running Fedora 20 rather than 19.
When I navigate to http://localhost/graphite/ , all I see is an index page.
Can you help, please ?
RPMS
=====
$ rpm -qa | grep -P "graphite|carbon|whisper"
graphite-web-0.9.12-5.fc20.noarch
graphite2-1.2.2-4.fc20.x86_64
python-carbon-0.9.12-3.fc20.noarch
graphite2-1.2.2-4.fc20.i686
python-whisper-0.9.12-1.fc20.noarch
HTTPD Conf
=========
$ cat /etc/httpd/conf.d/graphite-web.conf
Alias /graphite "/usr/share/graphite/webapp"
WSGIScriptAlias /graphite /usr/share/graphite/graphite-web.wsgi
WSGIImportScript /usr/share/graphite/graphite-web.wsgi process-group=%{GLOBAL}
application-group=%{GLOBAL}
<Directory "/usr/share/graphite/webapp">
Options All
AllowOverride All
Require all granted
</Directory>
$ ls -la /usr/share/graphite/
total 24
drwxr-xr-x 3 root root 4096 Jun 21 11:12 .
drwxr-xr-x. 264 root root 12288 Jun 21 11:14 ..
-rw-r--r-- 1 root root 591 Oct 2 2013 graphite-web.wsgi
drwxr-xr-x 3 root root 4096 Jun 21 11:56 webapp
Running Processes
=================
carbon 23237 1 0 17:11 ? 00:00:00 /usr/bin/python
/usr/bin/carbon-cache --config=/etc/carbon/carbon.conf
--pidfile=/var/run/carbon-cache.pid --logdir=/var/log/carbon start
chandana 23563 23174 0 17:23 pts/0 00:00:00 python
workspace/pcpfans/src/pcp/graphite/pcp-graphite.py kernel
When I start apache, I get a bunch of errors, which I assume are related
to the graphite config:
[Sat Jun 28 02:31:38.078523 2014] [:error] [pid 24894] mod_wsgi (pid=24894):
Target WSGI script '/usr/share/graphite/graphite-web.wsgi' cannot be loaded as
Python module.
[Sat Jun 28 02:31:38.078523 2014] [:error] [pid 24894] mod_wsgi (pid=24894):
Target WSGI script '/usr/share/graphite/graphite-web.wsgi' cannot be loaded as
Python module.
[Sat Jun 28 02:31:38.078569 2014] [:error] [pid 24894] mod_wsgi (pid=24894):
Exception occurred processing WSGI script
'/usr/share/graphite/graphite-web.wsgi'.
[Sat Jun 28 02:31:38.078569 2014] [:error] [pid 24894] mod_wsgi (pid=24894):
Exception occurred processing WSGI script
'/usr/share/graphite/graphite-web.wsgi'.
[Sat Jun 28 02:31:38.078598 2014] [:error] [pid 24894] Traceback (most recent
call last):
[Sat Jun 28 02:31:38.078598 2014] [:error] [pid 24894] Traceback (most recent
call last):
[Sat Jun 28 02:31:38.078626 2014] [:error] [pid 24894] File
"/usr/share/graphite/graphite-web.wsgi", line 16, in <module>
[Sat Jun 28 02:31:38.078707 2014] [:error] [pid 24894] import
graphite.metrics.search
[Sat Jun 28 02:31:38.078731 2014] [:error] [pid 24894] File
"/usr/lib/python2.7/site-packages/graphite/metrics/search.py", line 6, in
<module>
[Sat Jun 28 02:31:38.078806 2014] [:error] [pid 24894] from
graphite.storage import is_pattern, match_entries
[Sat Jun 28 02:31:38.078829 2014] [:error] [pid 24894] File
"/usr/lib/python2.7/site-packages/graphite/storage.py", line 7, in <module>
[Sat Jun 28 02:31:38.078952 2014] [:error] [pid 24894] from
graphite.remote_storage import RemoteStore
--
Chandana
|