SmartPing 安装配置使用
背景
监控ppoe客户端是否在线
安装
官网地址:http://smartping.org/
yum -y install lrzsz #拖动文件到Xshell 上传文件#
tar xf smartping-v0.8.0.tar.gz #解压文件#
SmartPing就这样安装完了,端口是8899
配置
http://ip:8899?然后点击系统配置
可以在web页面直接进行配置,也可以在config文件直接编辑,编辑之后保存文件 并 ./control restart 重启服务器即可
vi config.json
- {
- "Ver": "0.8.0",
- "Port": 8899,
- "Name": "本机",
- "Addr": "127.0.0.1",
- "Mode": {
- "Endpoint": "",
- "LastSuccTime": "",
- "Status": "true",
- "Type": "local"
- },
- "Base": {
- "Archive": 7,
- "Refresh": 1,
- "Timeout": 5
- },
- "Topology": {
- "Tline": "2",
- "Tsound": "/alert.mp3",
- "Tsymbolsize": "65"
- },
- "Alert": {
- "EmailHost": "…………………………",
- "RevcEmailList": "………………",
- "SendEmailAccount": "…………………………",
- "SendEmailPassword": "…………………………"
- },
- "Network": {
- "127.0.0.1": {
- "Name": "本机",
- "Addr": "127.0.0.1",
- "Smartping": true,
- "Ping": [
- "127.0.0.1",
- "………………………………",
- "223.5.5.5"
- ],
- "Topology": [
- {
- "Addr": "223.5.5.5",
- "Name": "阿里DNS",
- "Thdavgdelay": "200",
- "Thdchecksec": "900",
- "Thdloss": "30",
- "Thdoccnum": "3"
- },
- {
- "Addr": "……………………",
- "Name": "……………………",
- "Thdavgdelay": "200",
- "Thdchecksec": "900",
- "Thdloss": "30",
- "Thdoccnum": "3"
- }
- ]
- },
- "223.5.5.5": {
- "Name": "阿里DNS",
- "Addr": "223.5.5.5",
- "Smartping": false,
- "Ping": [],
- "Topology": []
- },
- "58.246.35.182": {
- "Name": "兆程网络",
- "Addr": "58.246.35.182",
- "Smartping": false,
- "Ping": [],
- "Topology": []
- }
- },
- "Chinamap": {
- "上海": {
- "cmcc": [
- "117.184.42.114"
- ],
- "ctcc": [
- "180.163.15.160"
- ],
- "cucc": [
- "223.167.104.117"
- ]
- },
- "云南": {
- "cmcc": [
- "183.224.236.156"
- ],
- "ctcc": [
- "116.55.99.129"
- ],
- "cucc": [
- "221.3.207.78"
- ]
- },
- "内蒙古": {
- "cmcc": [
- "111.56.43.26"
- ],
- "ctcc": [],
- "cucc": [
- "116.112.10.10"
- ]
- },
- "北京": {
- "cmcc": [
- "111.13.217.125"
- ],
- "ctcc": [
- "120.92.180.135"
- ],
- "cucc": [
- "111.207.189.5"
- ]
- },
- "台湾": {
- "cmcc": [],
- "ctcc": [
- "168.95.1.1 ",
- "168.95.192.1",
- "168.95.192.2"
- ],
- "cucc": []
- },
- "吉林": {
- "cmcc": [
- "219.149.194.55"
- ],
- "ctcc": [
- "219.149.194.55"
- ],
- "cucc": [
- "139.209.90.60"
- ]
- },
- "四川": {
- "cmcc": [
- "183.221.253.42"
- ],
- "ctcc": [
- "125.71.204.74"
- ],
- "cucc": [
- "119.6.197.206"
- ]
- },
- "天津": {
- "cmcc": [],
- "ctcc": [
- "219.150.32.132"
- ],
- "cucc": [
- "202.99.104.68"
- ]
- },
- "宁夏": {
- "cmcc": [
- "120.253.6.92"
- ],
- "ctcc": [
- "202.100.96.68"
- ],
- "cucc": [
- "220.200.148.194"
- ]
- },
- "安徽": {
- "cmcc": [
- "211.138.180.2"
- ],
- "ctcc": [
- "61.132.163.68"
- ],
- "cucc": []
- },
- "山东": {
- "cmcc": [
- "111.14.216.66"
- ],
- "ctcc": [
- "222.173.55.210"
- ],
- "cucc": [
- "60.216.20.189"
- ]
- },
- "山西": {
- "cmcc": [
- "111.53.153.78"
- ],
- "ctcc": [
- "59.49.42.135"
- ],
- "cucc": [
- "60.222.40.21"
- ]
- },
- "广东": {
- "cmcc": [
- "120.236.14.140"
- ],
- "ctcc": [
- "218.17.216.171"
- ],
- "cucc": [
- "58.252.2.194"
- ]
- },
- "广西": {
- "cmcc": [
- "111.59.168.3"
- ],
- "ctcc": [
- "222.83.136.138"
- ],
- "cucc": [
- "121.31.113.130"
- ]
- },
- "新疆": {
- "cmcc": [
- "221.181.53.4"
- ],
- "ctcc": [
- "219.151.36.46"
- ],
- "cucc": [
- "60.13.189.118"
- ]
- },
- "江苏": {
- "cmcc": [
- "58.240.74.98"
- ],
- "ctcc": [
- "49.65.121.176"
- ],
- "cucc": [
- "119.6.6.6"
- ]
- },
- "江西": {
- "cmcc": [],
- "ctcc": [
- "202.101.224.69"
- ],
- "cucc": [
- "220.248.192.13"
- ]
- },
- "河北": {
- "cmcc": [
- "111.63.2.147"
- ],
- "ctcc": [
- "222.222.49.242"
- ],
- "cucc": [
- "202.99.166.4"
- ]
- },
- "河南": {
- "cmcc": [
- "211.142.101.66"
- ],
- "ctcc": [
- "219.150.188.237"
- ],
- "cucc": [
- "61.136.70.164"
- ]
- },
- "浙江": {
- "cmcc": [
- "183.246.69.139"
- ],
- "ctcc": [
- "115.236.169.86"
- ],
- "cucc": [
- "60.12.214.156"
- ]
- },
- "海南": {
- "cmcc": [
- "111.44.132.67"
- ],
- "ctcc": [
- "218.77.140.213"
- ],
- "cucc": [
- "150.255.228.12"
- ]
- },
- "湖北": {
- "cmcc": [
- "120.202.66.111"
- ],
- "ctcc": [
- "111.175.242.178"
- ],
- "cucc": [
- "219.140.62.34"
- ]
- },
- "湖南": {
- "cmcc": [],
- "ctcc": [
- "222.246.129.80"
- ],
- "cucc": []
- },
- "澳门": {
- "cmcc": [
- "202.175.3.3"
- ],
- "ctcc": [
- "202.175.3.3",
- "202.175.3.8"
- ],
- "cucc": []
- },
- "甘肃": {
- "cmcc": [
- "218.203.160.194",
- "218.203.160.195"
- ],
- "ctcc": [
- "60.165.176.139"
- ],
- "cucc": [
- "115.85.246.62"
- ]
- },
- "福建": {
- "cmcc": [],
- "ctcc": [
- "218.85.152.99"
- ],
- "cucc": []
- },
- "西藏": {
- "cmcc": [
- "111.11.192.34"
- ],
- "ctcc": [
- "219.151.35.99"
- ],
- "cucc": [
- "221.13.74.148"
- ]
- },
- "贵州": {
- "cmcc": [
- "117.187.11.25"
- ],
- "ctcc": [
- "222.85.151.87"
- ],
- "cucc": [
- "111.85.152.144"
- ]
- },
- "辽宁": {
- "cmcc": [
- "223.100.1.79"
- ],
- "ctcc": [
- "59.46.77.186"
- ],
- "cucc": [
- "113.232.54.154"
- ]
- },
- "重庆": {
- "cmcc": [
- "218.201.4.3"
- ],
- "ctcc": [
- "61.128.192.68"
- ],
- "cucc": [
- "221.5.203.98"
- ]
- },
- "陕西": {
- "cmcc": [
- "218.200.6.139"
- ],
- "ctcc": [
- "61.185.14.232"
- ],
- "cucc": [
- "221.11.20.98"
- ]
- },
- "青海": {
- "cmcc": [
- "111.12.185.118"
- ],
- "ctcc": [
- "202.100.128.68"
- ],
- "cucc": [
- "221.207.21.53"
- ]
- },
- "香港": {
- "cmcc": [
- "203.80.96.10"
- ],
- "ctcc": [
- "14.199.252.50"
- ],
- "cucc": [
- "202.181.202.140"
- ]
- },
- "黑龙江": {
- "cmcc": [
- "218.203.11.103"
- ],
- "ctcc": [
- "219.150.32.132"
- ],
- "cucc": [
- "221.212.18.170"
- ]
- }
- },
- "Toollimit": 0,
- "Authiplist": "",
- "Password": "smartping"
- }
|