centos6.5 under smokeping Construction

Source: Internet
Author: User
Tags cairo rrdtool install perl smokeping

Smokeping Construction

Environment: centos6.5

The firewall is off. SELinux Disable

Yum Source: 163,epel

RPM–UVH http://mirrors.neusoft.edu.cn/epel/6/i386/epel-release-6-8.noarch.rpm

Install dependent packages

Yum install libxml2-devel libpng-devel pango pango-devel libart_lgpl libart_lgpl-devel freetype freetype-devel Fontcon Fig Cairo Cairo-devel

Yum-y Install httpd HTTPD-DEVL

Yum-y Install Perl-extutils-makemaker

Yum-y Install perl-cgi

Yum-y Install perl-fcgi

Yum-y Install fping

wget http://search.cpan.org/CPAN/authors/id/D/DS/DSCHWEI/Config-Grammar-1.10.tar.gz


TAR-ZXVF config-grammar-1.10.tar.gz

CD config-grammar-1.10

Perl makefile.pl

Make && make install



Tar zxvf rrdtool-1.4.3.tar.gz

CD rrdtool-1.4.3

./configure--prefix=/usr/local/rrdtool

Make

Make install



Tar zxvf smokeping-2.6.8.tar.gz

CD smokeping-2.6.8

./configure--prefix=/usr/local/smokeping

Make

Make install


Configure Smokeping


Cd/usr/local/smokeping

mkdir {Data,cache,var}

Chown-r Apache.apache cache/var/data/

CP Etc/config.dist Etc/config

CD Htdocs

CP Smokeping.fcgi.dist SMOKEPING.FCGI

cd/var/www/html/

Ln-s/usr/local/smokeping/htdocs/smokeping

cd/usr/local/smokeping/htdocs/

Ln-s/usr/local/smokeping/cache/cache

Ln-s smokeping.fcgi smokeping.cgi

Vim/usr/local/smokeping/etc/config

Cgiurl = http://192.168.32.130/smokeping/smokeping.cgi

binary =/usr/sbin/fping

1. The page supports Chinese


In the configuration file, under Presentation * * *, add

CharSet = Utf-8


2.RRD Images Support Chinese


Yum-y Install Wqy-zenhei-fonts.noarch


Modify the configuration file/opt/smokeping-2.6.9/lib/smokeping/graphs.pm, insert the phrase '--font title:20: ' Wenquanyi Zen Hei Mono ',


+ Zhoufujin

menu = Zhoufujin

title = Zhoufujin

Host = 192.168.32.130


Vim/usr/local/smokeping/bin/smokeping

Use Lib Qw (/usr/local/rrdtool/lib/perl/5.10.1)


chmod 600/usr/local/smokeping/etc/smokeping_secrets.dist


Vim/etc/httpd/conf/httpd.conf

Options Indexes followsymlinks execcgi

AddHandler Cgi-script. CGI

Start the httpd service

/ETC/INIT.D/HTTPD start

Chkconfig httpd on

/usr/local/smokeping/bin/smokeping--config=/usr/local/smokeping/etc/config

Access

http://192.168.32.130/smokeping/smokeping.cgi


Note that every time you add a host, you kill the smokeping process. Reboot again


This article from "Do not abandon!" Do not give up "blog, be sure to keep this source http://6437769.blog.51cto.com/6427769/1632215

centos6.5 under smokeping Construction

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.