ubuntu – Monit似乎正在使用命令行,但在Web界面中获得404’该名称没有服务’

Monit似乎正在工作,但是当我在端口访问web界面时:2812我得到:
Not Found
There is no service by that name

monit 5.2.5

但同样,CLI上的内容似乎还可以

-->:/var/log$sudo monit -t
Control file Syntax OK
-->:/var/log$sudo monit status
The Monit daemon 5.2.5 uptime: 11m 

System 'system_mydomain.net'
  status                            running
  monitoring status                 monitored
  load average                      [0.00] [0.01] [0.05]
  cpu                               0.0%us 0.0%sy 0.0%wa
  memory usage                      645520 kB [63.4%]
  swap usage                        213128 kB [10.1%]
  data collected                    Wed Feb 15 06:27:26 2012

有任何想法吗?

这是一个示例/etc/monit.conf配置文件.确保您的配置文件中包含与“set httpd port 2812 and …”开头的行类似的内容.
set daemon 60
set logfile syslog facility log_daemon
set idfile /tmp/monit.id
set statefile /tmp/monit.state
set mailserver localhost
set alert systems@abcd.net
set httpd port 2812 and
     #use address localhost  # only accept connection from localhost
      allow 172.16.16.0/255.255.255.0
      allow localhost        # allow localhost to connect to the server and
      allow admin:monit      # require user 'admin' with password 'monit'
  check system Fruity
    if loadavg (1min) > 6 then alert
    if loadavg (5min) > 6 then alert
    if memory usage > 90% then alert
    if swap usage > 20% then alert
    if cpu usage (user) > 90% then alert
    if cpu usage (system) > 75% then alert
    if cpu usage (wait) > 75% then alert

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...