Difference between revisions of "SUNScholar/Disaster Recovery/System Monitor/Server"

From Libopedia
Jump to navigation Jump to search
Line 1: Line 1:
 
It is assumed that you will be using the same server for monitoring and backup. To setup munin to gather client statistics, follow the procedure below.
 
It is assumed that you will be using the same server for monitoring and backup. To setup munin to gather client statistics, follow the procedure below.
  
Add a firewall rule to allow the server to get the stats:
+
==Add a firewall rule to allow the server to get the stats:==
 
  ufw allow 4949
 
  ufw allow 4949
  
To install munin, type the following:
+
==To install munin, type the following:==
 
  apt-get install munin
 
  apt-get install munin
Add the clients to the '''/etc/munin/munin.conf''' file as follows.
 
  
Open the file for editing.
+
==Add the clients to the '''/etc/munin/munin.conf''' file as follows.==
 +
===Open the file for editing===
 
  nano /etc/munin/munin.conf
 
  nano /etc/munin/munin.conf
Add one of the following for each client:
+
====Add one of the following for each client:====
 
<pre>
 
<pre>
 
  [%hostname-of-client%]
 
  [%hostname-of-client%]
Line 16: Line 16:
 
     address %ip-address-of-client%
 
     address %ip-address-of-client%
 
</pre>
 
</pre>
Setup the munin server.
+
 
 +
==Setup the munin server==
 
  munin-check
 
  munin-check
 
Wait for about 5 to 10 minutes for munin to gather data and then check out the stats as follows.
 
Wait for about 5 to 10 minutes for munin to gather data and then check out the stats as follows.
  
Open a web browser and type the following in the address bar:
+
==Open a web browser and type the following in the address bar:==
 
  http://%hostname-of-monitoring-server%/munin
 
  http://%hostname-of-monitoring-server%/munin
 
You should get a page like this:
 
You should get a page like this:

Revision as of 12:09, 6 September 2012

It is assumed that you will be using the same server for monitoring and backup. To setup munin to gather client statistics, follow the procedure below.

Add a firewall rule to allow the server to get the stats:

ufw allow 4949

To install munin, type the following:

apt-get install munin

Add the clients to the /etc/munin/munin.conf file as follows.

Open the file for editing

nano /etc/munin/munin.conf

Add one of the following for each client:

 [%hostname-of-client%]
    use_node_name yes
    address %ip-address-of-client%

Setup the munin server

munin-check

Wait for about 5 to 10 minutes for munin to gather data and then check out the stats as follows.

Open a web browser and type the following in the address bar:

http://%hostname-of-monitoring-server%/munin

You should get a page like this:

Munin-1.png

Back to Disaster Recovery System Monitor