Install and configure the Munin monitoring server on Linux
Munin is a great system monitoring tool similar to RRD tool. It provides you with a wide range of system performance information, such as disks, networks, processes, systems, and users. These are the content that Munin monitors by default.
Use RRDtool to customize plotting to monitor Oracle databases
Simple Image Rendering using RRDtool
When installing RRDtool, the following error occurs: configure: error: Please fix the library issues listed above and try again.
RHEL5.5 installing RRDtool solves many Dependencies
Use yum to install RRDtool in CentOS
How does Munin work?
Munin runs in client-server mode. The Munin server processes running on the master server collect data from the local client daemon (Munin can monitor its own resources) or remote clients (Munin can monitor hundreds of machines, then it is displayed in a graphical form on its web interface.
Configure Munin on the server
To configure the server and client, we need to complete the following two steps.
- Install and configure the Munin server package so that it can collect data from the client.
- Install the Munin client so that the server can connect to the client daemon for data collection.
Install the munin server on Linux
Install the Munin server on Ubuntu/Debian-based machines:
apt-get install munin apache2
Install the Munin server on a RedHat/CentOS-based machine:
Before installing Munin on a Redhat-based machine, make sure to enable the EPEL software repository, because the software repository for the Redhat-based machine does not have Munin by default.
yum install munin httpd
Configure the Munin server on Linux
The following are the steps for starting Munini on the server:
- Add the host details to be monitored in/etc/munin. conf.
- Configure the apache web server to include the munin configuration.
- Create a user name and password for the web interface
- Restart apache server
Step 1
Add host entries in the/etc/munin. conf file. Add the client to be monitored to the end of the file. In this example, I added the database server to be monitored and its IP address.
Example:
[db.linuxnix.com]
address 192.168.1.25
use_node_name yes
Save the file and exit.
Step 2
In the/etc/apache2/conf. d directory, edit or create the file munin. conf to include configuration related to Munin and Apache. Note that other web-related Munin configurations are stored in the/var/www/munin directory by default.
vi/etc/apache2/conf.d/munin.conf
Content:
Alias/munin /var/www/munin
<Directory/var/www/munin>
Order allow,deny
Allowfrom localhost 127.0.0.0/8::1
AllowOverrideNone
OptionsExecCGIFollowSymlinks
AddHandler cgi-script.cgi
DirectoryIndex index.cgi
AuthUserFile/etc/munin/munin.passwd
AuthType basic
AuthName"Munin stats"
require valid-user
<IfModule mod_expires.c>
ExpiresActiveOn
ExpiresDefault M310
</IfModule>
</Directory>
Save the file and exit.
Step 3
Create a username and password to view the figure of munin:
htpasswd -c /etc/munin/munin-htpasswd munin
Note: For Redhat/Centos machines, to access your configuration file, replace "httpd" with "apache2" in each path ".
Step 4
Restart the Apache server to make the Munin configuration take effect.
Based on Ubuntu/Debian:
service apache2 restart
Based on Centos/Redhat:
service httpd restart
Install and configure the Munin client on Linux
Step 1
Install the Munin client on Linux
apt-get install munin-node
Note: If you want to monitor your Munin server, you also need to install munin-node on the server.
Step 2
Edit the munin-node.conf file configuration client.
vi/etc/munin/munin-node.conf
Example:
allow ^127\.0\.0\.1$
allow ^10\.10\.20\.20$
# The address to which the listener belongs
host *
# And which port
port 4949
Note: 10.10.20.20 is my Munin server. It connects to port 4949 of the client to obtain data.
Step 3
Restart munin-node on the client:
service munin-node restart
Test connection
Check whether you can connect to port 4949 of the client from the server. If not, open the port in the firewall of the client machine.
telnet db.linuxnix.com 4949
Visit the Munin web page
http://munin.linuxnix.com/munin/index.html
I hope these will help you configure the basic Munin server.
How to install Munin on Ubuntu13.10 Server)
Install the munin monitoring server On Debian 6
Install the Munin monitoring Server on Ubuntu Server 10.04
Via: http://www.linuxnix.com/install-and-configure-munin-monitoring-server-in-linux/
Author: Surendra Anne Translator: ictlyh Proofreader: wxy
This article was originally compiled by LCTT and launched with the honor of Linux in China
This article permanently updates the link address: