Linux Server Monitoring with Munin
By Fahad Ahammed
- 2 minutes read - 409 wordsThis article is about showing how to monitor any server or remote server by a tool named munin. Munin the monitoring tool surveys all your computers and remembers what it saw. It presents all the information in graphs through a web interface. Its emphasis is on plug and play capabilities. I will show you how to set it up with a remote server too.
Using Munin you can easily monitor the performance of your computers, networks, SANs, applications, weather measurements and whatever comes to mind. It makes it easy to determine “what’s different today” when a performance problem crops up. It makes it easy to see how you’re doing capacity-wise on any resources.
Let’s start the procedure.
To install munin you need to make sure you have apache2 installed or apache server installed. I have used Debian Wheezy for monitoring server and Ubuntu-1404 LTS for remote server.
Monitoring Server:
Install:
Enable Plugins: Now you can enable some plugins which is perfect for your desire. Normally there are some enabled plugins in munin by default. But you can enable more or disable.
Check enabled plugins:
Above command will give you the output of enabled munin plugins.
Check available plugins to install:
Above command will show you available plugins which you can enable.
To enable or disable first go to:
Then if you want to disable any plugin you can disable by deleting the file from that folder.
To enable:
Every time you enable and disable you should restart both apache2 and Munin. (for both remote server and monitoring server)
Remote Server:
You have to install these packages in all remote servers or the servers you want to be monitored by your monitor server:
Now you have to allow the monitor servers ip to get data to show.
Find:
And add remote server ip like this:
You have to add your monitor server ip like above in every server you want to monitor.
Let you have monitor server 192.168.23.7 then you have to add that as allow ^192.168.23.7$ . You can also add plugins in remote servers. Your remote servers plugins will show them separately in munin.
Finally:
Now restart both apache2 and munin in monitor server:
In remote servers you have to restart munin node.
Now give that some time to generate logs and pages. After some time you can get desired output by accessing http://remote-server-ip/munin/ in a browser. It will ask for user and password. That’s it.
Leave feedback please.