Censored
Saturday, June 16th, 2007There’s an uprising at Flickr that’s very similar to the Digg revolt. I think fighting for freedom of speech is a better cause though.
There’s an uprising at Flickr that’s very similar to the Digg revolt. I think fighting for freedom of speech is a better cause though.
Want to suck less? Stop playing that annoying song!
Munin is a monitoring tool for servers. It uses RRDtool to log and graph data from your servers. The plugin API is very easy to grasp. Actually, I haven’t read the API documentation yet. I just looked at the output of the plugins and it looks easy to achieve. The data can be accessed through the web.
This guide will walk you through installing and configuring Munin on CEntOS 4.3/4.4 x86. The steps are pretty much the same for later releases of CEntOS, Red Hat, Fedora [Core] and/or Red Hat-based installations.
Munin works by polling your servers for the data hence two applications, Munin and Munin Node. The former periodically gathers data (cronned) and the latter serves the data to the former. Please refer to the following for our example configuration. You can make up a domain if you want Munin to group your servers similar to the live demo.
Munin “Graph Server” - alpha.sample.net (192.168.1.1)
A Munin Node - bravo.sample.net (192.168.1.2)
1. Installing and Configuring Munin
In this section, we set it up on alpha.sample.net
rpm -Uhv http://apt.sw.be/packages/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.i386.rpmyum -y install munin
chown -R munin:munin /var/www/muninhtmldir from /var/www/html/munin to /var/www/munin at /etc/munin/munin.conf (line 7).service httpd restart && service crond restart2. Add a Node
In this section, we will configure bravo.sample.net.
yum -y install munin-node/etc/munin/munin-node.conf with your favorite text editor.
allow ^192\.168\.1\.1$host_name bravo.sample.nethost (line 13) from * to the local IP of the node.service munin-node start
chkconfig munin-node on/etc/munin/munin.conf).[bravo.sample.net]
address 192.168.1.2
use_node_name yes
Wait for at least 5 minutes for the new node to appear. You can also install the node on the graph server. The default node configuration will work out of the box.
3. Install/Activate Some Plugins
This section should familiarize you with the plugin installation routine. Plugins are installed in the nodes.
/usr/share/munin/plugins) in the plugin folder.ln -s /usr/share/munin/plugins/apache_* /etc/munin/plugins/
ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Location>service httpd restart && service munin-node restart/usr/share/munin/plugins.chmod 755 /usr/share/munin/plugins/asterisk_*
/etc/asterisk/manager.conf[general]
enabled = yes
port = 5038
[munin]
secret = somepassword
permit = 127.0.0.1 ;if this doesn’t work, use the local IP
write = system,call,log,verbose,command,agent,user
/etc/munin/plugin-conf.d/munin-node[asterisk_*]
env.username munin
env.secret somepasswordasterisk -rx reload >> /dev/null && service munin-node restart/usr/share/munin/plugins) in the plugin folder.ln -s /usr/share/munin/plugins/mysql_* /etc/munin/plugins//etc/munin/plugin-conf.d/munin-node and uncomment line 16 by removing the leading hash (#). Then change the parameters that will be used when mysqladmin is run.service munin-node restartyum -y install mtr && yum -y update mtr/usr/share/munin/pluginschmod 755 /usr/share/munin/plugins/mtr100_/usr/share/munin/plugins) in the plugin folder. Append the host that you want to query to the link of the name.ln -s /usr/share/munin/plugins/mtr100_ /etc/munin/plugins/mtr100_somehost.com/etc/munin/plugin-conf.d/munin-node[mtr100_*]
timeout 60service munin-node restart4. Links
In celebration of 109 years of freedom, we modified the theme for our Independence Day at !people and named it 2007 Kalayaan.
By the way, you might’ve noticed that I’ve been posting less frequent here. I didn’t stop blogging, I’ve been posting there more instead. So if you miss my posts (fat chance), join there. Everybody’s welcome.
Mabuhay ang Pilippinas!
There are other ways to install Fedora 7 if you don’t have a DVD drive. I’m cheap enough to keep an old laptop with only a CD-ROM drive yet foolish enough to buy a 60GB iPod. In this entry, I’ll share how I worked around to getting Fedora 7 installed.
I tried two of the installation methods. First I tried a network install. This took a lot of time and the minimal boot loader doesn’t show the status of the download. You can hit alt+F3 and see more messages but that barely helped. I tried to download the portion of the mirror that was needed but majority of the mirrors were slow.
This is not the first time where I tried a network install. I tried it before with openSUSE and had the same problems, ending up with downloading the ISOs. I was first hesitant to try this but I thought that a DS3 line will work compared to 512kbps DSL.
The second method I tried was from a hard drive. I first tried it with a USB enclosure with an NTFS-formatted drive but it seems that the boot loader had this problem with mounting the partition. But that didn’t stop me from giving up. I still have my FAT32-formatted iPod and the boot loader was able to mount it.
That’s pretty much it. Here’s what I did in 5 steps (plus other options for your configuration) to reach the welcome screen.
It’ll be smooth sailing once anaconda, the installation program, loads properly. Stay tuned for my post-installation assessment.
…but I don’t like the improvements to the YouTube player. It feels like it slows down playback and gets too much in the way.
