如何在 Ubuntu 20.04 LTS 上安装 Munin
admin
2023-07-31 11:05:59
0

https://u.jd.com/yK3WRCO

Munin 是一个基于 Web 的工具,用于监控系统和网络统计信息。穆宁通过图表显示了这些信息。它帮助系统管理员收集可通过 Web 界面查看的各种系统信息,例如处理器负载、硬盘使用情况、网络流量、对一台或多台计算机上的服务器服务的访问等。munin-webserver-monitoringmunin-webserver-monitoring

在 Ubuntu 20.04 LTS Focal Fossa 上安装 Munin

步骤 1. 首先,通过apt在终端中运行以下命令确保所有系统包都是最新的。

sudo apt update
sudo apt upgrade

步骤 2.安装 Apache 和其他依赖项。

运行以下命令来安装 Apache 和其他所需的软件包:

sudo apt install apache2 libcgi-fast-perl libapache2-mod-fcgid

步骤 3. 在 Ubuntu 20.04 上安装 Munin。

默认情况下,Munin 在 Ubuntu 基础存储库上可用,现在使用以下命令将 Munin 安装到您的 Ubuntu 系统:

sudo apt install munin

步骤 4. 配置 Munin。

我们可以从编辑 Munin 配置文件开始:/etc/munin/munin.conf

nano /etc/munin/munin.conf

使用删除取消注释#符号修改以下行:

dbdir /var/lib/munin
htmldir /var/cache/munin/www
logdir /var/log/munin
rundir /var/run/munin

步骤 5. 配置 Apache。

现在我们编辑 Munin 的 Apache 配置:

cd /etc/apache2/conf-enabled
ln -s /etc/munin/apache24.conf munin.conf

确保您注释掉该行 并添加 和(否则您将只能从localhost访问 Munin 输出):Require localRequire all grantedOptions FollowSymLinks SymLinksIfOwnerMatch

nano /etc/munin/apache24.conf

修改以下行:

Alias /munin /var/cache/munin/www

 # Require localRequire all granted Options FollowSymLinks SymLinksIfOwnerMatch


ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph

 # Require localRequire all granted Options FollowSymLinks SymLinksIfOwnerMatch 
 SetHandler fcgid-script
 
 
 SetHandler cgi-script
 

保存并关闭文件,然后使用以下命令重新启动 Apache 和 Muninservice:

sudo systemctl restart apache2
sudo systemctl restart munin-node

步骤 6. 访问 Munin Server Web 界面。

成功安装后,现在我们进入您的浏览器,您会看到第一个统计信息:http://your-server-ip-address/munin/

Munin-monitoring-interfaceMunin-monitoring-interface

感谢您使用本教程在 Ubuntu 20.04 LTS Focal Fossa 系统上安装 Munin 服务器监控。如需更多帮助或有用信息,我们建议您查看Munin 官方网站。

相关内容

热门资讯

Windows 11 和 10... Windows 11/10 文件夹属性中缺少共享选项卡 – 已修复 1.检查共享选项卡是否可用 右键...
事件 ID 7034:如何通过... 点击进入:ChatGPT工具插件导航大全 服务控制管理器 (SCM) 负责管理系统上运行的服务的活动...
Radmin VPN Wind... Radmin VPN 是一款免费且用户友好的软件,旨在牢固地连接计算机以创建一个有凝聚力的虚拟专用网...
Hive OS LOLMine... 目前不清退的交易所推荐: 1、全球第二大交易所OKX欧意 国区邀请链接: https://www.m...
如何修复 Steam 内容文件... Steam 内容文件锁定是当您的 Steam 文件无法自行更新时出现的错误。解决此问题的最有效方法之...
如何在电报Telegram中隐... 点击进入:ChatGPT工具插件导航大全 在Android上的电报中隐藏您的电话号码 您可以通过切换...
Hive OS 部署 PXE ... 目前不清退的交易所推荐: 1、全球第二大交易所OKX欧意 国区邀请链接: https://www.m...
在 iCloud 上关闭“查找... 如果您是 Apple 的长期用户,您肯定会遇到过 Find My 应用程序,它本机安装在 iPhon...
farols1.1.501.0... faro ls 1.1.501.0(64bit)可以卸载,是一款无需连接外部PC机或笔记本计算机即可...
如何在Instagram上扫描... 如何在Instagram上扫描名称标签/ QR? 总而言之,您可以通过大约四种不同的方法来扫描这些I...