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

From Libopedia
Jump to navigation Jump to search
m (Text replacement - "{{CONSOLE}}" to "")
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
+
<center>
 
+
'''[[SUNScholar/Disaster Recovery/System Monitor|Back to Disaster Recovery System Monitor]]'''
 +
</center>
 +
===Introduction===
 
*{{WARNING}}
 
*{{WARNING}}
 
*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
 +
===To enable Munin on the Apache2 web server, type the following===
 +
''Please note: This is only when using Ubuntu 14.04 and higher.''
 +
a2enconf munin
 +
 +
service apache2 restart
  
==Add the clients to the '''/etc/munin/munin.conf''' file as follows.==
+
===Add the clients to the '''/etc/munin/munin.conf''' file as follows.===
===Open the file for editing===
+
*Open the file for editing
  nano /etc/munin/munin.conf
+
  sudo mcedit /etc/munin/munin.conf
====Add one of the following for each client to be monitored:====
+
*Add one of the following for each client to be monitored:
 
<pre>
 
<pre>
 
  [%hostname-of-client%]
 
  [%hostname-of-client%]
Line 74: Line 81:
 
</pre>
 
</pre>
  
==Setup the munin server==
+
===Setup the munin server===
  munin-check
+
  sudo 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:
Line 84: Line 91:
 
[[File:Munin-1.png|900px|border]]
 
[[File:Munin-1.png|900px|border]]
  
 +
==Troubleshooting==
 +
*http://munin-monitoring.org/wiki/MuninTroubleshooting
  
 
+
==References==
'''[[SUNScholar/Disaster Recovery/System Monitor|Back to Disaster Recovery System Monitor]]'''
+
*http://www.ubuntugeek.com/install-munin-monitoring-tool-on-ubuntu-14-04-server.html
 +
[[Category:System Administration]]

Latest revision as of 11:19, 28 May 2016

Back to Disaster Recovery System Monitor

Introduction

  • This wiki help page assumes that you have used the three system setup procedures to install an Ubuntu server with DSpace software.
  • 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

To enable Munin on the Apache2 web server, type the following

Please note: This is only when using Ubuntu 14.04 and higher.

a2enconf munin
service apache2 restart

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

  • Open the file for editing
sudo mcedit /etc/munin/munin.conf
  • Add one of the following for each client to be monitored:
 [%hostname-of-client%]
    use_node_name yes
    address %ip-address-of-client%

NANO Editor Help
CTL+O = Save the file and then press Enter
CTL+X = Exit "nano"
CTL+K = Delete line
CTL+U = Undelete line
CTL+W = Search for %%string%%
CTL+\ = Search for %%string%% and replace with $$string$$
CTL+C = Show line numbers

More info = http://en.wikipedia.org/wiki/Nano_(text_editor)


Example Config

# a simple host tree
[archive.bib.sun.ac.za]
    address 127.0.0.1
    use_node_name yes

[bib.sun.ac.za]
    address 146.232.128.182
    use_node_name yes

[ark.bib.sun.ac.za]
    address 146.232.125.93
    use_node_name yes

[neo.bib.sun.ac.za]
    address 146.232.72.143
    use_node_name yes

[dev.bib.sun.ac.za]
    address 146.232.125.194
    use_node_name yes

[lib.sun.ac.za]
    address 146.232.128.184
    use_node_name yes

[web.lib.sun.ac.za]
    address 146.232.129.132
    use_node_name yes

[etd.sun.ac.za]
    address 146.232.128.164
    use_node_name yes

[ez.sun.ac.za]
    address 146.232.129.75
    use_node_name yes

[ir.sun.ac.za]
    address 146.232.128.173
    use_node_name yes

[ir1.sun.ac.za]
    address 146.232.66.15
    use_node_name yes

[ir2.sun.ac.za]
   address 146.232.128.171
   use_node_name yes

Setup the munin server

sudo 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

Troubleshooting

References