Comments on Server monitoring with Munin and Monit on CentOS 7.2

In this article, I will describe how you can monitor your CentOS 7.2 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.

9 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: grasomega

The line

"openssl req -new -x509 -days 365 -nodes -config ./monit.cnf -out /var/certs/monit.pem -keyout /var/certs/monit.pemopenssl"

should read: 

"openssl req -new -x509 -days 365 -nodes -config ./monit.cnf -out /var/certs/monit.pem -keyout /var/certs/monit.pem"

By: Ethel Prunehat

It is a shame that this article does not explain how to get Apache statistics in Munin.

By: Joerg

That is a wonderful HowTo which worked out fine. However, in my case, the graphics are just empty and stay empty for months. I did a web search but most help pages are not for CentOS.

Any ideas?

By: student

looke like a typo on

openssl req -new -x509 -days 365 -nodes -config ./monit.cnf -out /var/certs/monit.pem -keyout /var/certs/monit.pemopenssl

should be

openssl req -new -x509 -days 365 -nodes -config ./monit.cnf -out /var/certs/monit.pem -keyout /var/certs/monit.pem

By: Milly

I am going to try to install Munin and Monit in debian with this guide, greetings

By: Milly

When I activate SSL:

SSL ENABLE PEMFILE /var/certs/monit.pem

It does not work Https is also not activated

 

Used debian

By: grasomega

Excellent tutorial, thank you!

I found out that there's a typo: "if loadavg(5min)" should be: "if loadavg (5min)"

Regards,C.

By: chetan

How to find PID file path of UWSGI ?

By: stts

Did not work.

I followed the instructions but i get:

http://server1.example.com/munin/

Index of /munin

 

 NameLast modifiedSizeDescription Parent Directory   -   cgi/ 2022-08-12 17:24  

 

http://server1.example.com/munin/cgi/

Forbidden

You don't have permission to access /munin/cgi/ on this server.

Any ideas ?