Ganglia offline Installation notes

Source: Internet
Author: User

Dependent resources: http://oss.oetiker.ch/rrdtool/pub/libs/
Refer:
Http://thinkingquest.blog.163.com/blog/static/203677175201261310456643/
Http://blog.csdn.net/osoon/article/details/5526455
Http://blog.csdn.net/dumeifang/article/details/2963223
Http://www.lingzhong.cn/tech/18834.htm
1、install pixmanpixman-0.10.0.tar.gz
./Configure
Make
Make install2、install cairocairo-1.6.4.tar.gz
./Configure

Configure: error: pixman> = 0.10.0 is required
Export PKG_CONFIG_PATH =/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/lib/pkgconfig

./Configure
Make
Make install38.0 install pangopango-1.17.5.tar.gz
./Configure
Make
Make install4、install rrdtoolrrdtool-1.4.8.tar.gz
./Configure -- prefix =/usr/local/rrdtool-1.4.8 -- datarootdir =/home/rrdtool
Make
Make install5gz install gangliaganglia-3.6.0.tar.gz

/Usr/bin/ld: cannot find-lrrd
Find/-name librrd. so
// Usr/local/rrdtool-1.4.8/lib/librrd. so
Cd/usr/lib
Ln-s/usr/local/rrdtool-1.4.8/lib/librrd. so librrd. so
Gcc-lrrd -- verbose

./Configure -- prefix =/usr/local/ganglia -- datarootdir =/home/ganglia -- with-librrd =/usr/local/rrdtool-1.4.8 -- with-gmetad
Make
Make install6, run./gmetad-d 3
Error while loading shared libraries: librrd. so.4
Ln-s/usr/local/rrdtool-1.4.8/lib/librrd. so.4/usr/local/lib/librrd. so.4

Going to run as user nobody Please make sure that/var/lib/ganglia/rrds exists: No such file or directory
Mkdir-p/var/lib/ganglia/rrds
Chown nobody. nobody/var/lib/ganglia/rrds7, start cp gmetad/gmetad. init/etc/init. d/gmetad
Chkconfig -- add gmetad
Chkconfig -- list gmetad

Cp gmond/gmond. init/etc/init. d/gmond
Chkconfig -- add gmond
Chkconfig -- list gmond8, install nginx + php1) install nginx
Nginx-1.4.7.tar.gz
./Configure -- prefix =/usr/local/nginx \
-- Pid-path =/var/run/nginx. pid \
-- Error-log-path =/home/logs/nginx/error. log \
-- Http-log-path =/home/logs/nginx/access. log \
With-http_stub_status_module
Make
Make install

Cp nginx. init/etc/init. d/nginx
Chmod + x/etc/init. d/nginx
Chkconfig nginx on
Chkconfig -- list nginx

/Etc/init. d/nginx
/Bin/sh ^ M: bad interpreter: No such file or directory
Solution
: Set ff or: set fileformat
The following information is displayed:
Fileformat = dos or fileformat = unix
Use the following command to modify the file format
: Set ff = unix or: set fileformat = unix
: Wq (Disk logout)
Finally, execute the file.

Statistics
Location/nginx_status {
Stub_status on;
Access_log off;
# Allow SOME. IP. ADD. RESS;
# Deny all;
}

2) install php
./Configure -- prefix =/usr/local/php \
-- With-mysql =/usr/local/mysql \ # Set the installation path of mysql
-- Enable-fastcgi \ # enable fastcgi support
-- Enable-debug # debugging supported
Make
Make install

3) Interconnection
Location ~ [^/] \. Php (/| $ ){
Fastcgi_split_path_info ^ (. +? \. Php) (/. *) $;
If (! -F $ document_root $ fastcgi_script_name ){
Return 404;
}


Fastcgi_pass 127.0.0.1: 9000;
Fastcgi_index index. php;
Include fastcgi_params;
}9、install gwebganglia-web-3.5.12.tar.gz

Tar-zxvf ganglia-web-3.5.12.tar.gz
Cd ganglia-web-3.5.12/
Vim MakeFile
Modify GDESTDIR =/var/www/html/ganglia
Modify APACHE_USER = apache
X save
Make install
If no error is reported, the installation is successful.
Cd/var/www/html/ganglia
Vim conf_default.php
Modify rrdtool path: $ conf ['rdtool '] = "/usr/local/rrdtool-1.4.8/bin/rrdtool"

Access: http: // server-ip/ganglia
Possible permission issues. solution:
Cd/var/www/html
Chown apache: apache ganglia/10, gstatcd/usr/bin
Ln-s/usr/local/ganglia/bin/gstat./gstat
Gstat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.