Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/performance/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 需要为网络接口创建monit cfg_Linux_Performance_Alert_Monit_Network Interface - Fatal编程技术网

Linux 需要为网络接口创建monit cfg

Linux 需要为网络接口创建monit cfg,linux,performance,alert,monit,network-interface,Linux,Performance,Alert,Monit,Network Interface,我需要为网络接口lo创建一个monit配置文件 网络接口的格式为: CHECK NETWORK <unique name> <ADDRESS <ipaddress> | INTERFACE <name>> 上面写着“找不到” 我的另一个问题是如何减少警报的数量。我每2分钟收到一次针对特定服务的警报。 利用 set daemon n (n being the number of seconds here) 将所有警报限制为此处定义的秒数。 我希

我需要为网络接口lo创建一个monit配置文件

网络接口的格式为:

CHECK NETWORK <unique name> <ADDRESS <ipaddress> | INTERFACE <name>>
上面写着“找不到”

我的另一个问题是如何减少警报的数量。我每2分钟收到一次针对特定服务的警报。 利用

set daemon n (n being the number of seconds here) 
将所有警报限制为此处定义的秒数。 我希望在特定时间段后收到特定的服务警报。因此,我在这个服务的monit.cfg中放置了一个行集守护程序600(在10分钟后接收警报)。但我现在只在10分钟后收到所有警报


有人能给我介绍一下吗

对于第一点,监视本地主机接口的目标是什么。我找不到任何与此相关的用例

关于第二点,您正在误用“set daemon”属性。 此属性是Monitor“唤醒”并在需要时执行检查的时间间隔

您应该使用规则中的配置来进行不同的检查,如:

if does not exist 3 times in 5 cycles then alert
您还可以设置提醒,因为monit仅在触发警报时发送警报(上限将在第三次失败后)

提醒monit文档位于此处:

if does not exist 3 times in 5 cycles then alert
 SET ALERT mail-address [WITH] REMINDER [ON] number [CYCLES]