【问题标题】:i try to setup monitorix and get error message:You don't have permission to access /monitorix on this server我尝试设置 monitorix 并收到错误消息:您无权访问此服务器上的 /monitorix
【发布时间】:2017-06-07 13:15:21
【问题描述】:

我在我的虚拟机上安装了 monitorix 并设置了如下配置文件:

# Monitorix - configuration file
#
# See monitorix.conf(5) manpage for a detailed description of each option.
#

title = MonitorIX
hostname = <host_ip>
theme_color = black
refresh_rate = 150
iface_mode = graph
enable_zoom = y
netstats_in_bps = n
disable_javascript_void = n
temperature_scale = c
show_gaps = n
global_zoom = 1
max_historic_years = 1
accept_selfsigned_certs = y
image_format = PNG
include_dir = /etc/monitorix/conf.d

base_dir = /var/lib/monitorix/www/
base_lib = /var/lib/monitorix/
base_url = /monitorix
base_cgi = /monitorix-cgi

<httpd_builtin>
        enabled = y
        host =
        port = 8000
        user = nobody
        group = nobody
        log_file = /var/log/monitorix-httpd
        hosts_deny = all
        hosts_allow = <host_ip>
        <auth>
                enabled = n
                msg = Monitorix: Restricted access
                htpasswd = /var/lib/monitorix/htpasswd
        </auth>
</httpd_builtin>


# Log files pathnames
# -----------------------------------------------------------------------------
log_file        = /var/log/monitorix
secure_log      = /var/log/secure
mail_log        = /var/log/maillog
milter_gl       = /var/milter-greylist/greylist.db
imap_log        = /var/log/imap
hylafax_log     = /var/spool/hylafax/etc/xferfaxlog
cups_log        = /var/log/cups/page_log
ftp_log         = /var/log/proftpd/access.log
fail2ban_log    = /var/log/fail2ban.log
spamassassin_log        = /var/log/maillog
clamav_log      = /var/log/clamav/clamav.log
cg_logdir       = /var/CommuniGate/SystemLogs/
squid_log       = /var/log/squid/access.log

imap_log_date_format = %b %d
secure_log_date_format = %b %e

现在我尝试从浏览器启动它,但出现以下错误: 禁止

您无权访问此服务器上的 /monitorix。

Monitorix HTTP Server 监听 localhost 端口 8000

【问题讨论】:

    标签: linux monitor


    【解决方案1】:

    试试这个:

    chmod 755 -R  /var/lib/monitorix/www/
    

    【讨论】:

      猜你喜欢
      • 2018-12-17
      • 2013-08-26
      • 2018-02-09
      • 2012-06-08
      • 1970-01-01
      • 1970-01-01
      • 2017-02-26
      • 2013-06-30
      相关资源
      最近更新 更多