【问题标题】:monit - check network Error: syntax errormonit - 检查网络错误:语法错误
【发布时间】: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


    【解决方案1】:

    网络检查从 Monit 5.11.0 开始可用。您必须先升级 Monit,然后才能使用它。

    【讨论】:

    • 将尝试,这是本月的 apt-get 安装
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-08-11
    • 1970-01-01
    • 1970-01-01
    • 2011-06-22
    • 2015-03-11
    • 1970-01-01
    相关资源
    最近更新 更多