ubuntu 14.04 安装 smokeping
安装smokeping及其依赖包
$ sudo apt-get install smokeping curl libauthen-radius-perl libnet-ldap-perl libnet-dns-perl libio-socket-ssl-perl libnet-telnet-perl libsocket6-perl libio-socket-inet6-perl apache2
配置apache
cd /etc/apache2/conf-available
sudo ln -s ../../smokeping/apache2.conf smokeping.conf
请注意apache配置
$ cd /etc/smokeping
$ cat apache2.conf
ScriptAlias /smokeping/smokeping.cgi /usr/lib/cgi-bin/smokeping.cgi
Alias /smokeping /usr/share/smokeping/www
Directory "/usr/share/smokeping/www">
Options FollowSymLinks
#sudo a2enconf smokeping
#sudo a2enmod cgid
安装:
# apt-get install sendmail
自己的例子!!
配置smokeping,添加监控主机。实现方法是修改
# vi /etc/smokeping/config.d/Targets
*** Targets ***
probe = FPing
menu = Top
title = Network Latency Grapher
remark = Welcome to the SmokePing website of xxx Company. \
Here you will learn all about the latency of our network.
+ Local
menu = Local
title = Local Network
#parents = owner:/Test/James location:/
++ LocalMachine
menu = Local Machine
title = This host
host = localhost
#alerts = someloss
+ Servers
menu = Servers
title = Servers Network
++ Singapore_SL
menu = 新加坡 SL
title = 119.81.58.230
host = 119.81.58.230
++ VPN
menu = VPN
title = 203.69.195.44
host = 203.69.195.44
++ JP_VPN
menu = 日本VPN
title = 日本vpn_161.202.111.135
host = 161.202.111.135