Set up smokeping in centos6.5

Source: Internet
Author: User
Tags rrdtool install perl smokeping
Set up the smokeping environment: disable the centos6.5 firewall. Selinux disabled yum source: 163, epelrpm & ndash; Uvhhttp: // disabled

Build smokeping

Environment: centos6.5

Disable the firewall. Selinux disabled

Yum source: 163, epel

Rpm-Uvh http://mirrors.neusoft.edu.cn/epel/6/i386/epel-release-6-8.noarch.rpm

Install dependency packages

Yum install libxml2-devel libpng-devel pango-devel libart_lgpl libart_lgpl-devel freetype-devel fontconfig cairo-devel

Yum-y install 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

Ln-s smokeping. fcgi smokeping. cgi

Vim/usr/local/smokeping/etc/config

Cgiurl = http: // 192.168.32.130/smokeping. cgi

Binary =/usr/sbin/fping

1. the page supports Chinese characters

 

Under the ** Presentation ** configuration file, add

Charset = utf-8

 

2. rrd images support Chinese characters

 

Yum-y install wqy-zenhei-fonts.noarch

 

Modify the configuration file/opt/smokeping-2.6.9/lib/Smokeping/Graphs. pm and insert this sentence '-- font TITLE: 20: "WenQuanYi Zen Hei Mono "',

 

+ Zhoufujin

Menu = zhoufujiin

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. cgi

 

Note that the smokeping process must be killed every time a host is added. Restart

Related Article

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.