lost and found ( for me ? )

install munin on Fedora 18

Here’s how to install munin on Fedora 18.


I’ve installed munin server and munin node on the same box , which means that one box acts as both munin server and client.

[root@f18 ~]# uname -ri
3.9.0-0.rc5.git1.1.vanilla.mainline.knurd.1.fc18.x86_64 x86_64
[root@f18 ~]# cat /etc/fedora-release
Fedora release 18 (Spherical Cow)

install munin , munin-node and httpd via yum.
# yum -y install munin munin-node httpd

[ munin server ]

use default configuration.
# egrep -v ^# /etc/munin/munin.conf | grep -v ^$
includedir /etc/munin/conf.d
graph_strategy cron
html_strategy cron
[localhost]
   address 127.0.0.1
   use_node_name yes

[ munin node ]

use default configuration as well.
# egrep -v ^# /etc/munin/munin-node.conf | grep -v ^$
log_level 4
log_file /var/log/munin-node/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 ^::1$
host *
port 4949
#

start munin-node
[root@f18 ~]# systemctl start munin-node.service

[root@f18 ~]# systemctl status munin-node.service
munin-node.service - Munin Node Server.
 Loaded: loaded (/usr/lib/systemd/system/munin-node.service; disabled)
 Active: active (running) since Sat 2013-04-13 02:50:12 JST; 1s ago
   Docs: man:munin-node
Process: 8403 ExecStart=/usr/sbin/munin-node (code=exited, status=0/SUCCESS)
Main PID: 8404 (munin-node)
 CGroup: name=systemd:/system/munin-node.service
 └─8404 /usr/bin/perl -wT /usr/sbin/munin-node

start munin-node when booting the OS
# systemctl enable munin-node.service
ln -s '/usr/lib/systemd/system/munin-node.service' '/etc/systemd/system/multi-user.target.wants/munin-node.service'

configure apache to browse statistics via HTTP.
# egrep -v ^# /etc/httpd/conf.d/munin.conf  | grep -v ^$
<directory /var/www/html/munin>
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 192.168.11.0/24
ExpiresActive On
ExpiresDefault M310
</directory>
ScriptAlias /munin-cgi/munin-cgi-graph /var/www/cgi-bin/munin-cgi-graph

start httpd
# apachectl start


The following is an output of CPU usage.


list munin plugins
# 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 [logfile not readable]              
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 [fail2ban-server does not respond to ping]
forks                      | yes  | yes                                    
fw_conntrack               | yes  | yes                                    
fw_forwarded_local         | yes  | yes                                                                                                    
<snip>

munin plugins are stored in /usr/share/munin/plugins directory
# ls /usr/share/munin/plugins/*
/usr/share/munin/plugins/acpi
/usr/share/munin/plugins/amavis
/usr/share/munin/plugins/apache_accesses
/usr/share/munin/plugins/apache_processes
/usr/share/munin/plugins/apache_volume
/usr/share/munin/plugins/apc_envunit_
/usr/share/munin/plugins/apc_nis
/usr/share/munin/plugins/apt
/usr/share/munin/plugins/apt_all
/usr/share/munin/plugins/asterisk_channels
/usr/share/munin/plugins/asterisk_channelstypes
/usr/share/munin/plugins/asterisk_codecs
/usr/share/munin/plugins/asterisk_meetme
/usr/share/munin/plugins/asterisk_meetmeusers
/usr/share/munin/plugins/asterisk_sipchannels
<snip>

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.