1、安装
yum -y install epel-release
yum -y install smokeping
2、修改配置文件
vim /etc/httpd/conf.d/smokeping.conf
<Directory "/usr/share/smokeping" >
Require all granted # 设置全部授权
# Require ip 2.5.6.8
# Require host example.org
</Directory>
<Directory "/var/lib/smokeping" >
Require all granted # 设置全部授权
# Require ip 2.5.6.8
# Require host example.org
</Directory>
--------------------------------------------
vim /etc/smokeping/config
# 注释掉从服务器
#*** Slaves ***
#secrets=/etc/smokeping/smokeping_secrets
#+boomer
#display_name=boomer
#color=0000ff
#
#+slave2
#display_name=another
#color=00ff00
3、安装中文
yum install wqy-zenhei-fonts.noarch
4、再次修改配置
vim /etc/smokeping/config
*** Presentation ***
charset = UTF-8 # 加入中文
template = /etc/smokeping/basepage.html
+ charts
# 在最后面加入一个配置
@include net_ping
--------------------------------------------
vim /etc/smokeping/net_ping
# 加入
+ net_ping
menu = 网络监控
title = 网络监控
++ xielong_node
menu = 协隆
title = 协隆网络状态
host = 192.168.1.71
5、启动
systemctl start httpd && systemctl start smokeping
6、访问
http://192.168.1.116/smokeping/sm.cgi?