zoukankan      html  css  js  c++  java
  • ubuntu 下配置munin

    环境:

      "Ubuntu 13.10"   

    安装:  

    apt-get install munin munin-node
    apt-get install apache2

    配置:

    1. vim /etc/munin/munin.conf    

    dbdir   /var/lib/munin
    htmldir /var/cache/munin/www
    logdir /var/log/munin
    rundir  /var/run/munin
    tmpldir /etc/munin/templates
    staticdir /etc/munin/static
    cgitmpdir /var/lib/munin/cgi-tmp
    includedir /etc/munin/munin-conf.d
    graph_period second
    graph_strategy cron
    cgiurl_graph /munin-cgi/munin-cgi-graph
    max_size_x 4000
    max_size_y 4000
    html_strategy cron
    max_processes 16
    [munin-test]
        address 127.0.0.1
        use_node_name yes

    2. vim /etc/munin/munin-node.conf   

    log_level 4
    log_file /var/log/munin/munin-node.log
    pid_file /var/run/munin/munin-node.pid
    
    background 1
    setsid 1
    
    user root
    group root
    
    ignore_file [#~]$
    ignore_file DEADJOE$
    ignore_file .bak$
    ignore_file %$
    ignore_file .dpkg-(tmp|new|old|dist)$
    ignore_file .rpm(save|new)$
    ignore_file .pod$
    
    
    allow ^127.0.0.1$           
    allow ^192.168.8.158$
    
    host *
    port 4949

    3. 配置apache

    rm  /etc/apache2/sites-enabled/* -rf
    cp /etc/munin/apache.conf  /etc/apache2/sites-enabled/

    4. 启动服务

    /etc/init.d/munin start
    /etc/init.d/munin-node start
    /etc/init.d/apache2 restart

    5. 修改定时执行

    vim /etc/cron.d/munin                      #修改绘图周期
    */5 * * * * munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi
    /etc/init.d/cron restart                   #重启定时服务
    
    vim /etc/munin/templates/partial/head.tmpl  #修改网页定时刷新

    【<meta http-equiv="refresh" content="200" />

    访问:     

    http://192.168.8.158/munin/

    参考:http://imcn.me/html/y2014/17433.html

      

  • 相关阅读:
    mybatis
    mybatis
    hadoop完全分布式搭建
    用构造器确保初始化
    HashMap的内部结构与hash冲突
    方法重载 与 方法覆盖
    Django后台管理admin或者adminx中使用富文本编辑器
    Celery在Django中的使用介绍
    django.db.utils.InternalError: (1060, "Duplicate column name 'user_id'")迁移报错解决方法
    Django2.0版本以上与pymsql 不匹配问题以及解决方法
  • 原文地址:https://www.cnblogs.com/javawer/p/3730255.html
Copyright © 2011-2022 走看看