Comments on Server Monitoring With munin And monit

Server Monitoring With munin And monit In this article I will describe how to monitor your server with munin and monit. munin produces nifty little graphics about nearly every aspect of your server (load average, memory usage, CPU usage, MySQL throughput, eth0 traffic, etc.) without much configuration, whereas monit checks the availability of services like Apache, MySQL, Postfix and takes the appropriate action such as a restart if it finds a service is not behaving as expected. The combination of the two gives you full monitoring: graphics that lets you recognize current or upcoming problems (like "We need a bigger server soon, our load average is increasing rapidly."), and a watchdog that ensures the availability of the monitored services.

11 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Anonymous

Excellent, and straightforward tutorial.

Remember that the munin logs are located in /var/log/munin/

It can be a while before new graphs are generated. The default configuration will fail.

By: Anonymous

Munin works just fine out of the box.

But yo must consider when graphing the cpu temp, it rises by 4C at the time munin is running, on a P3 1GHz.

My workaround is to check cpu temp 1min before munin runs an put into a clear text file :)

By: Anonymous

Another application that does all this easily is www.bixdata.com. Plus it also runs on windows if you need to monitor that.

By: Anonymous

Dont you need to get apache to work with this? I had to edit conf.d/xxxx.conf in order to get /monitoring/ to link.

eg.,

Alias /monitoring/ /var/www/www.xxxx.dyndns.org/web/monitoring/
#ScriptAlias /monitoring/ /var/www/www.xxxx.dyndns.org/web/monitoring/
<Directory /var/www/www.xxxx.dyndns.org/web/monitoring/>
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

</VirtualHost>

Then it worked fine, unless I have missed something???

regards

By: Anonymous

 Also uncomment the following lines:
 
       AuthUserFile /etc/munin/munin-htpasswd
AuthName "Munin"
AuthType Basic
require valid-user
 
Save and close
 
sudo htpasswd -c /etc/munin/munin-htpasswd admin
 
sudo service apache2 restart
 
 Done!

By: Anonymous

It would be nice if you also provided the links to the official sites of the applications...

By: admin
By: Anonymous

hi, i agree that by default that the .htaccess file didn't work on Debian Sarge. Instead i just copied what was in the file to the main configuration (apache2.conf) and enclosed it in a < Directory > container e.g. < Directory /var/www/www.example.com/web/monitoring > AuthType Basic AuthName "Password Required" AuthUserFile /var/www/www.example.com/.htpasswd limit GET PUT POST require valid-user < /limit > < /Directory > and then I follwed the remaining steps to make the .htpasswd file and it worked perfectly! Thanks for the great Howto!

By: Bjoern

Hi there,

 another good monitoring tool in my opinion is Zabbix. Though there are plenty around, this is very interesting:

 http://en.wikipedia.org/wiki/Comparison_of_network_monitoring_systems

 Cheers

By:

I run mysql as a local service with the port closed. How do I configure monit for that?

By: Velmurugan

How to add windows clients in munin monitoring ubuntu based server.