'Memo/Linux/Munin/' には、下位層のページがありません。
vi /etc/munin/munin.conf ---- tls disabled ----
ln -s /usr/share/munin/plugins/smart_ /etc/munin/plugins/smart_hda ln -s /usr/share/munin/plugins/smart_ /etc/munin/plugins/smart_sda vi /etc/munin/plugin-conf.d/munin-node ---- [smart_*] user root [smart_sda] env.smartargs -d ata ---- service munin-node restart
2011/03/15 20:05:17 [ERROR] In RRD: Error updating /var/lib/munin/localhost/localhost-cpu-system-d.rrd: This RRD was created on another architecture
cd /usr/src/redhat/ wget "http://dl.fedoraproject.org/pub/epel/testing/6/SRPMS/munin-1.4.7-1.el6.src.rpm" rpm -ivh --nomd5 munin-1.4.7-1.el6.src.rpm rpmbuild -ba SPECS/munin.spec rpm -Uvh RPMS/noarch/munin-*.noarch.rpm
munin-run cpu
munin-run config
service munin-node reload または service munin-node restart
munin-node-configure
munin-node-configure --suggest --shell | sh
munin-node-configure --remove-also --shell | sh
munin-node-configure-snmp localhost
cat > "/etc/munin/plugin-conf.d/http_loadtime" << 'EOS' [http_loadtime] env.target http://localhost/ EOS ln -s /usr/share/munin/plugins/http_loadtime /etc/munin/plugins/ service munin-node restart
wget -O http_response_times http://exchange.munin-monitoring.org/plugins/http-response-times/version/2/download yes | cp -f munin/plugins/http_response_times /usr/share/munin/plugins/ chmod 755 /usr/share/munin/plugins/http_response_times
ln -s /usr/share/munin/plugins/http_response_times /etc/munin/plugins/http_response_index cat >> /etc/munin/plugin-conf.d/munin-node << 'EOS' [http_response_index] env.domain http://localhost env.url1 /index.html env.url2 /index.php EOS
ln -s /usr/share/munin/plugins/http_response_times /etc/munin/plugins/http_response_full cat >> /etc/munin/plugin-conf.d/munin-node << 'EOS' [http_response_full] env.domain http://localhost env.url1 /index.html env.url2 /index.php EOS
service munin-node reload
[notice] SELinux policy enabled; httpd running as context user_u:system_r:httpd_t:s0
Creating semaphore: Permission denied at /var/www/html/munin/cgi/munin-fastcgi-graph line 141. [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error. [error] [client 192.168.1.xx] Premature end of script headers: munin-fastcgi-graph [error] [client 192.168.1.xx] File does not exist: /var/www/html/favicon.ico, referer: http://192.168.1.xx/cgi-bin/munin-fastcgi-graph [notice] mod_fcgid: process /var/www/html/munin/cgi/munin-fastcgi-graph(13485) exit(communication error), terminated by calling exit(), return code: 13
perl -p -i -e 's#SELINUX=enforcing#SELINUX=disabled#' "/etc/sysconfig/selinux" perl -p -i -e 's#SELINUX=enforcing#SELINUX=disabled#' "/etc/selinux/config" reboot
/usr/sbin/sestatus SELinux status: disabled
vi /etc/munin/munin.conf ---- [localhost] munin_stats.contacts no ----
#!/usr/bin/perl use CGI::Fast qw(:standard); use strict; my $COUNTER = 0; while ( new CGI::Fast ) { print header; print start_html("Fast CGI Rocks"); print h1("Fast CGI Rocks"), "Invocation number ",b($COUNTER++), " PID ",b($$),".", hr; print end_html } 0;
service httpd stop sudo ipcs -s | grep apache
service httpd stop sudo ipcs -s | grep apache | awk '{print "sudo ipcrm -s ",$2}' | sh service httpd start sudo ipcs -s | grep apache
su - munin --shell=/bin/bash /usr/share/munin/munin-graph --noweek --nomonth --noyear --nosumweek --nosumyear --skip-locking --skip-stats --nolazy --list-images --host localhost --service apache_accesses
- print "graph_vlabel temp in °C\n"; + print "graph_vlabel temp in degC\n";