Linux监控软件Monitorix 安装部署

dnf install -y gcc make rrdtool rrdtool-devel perl perl-devel perl-libwww-perl perl-MailTools perl-MIME-Lite perl-CGI perl-DBI perl-XML-Simple perl-Config-General perl-HTTP-Server-Simple

上次元数据过期检查:1:44:49 前,执行于 2026年01月07日 星期三 09时40分13秒。

软件包 gcc-8.5.0-4.el8_5.x86_64 已安装。

软件包 make-1:4.2.1-10.el8.x86_64 已安装。

未找到匹配的参数: perl-MIME-Lite

未找到匹配的参数: perl-Config-General

未找到匹配的参数: perl-HTTP-Server-Simple

错误:没有任何匹配: perl-MIME-Lite perl-Config-General perl-HTTP-Server-Simple


CentOS 8/9 系统上安装 Monitorix 编译依赖时,遇到了perl-MIME-Liteperl-Config-Generalperl-HTTP-Server-Simple这三个包找不到的问题,这是因为 CentOS 8 + 的默认源里没有这些 Perl 模块,需要通过 Perl 的 CPAN 工具来安装

安装CPAN核心工具

dnf install -y perl-CPAN

通过 CPAN 交互式安装缺失的

启动CPAN shell

cpan

在CPAN shell中依次执行以下安装命令(每行输完按回车)

cpan[1]> install MIME::Lite

cpan[2]>install Config::General

cpan[3]>install HTTP::Server::Simple

安装完成后,输入exit退出CPAN shell

cpan[4]>exit

验证依赖是否安装完成

root@G Monitorix\]# perl -e 'use MIME::Lite; print "MIME::Lite installed\\n";' MIME::Lite installed \[root@G Monitorix\]# perl -e 'use Config::General; print "Config::General installed\\n";' Config::General installed \[root@G Monitorix\]# perl -e 'use HTTP::Server::Simple; print "HTTP::Server::Simple installed\\n";' HTTP::Server::Simple installed 、重新安装剩余的系统依赖 # dnf install -y gcc make rrdtool rrdtool-devel perl perl-devel perl-libwww-perl perl-MailTools perl-CGI perl-DBI perl-XML-Simple ![](https://i-blog.csdnimg.cn/direct/76830f0cf6804c6f8305f82eef2417a2.png)Monitorix 源码目录,继续执行编译和安装 # make install-systemd-all ![](https://i-blog.csdnimg.cn/direct/621a69edfd1047b0a4a7b711b9a0cbb7.png) #### 设置开机自启并启动服务 # 正确的开机自启命令 systemctl enable monitorix.service # 启动服务 systemctl start monitorix.service # 检查服务状态 systemctl status monitorix.service ![](https://i-blog.csdnimg.cn/direct/a3ee44be9fe046058d6352b3e2b5b689.png)报错: ![](https://i-blog.csdnimg.cn/direct/4458f588ec894cecba1ce68e6b651b05.png) # 下载阿里云镜像的rrdtool-perl包 wget https://mirrors.aliyun.com/centos-vault/8.5.2111/AppStream/x86_64/os/Packages/rrdtool-perl-1.7.0-16.el8.x86_64.rpm rpm -ivh rrdtool-perl-1.7.0-16.el8.x86_64.rpm 修改默认配置/etc/monitorix/monitorix.conf 重启服务$ sudo systemctl restart monitorix [浏览器打开 http://localhost:8080/](http://localhost:38080/ "浏览器打开 http://localhost:8080/") ![](https://i-blog.csdnimg.cn/direct/ca59d28090df48afbb0383951b2f3c24.png)

相关推荐
其实防守也摸鱼9 分钟前
面试常问问题总结--护网蓝队方向
网络·笔记·安全·面试·职场和发展·护网·初级蓝队
Muyuan199821 分钟前
25.Paper RAG Agent 优化记录:上传反馈、计算器安全与 Chunk 参数调整
python·安全·django·sqlite·fastapi
Joseph Cooper22 分钟前
Linux HID 子系统实战:从虚拟键盘到 input 事件上报
linux·c语言·计算机外设
原来是猿23 分钟前
【Socket编程预备知识】
linux·运维·服务器·网络
byoass1 小时前
企业云盘数据备份与恢复策略:定时备份增量备份异地容灾实战
网络·安全·云计算
__beginner__2 小时前
CentOS 磁盘占用异常排查与处理手册(df 高、du/ncdu 低)
linux·运维·centos
Amy187021118232 小时前
智能防雷 筑牢建筑与设备安全防线
安全
txg6662 小时前
MDVul:用语义路径重塑漏洞检测的图模型能力
人工智能·安全·网络安全
坚持就完事了2 小时前
YARN资源管理器
大数据·linux·hadoop·学习