监控软件munin安装设置

准备工作
需要web环境
需要设置epel源

wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo

服务器端安装设置

yum install -y munin munin-node

设置配置文件

vim /etc/munin/munin.conf

配置说明:

dbdir /var/lib/munin

数据文件目录

htmldir /data/www/munin
web程序目录
logdir /var/log/munin
日志目录
rundir /var/run/munin
主程序目录

[server]
address 192.168.1.113
use_node_name yes
监控机名和地址

客户端安装设置

yum install -y munin-node

装好后在服务器端的配置文件中添加主机即可

vim /etc/munin/munin.conf
[web]
address 192.168.1.118
use_node_name yes

监控机名和地址

在/etc/munin/munin-node.conf允许监控添加服务器端的ip
格式

allow ^192\.168\.1\.113$
最后重启一边所有主机的munin-node

service munin-node restart

 

posted @ 2018-04-03 11:54  俊偉  阅读(169)  评论(0编辑  收藏  举报
回顶部