服务器监控工具 Munin

发布时间:2026/11/5 22:16:07

服务器监控工具 Munin 穆宁Munin是一个用 Perl 编写的资源监控工具。 使用 RRDtool 创建图表。版本信息稳定版本为2.0.34于2017年10月21日发布可在EPEL仓库中获取。最新的评估版本是2.99.3于2017年1月21日发布。在 CentOS 上2.0.33 可以从 EPEL 仓库安装。由来穆宁发音为“Munin”指的是伴随北欧神祇奥丁的一对渡鸦的“记忆”。 两只鸟在黎明时分被派到外面收集情报夜间回来悄悄向奥丁传达消息。1 作为一个资源监控工具这个名字相当巧妙。所以标志图案其实是一只乌鸦。Munin node client安装yum install epel-release yum install munin-nodeEPEL 仓库提供的软件包将是最新的稳定版本 2.0.25。插件坚振礼munin-node-configure --suggest输出示例Plugin | Used | Suggestions ------ | ---- | ----------- acpi | no | no [cannot read [] amavis | no | no apache_accesses | no | no [apache server-status not found. check if mod_status is enabled] apache_processes | no | no [apache server-status not found. check if mod_status is enabled] apache_volume | no | no [apache server-status not found. check if mod_status is enabled] apc_envunit_ | no | no [no units to monitor] bonding_err_ | no | no [No /proc/net/bonding] courier_mta_mailqueue | no | no [spooldir not found] courier_mta_mailstats | no | no [could not find executable] courier_mta_mailvolume | no | no [could not find executable] cps_ | no | no cpu | yes | yes cpuspeed | no | no [missing /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state] cupsys_pages | no | no [could not find logdir] df | yes | yes df_inode | yes | yes diskstats | yes | yes entropy | yes | yes exim_mailqueue | no | no [no exiqgrep] exim_mailstats | no | no [/usr/sbin/exim -bP log_file_path returned an error] fail2ban | no | no [/usr/bin/fail2ban-client not found] forks | yes | yes fw_conntrack | no | no fw_forwarded_local | no | no fw_packets | yes | yes hddtemp_smartctl | no | no http_loadtime | no | no if_ | yes | yes (enp0s3 enp0s8) if_err_ | yes | yes (enp0s3 enp0s8) interrupts | yes | yes ip_ | no | no [could not run iptables as user nobody] ipmi_ | no | no [missing ipmitool command] irqstats | yes | yes load | yes | yes lpstat | no | no [lpstat not found] memory | yes | yes munin_stats | no | yes mysql_ | no | no netstat | no | no [netstat program not found] nfs4_client | no | no [no /proc/net/rpc/nfs] nfs_client | no | no nfsd | no | no [no /proc/net/rpc/nfsd] nfsd4 | no | no [no /proc/net/rpc/nfsd] nginx_request | no | no [no nginx status on http://localhost/nginx_status] nginx_status | no | no [no nginx status on http://localhost/nginx_status] ntp_kernel_err | no | no ntp_kernel_pll_freq | no | no ntp_kernel_pll_off | no | no ntp_offset | no | no [no ntpq program] ntp_states | no | no [ntpq not found] nvidia_ | no | no [no nvclock executable at /usr/bin/nvclock, please configure] open_files | yes | yes open_inodes | yes | yes pgbouncer_connections | no | no pgbouncer_requests | no | no postfix_mailqueue | yes | yes postfix_mailvolume | yes | yes postgres_autovacuum | no | no postgres_bgwriter | no | no postgres_cache_ | no | no postgres_checkpoints | no | no postgres_connections_ | no | no postgres_connections_db | no | no postgres_locks_ | no | no postgres_oldest_prepared_xact_ | no | no postgres_prepared_xacts_ | no | no postgres_querylength_ | no | no postgres_scans_ | no | no postgres_size_ | no | no postgres_transactions_ | no | no postgres_tuples_ | no | no postgres_users | no | no postgres_xlog | no | no proc | no | no proc_pri | yes | yes processes | yes | yes ps_ | no | no qmailqstat | no | no selinux_avcstat | no | no [missing /selinux/avc/cache_stats file] sendmail_mailqueue | no | no sendmail_mailstats | no | no [no mailstats command] sendmail_mailtraffic | no | no [no mailstats command] slapd_ | no | no [Net::LDAP not found] slapd_bdb_cache_ | no | no [Cant execute db_stat file /usr/bin/db4.6_stat] slony_lag_ | no | no smart_ | no | no [smartmontools not found] snort_alerts | no | no [/var/snort/snort.stats not readable] snort_bytes_pkt | no | no [/var/snort/snort.stats not readable] snort_drop_rate | no | no [/var/snort/snort.stats not readable] snort_pattern_match | no | no [/var/snort/snort.stats not readable] snort_pkts | no | no [/var/snort/snort.stats not readable] snort_traffic | no | no [/var/snort/snort.stats not readable] squeezebox_ | no | no [no connection on localhost port 9090] squid_cache | no | no [could not connect: Connection refused] squid_objectsize | no | no [could not connect: Connection refused] squid_requests | no | no [could not connect: Connection refused] squid_traffic | no | no [could not connect: Connection refused] swap | yes | yes threads | yes | yes uptime | yes | yes users | yes | yes varnish_ | no | no [varnishstat could not be found] vmstat | yes | yes vserver_cpu_ | no | no [/proc/virtual/info not found] vserver_loadavg | no | no [/proc/virtual/info not found] vserver_resources | no | no [/proc/virtual/info not found] yum | no | no [Could not find statefile. Please read munindoc yum]启用Apache状态cat _EOF_ /etc/httpd/conf.d/server-status.conf Location /server-status SetHandler server-status Require host localhost /Location _EOF_systemctl restart httpd启用服务器状态对于Apache监控是必要的。从 Apache 2.3.6 起mod_status 模块在加载时默认切换。ExtendedStatusOn附加内容munin-node-configure -shell | sh自动启动设置和启动systemctl enable munin-node systemctl start munin-nodeMunin 主服务器安装yum install httpd munin设置调整chown apache:munin /var/log/munin如果你后来安装Apache就无法再查看放大后的图表所以请更改日志目录的所有者。性能改进处理 cron 的分割sed -i /munin-cron/s/^/#/ /etc/cron.d/munin cat _EOF_ /etc/cron.d/munin */5 * * * * munin test -x /usr/bin/munin-cron /usr/share/munin/munin-update 5 */1 * * * munin test -x /usr/bin/munin-cron /usr/share/munin/munin-graph --cron 10 07 * * * munin test -x /usr/bin/munin-cron /usr/share/munin/munin-html _EOF_通过将图的生成频率从每5分钟改为每小时HTML生成从每5分钟改为每天从而提升性能。如果您想查看最新图表只需点击该图表即可查看放大后的图表。移除不必要的插件unlink /etc/munin/plugins/entropy unlink /etc/munin/plugins/interrupts unlink /etc/munin/plugins/irqstats排除很少见的图表可以减轻负担。自动启动设置和启动systemctl enable httpd systemctl start httpdBASIC认证htpasswd /etc/munin/munin-htpasswd username默认屏幕示例模板蒙斯特拉普curl -L https://github.com/jonnymccullagh/munstrap/archive/master.tar.gz -o munstrap.tar.gz mkdir /etc/munin/munstrap tar vzxf munstrap.tar.gz --strip1 -C /etc/munin/munstrap sed -i /etc/munin/munin.conf -e /^tmpldir/s/^/#/ -e /^staticdir/s/^/#/ sed -i /#tmpldir/a tmpldir /etc/munin/munstrap/templates /etc/munin/munin.conf sed -i /#staticdir/a staticdir /etc/munin/munstrap/static /etc/munin/munin.conf分类被标记后界面更清晰了一些。munin_dynamic_templatecurl -L https://github.com/DaveMDS/munin_dynamic_template/archive/master.tar.gz -o munin_dynamic_template.tar.gz mkdir /etc/munin/munin_dynamic_template tar vzxf munin_dynamic_template.tar.gz --strip1 --excludemunin1 -C /etc/munin/munin_dynamic_template sed -i /etc/munin/munin.conf -e /^tmpldir/s/^/#/ -e /^staticdir/s/^/#/ sed -i /#tmpldir/a tmpldir /etc/munin/munin_dynamic_template/munin2 /etc/munin/munin.conf sed -i /#staticdir/a staticdir /etc/munin/munin_dynamic_template/munin2/static /etc/munin/munin.conf现代文忍curl -L https://github.com/sjoudry/modern-munin/archive/master.tar.gz -o modern-munin.tar.gz mkdir /etc/munin/modern-munin tar vzxf modern-munin.tar.gz --strip1 -C /etc/munin/modern-munin sed -i /etc/munin/munin.conf -e /^tmpldir/s/^/#/ -e /^staticdir/s/^/#/ sed -i /#tmpldir/a tmpldir /etc/munin/modern-munin /etc/munin/munin.conf sed -i /#staticdir/a staticdir /etc/munin/modern-munin/static /etc/munin/munin.confMunin-B3curl -L https://code.not-your-server.de/munin-b3.git/tags/0.3.2.tar.gz -o munin-b3.tar.gz mkdir /etc/munin/munin-b3 tar vzxf munin-b3.tar.gz --strip1 -C /etc/munin/munin-b3 sed -i /etc/munin/munin.conf -e /^tmpldir/s/^/#/ -e /^staticdir/s/^/#/ sed -i /#tmpldir/a tmpldir /etc/munin/munin-b3/templates /etc/munin/munin.conf sed -i /#staticdir/a staticdir /etc/munin/munin-b3/static /etc/munin/munin.confMunin JQuery 模板curl -L https://github.com/mallocator/Munin-JQuery-Template/archive/master.tar.gz -o munin-jquery-template.tar.gz mkdir /etc/munin/munin-jquery-template tar vzxf munin-jquery-template.tar.gz --strip1 -C /etc/munin/munin-jquery-template sed -i /etc/munin/munin.conf -e /^tmpldir/s/^/#/ -e /^staticdir/s/^/#/ sed -i /#tmpldir/a tmpldir /etc/munin/munin-jquery-template/templates /etc/munin/munin.conf ln -s /etc/munin/munin-jquery-template/templates/assets /var/www/html/munin/ ln -s /etc/munin/munin-jquery-template/templates/style.css /var/www/html/munin/拖放功能作为实验很有趣但设置和易用性有些令人失望。看起来放大后的图表没有关联。相关监测文章服务器监控工具 Munin服务器监控工具 Xymon服务器监控工具Zabbix
延伸阅读

更多相关文章

2026/11/4 0:23:52

Flume事务机制解析与高可靠数据采集实践

1. 项目概述:为什么Flume事务机制值得深挖在数据采集领域,Flume作为Apache顶级项目早已成为ETL管道的标准组件。但真正让Flume在金融交易日志、电信话单等关键场景站稳脚跟的,是其独树一帜的事务设计。去年某电商大促期间,我们通过…

2026/11/4 3:28:33

自媒体账号封禁机制解析与应对策略

1. 事件背景与现象解析上周日中午,我正像往常一样登录头条号后台准备更新内容,突然发现账号无法登录。系统提示"该账号因违反平台规则已被永久封禁",这个运营了3年多、积累14.3万粉丝的账号就这样毫无征兆地被冻结了。查看最近发布…

2026/11/4 6:42:53

Domino数据库ACL权限管理与安全配置实战指南

1. Domino数据库ACL信息查看实战指南在Domino平台的管理工作中,数据库访问控制列表(ACL)的管理堪称系统安全的核心命脉。作为一位经历过多次数据泄露事故的Domino老管理员,我深刻理解快速查看和验证每个库的ACL设置的重要性。本文…

2026/11/5 16:51:33

EasyU优启通PE维护盘实战指南:制作、启动与核心操作全解析

1. 为什么一个PE维护盘值得单独拿出来聊装系统、修引导、救数据、清病毒,这些活儿但凡干过几次的人都知道,真正决定效率的往往不是你手速多快,而是手边那套PE环境靠不靠谱。EasyU(圈内习惯叫优启通)就是在这个场景下被…

2026/11/5 16:26:13

Rust原来很简单二:所有权系统

Part 2 核心篇 —— 所有权系统 本篇覆盖 第 6 ~ 10 章:所有权、借用与引用、生命周期、字符串与切片、内存模型。 ⚠️ 这是全书最重要的一篇。 把它吃透,Rust 从此“很简单”;跳过它,你会处处碰壁。请慢下来,动手敲每一段代码。 第 6 章 所有权:Rust 的第一性原理 6…

2026/11/5 15:00:49

基于Hadoop+Spark的民宿智能推荐系统设计与实现

1. 项目概述:大数据时代的民宿智能推荐这个毕业设计项目融合了当前大数据领域最主流的技术栈,构建了一个完整的民宿推荐系统解决方案。作为一名长期从事大数据系统开发的工程师,我认为这个选题非常贴合实际应用场景——随着旅游业的复苏和共享…

2026/11/5 14:10:30

ADS122U04IPWR+STM32F427ZI工业级温度测量信号链设计

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/11/5 14:10:30

UART接口24位ADC搭配RS485,解决远距离温度监控难题

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/11/5 14:10:30

UART接口24位ADC搭配PIC18F46K22的RTD与热电偶测温实践

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/11/5 15:39:06

面向复杂光照与角度的宠物面部识别鲁棒性增强策略

在智慧养宠时代,基于视觉的宠物身份识别技术正逐步从实验室走向家庭应用。然而,与配合度高的人类不同,宠物是典型的“非合作生物识别对象”——它们不会主动配合摄像头调整姿态,更无法控制光照环境。实际应用中,我们常…

2026/11/4 21:04:25

SSM电子书店源码全解析:结构、原理、部署与排错实战

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/11/5 0:02:07

多智能体协作系统架构设计与实践优化

1. 多智能体协作系统的时代背景2017年Transformer架构的诞生彻底改变了人工智能的发展轨迹。当行业还沉浸在单一大模型带来的性能突破时,Anthropic的研究团队已经将目光投向了更前沿的领域——如何让多个智能体通过协作产生超越单体能力的系统智能。这就像交响乐团中…

2026/11/5 0:02:07

大模型系统性入门实战指南:从原理到部署微调的全链路路线

提到大模型的系统性入门,我先说个结论:这事真不难,难的是资料太散、路线太多,今天这个框架明天那个工具,新人很容易在“收藏夹吃灰”和“教程看到一半放弃”之间反复横跳。市面上关于大模型的内容少说有几十万篇&#…

2026/11/5 0:02:07

鸿蒙文件系统沙箱机制解析与开发实践

1. 鸿蒙文件系统沙箱机制深度解析作为一名从Android转向鸿蒙开发的工程师,我深刻体会到文件系统访问是迁移过程中最先遇到的"拦路虎"。在Android上运行良好的文件读写代码,在鸿蒙真机环境却频频出现文件写入后神秘消失或直接抛出权限拒绝错误的…

2026/11/5 15:39:06

面向复杂光照与角度的宠物面部识别鲁棒性增强策略

在智慧养宠时代,基于视觉的宠物身份识别技术正逐步从实验室走向家庭应用。然而,与配合度高的人类不同,宠物是典型的“非合作生物识别对象”——它们不会主动配合摄像头调整姿态,更无法控制光照环境。实际应用中,我们常…

2026/11/4 21:04:25

SSM电子书店源码全解析:结构、原理、部署与排错实战

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

还想了解更多?直接咨询顾问

免费诊断 + 免费方案 + 透明报价。

全国咨询热线400-8866-253
免费获取方案
☎咨询二维码 ☎ ↑