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

From Libopedia
Jump to navigation Jump to search
Line 10: Line 10:
 
==Install munin as follows:==
 
==Install munin as follows:==
 
Login and become the root user and install the following:
 
Login and become the root user and install the following:
  apt-get install libdbd-pg-perl
+
  apt-get install munin-node libdbd-pg-perl
 
 
apt-get install munin-node
 
  
 
==Setup munin to allow the monitoring server to gather statistics as follow:==
 
==Setup munin to allow the monitoring server to gather statistics as follow:==

Revision as of 10:43, 19 October 2012

This wiki help page assumes that you have used the three system setup procedures to install an Ubuntu server with DSpace software.

First click here to create a PostgreSQL credentials file.

Then continue.

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

ufw allow 4949

Install munin as follows:

Login and become the root user and install the following:

apt-get install munin-node libdbd-pg-perl

Setup munin to allow the monitoring server to gather statistics as follow:

nano /etc/munin/munin-node.conf

Add the following to the bottom of the file:

allow $ip-address-of-monitoring-server%

Change the following:

host_name %hostname-of-client%

Example config

# Set this if the client doesn't report the correct hostname when
# telnetting to localhost, port 4949
#
host_name scholar.sun.ac.za

# A list of addresses that are allowed to connect.  This must be a
# regular expression, since Net::Server does not understand CIDR-style
# network notation unless the perl module Net::CIDR is installed.  You
# may repeat the allow line as many times as you'd like

allow ^127\.0\.0\.1$
allow 146.232.128.157


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)


Run the following command to update stats available:

munin-node-configure --shell | bash -

Check which stats are available

cd /etc/munin/plugins
ls -l

Thats it. As usual there is a lot of documentation about Munin out there.

Template:CONSOLE

Back to Disaster Recovery System Monitor