Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Specialty Builds > Servers

Reply
 
LinkBack Thread Tools
Old 05-19-07   #1 (permalink)
Security Sleuth
 
kc-tr's Avatar
 
intel nvidia

Join Date: Nov 2006
Location: root@big-brother:/$
Posts: 1,776

Rep: 120 kc-tr is acknowledged by manykc-tr is acknowledged by many
Unique Rep: 97
Hardware Reviews: 1
Trader Rating: 8
Default How To: Monitor your server with munin

More and more people are getting linux based systems up, for various things such as SMP folding, File/Web Servers, or to just learn how to use it. One of the things that almost everyone here does, no matter if you are overclocking or not, is monitor their systems, cpu usage, memory usage, cpu temp etc.. Well this guide will show you how to setup munin, a system monitoring utility for linux based systems, which will not only monitor your systems but give you very nice, and web viewable graphs of resource usage and temperatures so you can monitor from another system on your LAN or from school or work!

In this guide we will use ubuntu because alot of people are moving to this distro for its ease of use and compatibility.

First open a terminal
Main Menu>Accessories>Terminal

Once you have your terminal open type the following command.
As root:
Quote:
apt-get install munin munin-node
Using sudo:
Quote:
sudo apt-get install munin munin-node
This will install the required munin, node and server software. Once this is complete we need to configure the munin config file. To do this as previously shown, open a terminal then type the following command:
Quote:
vi /etc/munin/munin.conf
This will open the config file via the vi console based text editor. If you need help using vi use this link for a guide. Click Here
once this is open you will have a file with a bunch of information in it. The information that we need to focus on is this:
Quote:
dbdir /var/lib/munin
htmldir /var/www/munin
logdir /var/log/munin
rundir /var/run/munin

tmpldir /etc/munin/templates

[localhost.localdomain]
address 127.0.0.1
use_node_name yes
Edit these according to how your system is setup, if you are running ubuntu 7.04 you can just copy what I have here, or edit yours to look like this. You dont need to use exactly this on the localhost.localdomain section however I would recommend only editingthe portion of [localhost.localdomain]

Next we will create the directory where munin will store the output information, change the directory ownership to the user and group munin, then restart to finish the installation. To do this copy paste or enter each line below individually, or edit this according to your system.
Quote:
mkdir -p /var/www/munin
chown munin:munin /var/www/munin
/etc/init.d/munin-node restart
Once installation is complete, and the service has been restarted wait a few minutes for munin to create its first output information then visit http://localhost/munin/ to view the information. It does take a few hours for it to really start building information for it to graph however after it has been running for a while you will have something similar to these graphs shown below.

Cpu Usage


Memory Usage


Hope this is helpful for everyone, and let me know if you need any help! If you would like to see mine it is currently up and running and can be viewed by using the following link!!
http://70.243.230.82/munin/localdoma...caldomain.html
__________________
IRC nick - tgalyean / normally found in #fedora-admin

System: █۩█
CPU
E6400 @ 3.4GHz
Motherboard
DFI INFINITY P965-S
Memory
2GB G.Skill HZ
Graphics Card
XFX 7900GS 659MHz/2000MHz
Hard Drive
Raptor 74GB
Sound Card
X-FI
Power Supply
600Watt Modular w/120mm Fan
Case
Cooler Master Centerion
CPU cooling
Stock
GPU cooling
Zalman Fatal1ty FC-ZV9
OS
XP Pro x64
Monitor
Acer AL17

Last edited by Xavier1421 : 05-21-07 at 09:22 AM Reason: radnom speeling airers
kc-tr is offline kc-tr's Gallery   Reply With Quote
Old 05-19-07   #2 (permalink)
4.0ghz
 
Dezixn's Avatar
 
intel ati

Join Date: Dec 2006
Posts: 4,847

Rep: 266 Dezixn is a proven memberDezixn is a proven memberDezixn is a proven member
Unique Rep: 204
Trader Rating: 33
Default

Cool.

Any chance you know how to get fahmon to work with a vmware linux suse smp folding setup lol.
__________________
Anime rules!

System: Lenovo Y510
CPU
E8400 @ 4.0GHz
Motherboard
ASUS P5Q Pro
Memory
2x2GB @ 889MHz CAS4
Graphics Card
4870x2
Hard Drive
150GB Rapter + 2x1TB WD Green
Sound Card
X-FI XtremeMusic
Power Supply
Corsair 750TX
Case
Antec 300
OS
Vista Home Premium 64bit
Monitor
Dell 24" 1920x1200
Dezixn is offline Overclocked Account Dezixn's Gallery   Reply With Quote
Old 05-19-07   #3 (permalink)
4.0ghz
 
Puckbandit35's Avatar
 
intel nvidia

Join Date: Feb 2006
Location: Fresno, Ca
Posts: 3,358

Rep: 375 Puckbandit35 is a proven memberPuckbandit35 is a proven memberPuckbandit35 is a proven memberPuckbandit35 is a proven member
Unique Rep: 252
Trader Rating: 8
Default

THANK YOU

Great guide

+ Rep
__________________
Quote:
Originally Posted by Fatal05 View Post
Why would you want to get rid of any Valve game anyway? Its like the fine art of the gaming industry. And EA is like the struggling community college art major who can't draw a circle.
Steam Friends "justinaramian" XBL "Puckbandit35"
Gordan Freeman > Master Chief

System: Mah Baby
CPU
Intel Core 2 Q6600
Motherboard
DFI LP DK X48-T2RSB Plus
Memory
4GB G. Skill F2-8000
Graphics Card
eVGA GTX 260 Core 216
Hard Drive
750GB WD (OS) 1TB WD (Storage)
Sound Card
Onboard ATM / Logitech Z-5500's
Power Supply
FSP 700W Epsilon Quad Sli
Case
Aspire X-Navigator Blue (Painted Inside Black)
CPU cooling
Tuniq Tower
GPU cooling
Stock
OS
Windows Vista Ultimate x64
Monitor
Chiemi 22' WS 1680/1050
Puckbandit35 is offline Overclocked Account   Reply With Quote
Old 05-19-07   #4 (permalink)
Security Sleuth
 
kc-tr's Avatar
 
intel nvidia

Join Date: Nov 2006
Location: root@big-brother:/$
Posts: 1,776

Rep: 120 kc-tr is acknowledged by manykc-tr is acknowledged by many
Unique Rep: 97
Hardware Reviews: 1
Trader Rating: 8
Default

Quote:
Originally Posted by Dezixn View Post
Cool.

Any chance you know how to get fahmon to work with a vmware linux suse smp folding setup lol.
lol no, I usually just VNC into the linux box to see where she is in folding. Never have used fahmon, I think a few of the other members have, you might open a thread on it.
Quote:
THANK YOU

Great guide

+ Rep
Thanks! hope it was useful
__________________
IRC nick - tgalyean / normally found in #fedora-admin

System: █۩█
CPU
E6400 @ 3.4GHz
Motherboard
DFI INFINITY P965-S
Memory
2GB G.Skill HZ
Graphics Card
XFX 7900GS 659MHz/2000MHz
Hard Drive
Raptor 74GB
Sound Card
X-FI
Power Supply
600Watt Modular w/120mm Fan
Case
Cooler Master Centerion
CPU cooling
Stock
GPU cooling
Zalman Fatal1ty FC-ZV9
OS
XP Pro x64
Monitor
Acer AL17
kc-tr is offline kc-tr's Gallery   Reply With Quote
Old 05-19-07   #5 (permalink)
4.0ghz
 
Knitelife's Avatar
 
intel nvidia

Join Date: Mar 2007
Location: Saint Louis, MO, USA
Posts: 1,363

Rep: 302 Knitelife is a proven memberKnitelife is a proven memberKnitelife is a proven memberKnitelife is a proven member
Unique Rep: 202
Trader Rating: 9
Default

Quote:
Originally Posted by Dezixn View Post
Cool.

Any chance you know how to get fahmon to work with a vmware linux suse smp folding setup lol.

I have it working with my VMWare and Native Linux boxes. I will slap together a walkthrough for ya and post it.
__________________
System: Folding Rigs
CPU
AMD or Intel
Motherboard
Anything with a lot of GPU Slots
Memory
Just enough to fold.
Graphics Card
PPD Cruncher
Hard Drive
Smallest Possible
Power Supply
Whatever it takes
Case
Bare Naked
GPU cooling
Ton of Fans
Monitor
None
Overclock.net - 2009 Chimp Challenge Champions 25 Million+ Folding at Home points
Knitelife is offline Overclocked Account   Reply With Quote
Old 05-21-07   #6 (permalink)
Windows Wrangler
 
dhrandy's Avatar
 
amd ati

Join Date: Apr 2006
Location: Huntersville, NC
Posts: 1,853
Blog Entries: 3

Rep: 118 dhrandy is acknowledged by manydhrandy is acknowledged by many
Unique Rep: 100
FAQs Submitted: 1
Hardware Reviews: 5
Trader Rating: 0
Default

Nice guide.

System: HTPC
CPU
AMD Athlon X2 BE-2350 Brisbane 2.1GHz
Motherboard
GIGABYTE GA-MA78GM-S2H
Memory
G.SKILL 2/1GB DDR2 1066
Graphics Card
ATI Radeon HD 3200 Onboard
Hard Drive
160G SATA, 2/500G SATA, 250G IDE, 120G IDE
Power Supply
430 Watt Mad Dog
Case
Ultra Black MicroFly Aluminum Micro ATX
OS
Vista Ultimate 32
Monitor
42" RCA 1080P LCD
dhrandy is offline   Reply With Quote
Old 05-29-07   #7 (permalink)
Overclocker
 
AMD Dave's Avatar
 
intel nvidia

Join Date: May 2006
Location: Toronto, ON
Posts: 561

Rep: 50 AMD Dave is acknowledged by some
Unique Rep: 48
Trader Rating: 0
Default

Nice FAQ, although I'm unable to view the graphs on my browser.

I've gotten munin installed and loaded as per your instructions, but whenever I try to view the results in Firefox I get "Unable to Connect"

Any ideas? I am running Ubuntu 7.04

Oh and also when not the root user, i.e. Ubuntu
Quote:
chown munin:munin /var/www/munin
/etc/init.d/munin-node restart
Should be:
Quote:
sudo chown munin:munin /var/www/munin
sudo /etc/init.d/munin-node restart
EDIT: I've found away to view the graphs in Firefox using this as the address:
Quote:
file:///var/www/munin/localdomain/index.html
Although this is kind of cheating because I'm just looking at a file, and there would be know way to view it remotely (right?).
How can I view the results by entering a proper address? And how heavy is this on resources?

System: 24/7 BOINC!!
CPU
Q6600 @ 3.20 GHz, 1.400v
Motherboard
ASUS Commando
Memory
2GB Team Xtreem PC2-6400
Graphics Card
BFG 8600GTS OC
Hard Drive
250 GB Maxtor
Sound Card
SoundMAX (onboard)
Power Supply
SilverStone Zeus 750W
Case
Antec P180
CPU cooling
D-Tek Fuzion + PA120.3
GPU cooling
Stock
OS
Ubuntu and XP for games and CAD
Monitor
Acer AL2216W 22"

Last edited by AMD Dave : 05-29-07 at 01:48 PM
AMD Dave is offline   Reply With Quote
Old 05-29-07   #8 (permalink)
Security Sleuth
 
kc-tr's Avatar
 
intel nvidia

Join Date: Nov 2006
Location: root@big-brother:/$
Posts: 1,776

Rep: 120 kc-tr is acknowledged by manykc-tr is acknowledged by many
Unique Rep: 97
Hardware Reviews: 1
Trader Rating: 8
Default

Sounds like you are pretty good at researcching, which means you will be good with linux lol. You have to have apache running, make sure apache is installed and running, you can check the process list by bringing up a terminal and type in top. If it is running make sure it is running on the correct port which it should be on 80. If it is running and is on the proper port, check your firewall if installed. No it uses very little resources, because it runs as an idle process and just collects the data via system logs. Yes you can view it remotely, because before my rig went down a few days ago I have it viewable for everyone.
__________________
IRC nick - tgalyean / normally found in #fedora-admin

System: █۩█
CPU
E6400 @ 3.4GHz
Motherboard
DFI INFINITY P965-S
Memory
2GB G.Skill HZ
Graphics Card
XFX 7900GS 659MHz/2000MHz
Hard Drive
Raptor 74GB
Sound Card
X-FI
Power Supply
600Watt Modular w/120mm Fan
Case
Cooler Master Centerion
CPU cooling
Stock
GPU cooling
Zalman Fatal1ty FC-ZV9
OS
XP Pro x64
Monitor
Acer AL17
kc-tr is offline kc-tr's Gallery   Reply With Quote
Old 05-30-07   #9 (permalink)
Overclocker
 
AMD Dave's Avatar
 
intel nvidia

Join Date: May 2006
Location: Toronto, ON
Posts: 561

Rep: 50 AMD Dave is acknowledged by some
Unique Rep: 48
Trader Rating: 0
Default

Thanks, that was it, I didn't have apache installed. You might want to edit that in for those like me who don't know that.

To start running apache2 I typed into a terminal:
Code:
~$ sudo apache2 -k start
Is this the correct way to do that? Also will apache start running upon start-up, or do I have to make an entry for this in Sessions>Start-Up?

Once again thanks

System: 24/7 BOINC!!
CPU
Q6600 @ 3.20 GHz, 1.400v
Motherboard
ASUS Commando
Memory
2GB Team Xtreem PC2-6400
Graphics Card
BFG 8600GTS OC
Hard Drive
250 GB Maxtor
Sound Card
SoundMAX (onboard)
Power Supply
SilverStone Zeus 750W
Case
Antec P180
CPU cooling
D-Tek Fuzion + PA120.3
GPU cooling
Stock
OS
Ubuntu and XP for games and CAD
Monitor
Acer AL2216W 22"
AMD Dave is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 04:36 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.17904 seconds with 8 queries