【发布时间】:2018-05-02 18:48:47
【问题描述】:
无论我为 x 输入什么,我都会得到错误 /etc/monit/conf.d/network:1:错误:语法错误'x'
这是 /etc/monit/conf.d/network 的完整配置
check network x interface enp2s0
if changed link then alert
if saturation > 90% then alert
if download > 90 MB/s then alert
if total upload > 100 GB in last hour then alert
这就是我正在使用的
监控版本 5.3.2 Ubuntu 16.04.3 LTS
ifconfig -a
enp2s0 链路封装:以太网 HWaddr x:x:x:x:x:x inet 地址:x.x.x.x 广播:x.x.x.x 掩码:255.255.255.248 inet6 地址:x.x.x.x 范围:链接 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
lo 链路封装:本地环回 inet 地址:127.0.0.1 掩码:255.0.0.0 inet6 地址::::1/128 范围:主机 上环运行 MTU:65536 指标:1
【问题讨论】:
标签: monit