Difference between revisions of "SUNScholar/Disaster Recovery/System Monitor/Client"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
Login and become the root user. | Login and become the root user. | ||
| − | [[SUNScholar/Disaster_Recovery/Preparation| | + | ==[[SUNScholar/Disaster_Recovery/Preparation|First click here to create a PostgreSQL credentials file.]]== |
| − | Install munin as follows: | + | Then continue. |
| + | |||
| + | ==Install munin as follows:== | ||
apt-get install libdbd-pg-perl | apt-get install libdbd-pg-perl | ||
apt-get install munin-node | 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:== | ||
nano /etc/munin/munin-node.conf | nano /etc/munin/munin-node.conf | ||
| − | Add the following to the bottom of the file: | + | ===Add the following to the bottom of the file:=== |
allow $ip-address-of-monitoring-server% | allow $ip-address-of-monitoring-server% | ||
| − | Change the following: | + | ===Change the following:== |
host_name %hostname-of-client% | host_name %hostname-of-client% | ||
| − | + | ||
| − | Run the following command to check to update stats available: | + | {{NANO}} |
| + | |||
| + | ==Run the following command to check to update stats available:== | ||
munin-node-configure --shell | bash - | munin-node-configure --shell | bash - | ||
| − | Check which stats are available | + | |
| + | ==Check which stats are available== | ||
cd /etc/munin/plugins | cd /etc/munin/plugins | ||
| − | Add a firewall rule to allow the monitoring server to get the stats: | + | ls -l |
| + | |||
| + | ==Add a firewall rule to allow the monitoring server to get the stats:== | ||
ufw allow 4949 | ufw allow 4949 | ||
Revision as of 12:11, 6 September 2012
Login and become the root user.
Contents
- 1 First click here to create a PostgreSQL credentials file.
- 2 Install munin as follows:
- 3 Setup munin to allow the monitoring server to gather statistics as follow:
- 4 =Change the following:
- 5 Run the following command to check to update stats available:
- 6 Check which stats are available
- 7 Add a firewall rule to allow the monitoring server to get the stats:
First click here to create a PostgreSQL credentials file.
Then continue.
Install munin as follows:
apt-get install libdbd-pg-perl
apt-get install munin-node
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%
- 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 check to update stats available:
munin-node-configure --shell | bash -
Check which stats are available
cd /etc/munin/plugins
ls -l
Add a firewall rule to allow the monitoring server to get the stats:
ufw allow 4949
Thats it. As usual there is a lot of documentation about Munin out there.
Back to Disaster Recovery System Monitor