Poll: Is this HowTo helpful ?
Yes it is!
No, not really!
[Show Results]
 
Post Reply  Post Thread 
Pages (3): « First [1] 2 3 Next > Last »
1 Votes - 5 Average   [HowTo] Get some nice Server graphs with Munin
Author Message
BeNe
Moderator
*****


Posts: 2,557
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 35
Post: #1
[HowTo] Get some nice Server graphs with Munin

Hello everybody,

with Omega you have a perfect tool to manage your Resellers and Customers on your Server.
It is easy and good to handle.
Sometimes it is also good to know, what your Machine does.
I mean CPU Load, Memory usage, Traffic, Mailtraffic, MySQL Stats and so on.

On Linux system is it very easy to make some nice Graphs about these.
And every Sysadmin love Graphs Wink

1.) Installation

First at all we need a Debian System, like Sarge or Etch.
We install munin with apt-get:

Code:
#apt-get install munin munin-node


2.) Configuration

After installation we must configure munin.

Code:
#vi /etc/munin/munin-node.conf

change host * to host 127.0.0.1

3.) Restart munin to bring the effect.

Code:
/etc/init.d/munin-node restart


4.) Bring munin and apache together

Munin is automatic creating a Directory under "/var/www/munin"
and set a cronjob that every 5min generate new graphs.
The only thing that we have to do, is to set this path in the Apache config. Here we need to create a new file under "/etc/apache2/sites-enabled/munin.conf"

Code:
#vi /etc/apache2/sites-enabled/munin.conf


Put this code in here:

Code:
Alias /munin "/var/www/munin"

<Directory /usr/lib/cgi-bin/awstats>
   AllowOverride AuthConfig
  Options FollowSymLinks ExecCGI
</Directory>


Restart Apache to bring the effect:

Code:
/etc/init.d/apache2 restart


6.) Check it

Now open a new Browser-Tab and check Munin:

Code:
http://www.your-domain.tld/munin


You should see something like this:



7.) .htaccess

To make it more secure, you can put a .htaccess in the directory.

Code:
#vi /var/www/munin/.htpasswd


Contents :

Code:
USERNAME:iqhCaA/JBcng.

(Password can generated here under "Kennwort")

Create a .htaccess

Code:
#vi /var/www/munin/.htaccess


Contents:

Code:
AuthType Basic
AuthName "Munin Graphs"
AuthUserFile /var/www/munin/.htpasswd
require user USERNAME


8.) Put it in your VHCS Menu

Log in as Admin -> Settings -> Custom Menus

Button name : munin
Button link : http://www.your-domain.tld/munin
Button target: http://www.your-domain.tld/munin
Show in: Administrator Level (or change it if you want)
Save.

Dont forget to wait 5min for the first Graphs Wink

Here are some Munin directories:
--------------------------------------------------------
# The Munin-Directory for Data
dbdir /var/lib/munin

# Munin -Directory for generated Websites
htmldir /var/www/munin

# The Munin logfiles
logdir /var/log/munin

# Temporary run files (pid file etc)
rundir /var/run/munin

# HTML Templates for the Munin Layout
tmpldir /etc/munin/templates

#Munin Plugin Direcotry
/usr/share/munin/plugins
-----------------------------------------------------------

Greez BeNe




:: ispCP Omega RC5 Live Demo - r1267 (19.05.08) --> http://www.isp-control.net/forum/ispcp-o...ml#pid2169 <--

This post was last modified: 03-28-2007 11:24 PM by BeNe.

03-28-2007 11:16 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BioALIEN
Junior Member
**
Graph Team

Posts: 209
Group: Graph Team
Joined: Feb 2007
Status: Offline
Reputation: 0
Post: #2
RE: [HowTo] Get some nice Server graphs with Munin

Great HowTo. This is the exact reason why I want you to run the FAQ section Smile
You can also install phpsysinfo (PHP) open source project to get a good overview and stats.

Thanks and I look forward to seeing more HowTos in the future.


BioALIEN
OS: Debian 4.0 Etch
ispCP Build: RC3 r953 - 28.12.07
Mods: AWStats dynamic

This post was last modified: 03-29-2007 02:11 AM by BioALIEN.

03-29-2007 02:10 AM
Find all posts by this user Quote this message in a reply
soringo
Junior Member
*


Posts: 33
Group: Registered
Joined: Feb 2007
Status: Offline
Reputation: 0
Post: #3
RE: [HowTo] Get some nice Server graphs with Munin

Amazing....that's so ..... great !!!

I've used CACTI for a long time but this is so easy...you dont need any special skills.

03-29-2007 07:07 PM
Find all posts by this user Quote this message in a reply
BeNe
Moderator
*****


Posts: 2,557
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 35
Post: #4
RE: [HowTo] Get some nice Server graphs with Munin



:: ispCP Omega RC5 Live Demo - r1267 (19.05.08) --> http://www.isp-control.net/forum/ispcp-o...ml#pid2169 <--
05-30-2007 06:23 PM
Visit this user's website Find all posts by this user Quote this message in a reply
MrLight
Junior Member
*


Posts: 42
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 1
Post: #5
RE: [HowTo] Get some nice Server graphs with Munin

Great Work.

Maybe to ad this feacher in 1.1.0?

Mr Light :-)


My Fedora setup v.01: fedora_config_v01.zip (Still not implemented)

My PHP4 Installscript for Fedora Core 6 X86_64: configphp_opt_fedora_6_X86_64.zip
(The php-4.4.6.tar.bz2 file must be in the same folder like the script. After Script finished, cd php-4.4.6;make;make install)
05-30-2007 07:30 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe
Moderator
*****


Posts: 2,557
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 35
Post: #6
RE: [HowTo] Get some nice Server graphs with Munin

We have allready discuss about it.
There are also some other good Programms on the web with much more
functions than only display graphs. We will see.




:: ispCP Omega RC5 Live Demo - r1267 (19.05.08) --> http://www.isp-control.net/forum/ispcp-o...ml#pid2169 <--
05-30-2007 07:38 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Janko
Junior Member
*


Posts: 75
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #7
RE: [HowTo] Get some nice Server graphs with Munin

hi all,

how can i add more server to one overview ?

thanks for your answer Wink

greeds
sebastian

06-13-2007 03:20 PM
Find all posts by this user Quote this message in a reply
BeNe
Moderator
*****


Posts: 2,557
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 35
Post: #8
RE: [HowTo] Get some nice Server graphs with Munin

You can Munin only use on the localhost.
For your needs check 'cacti'




:: ispCP Omega RC5 Live Demo - r1267 (19.05.08) --> http://www.isp-control.net/forum/ispcp-o...ml#pid2169 <--
06-13-2007 03:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BarthezZ
Junior Member
*


Posts: 14
Group: Registered
Joined: Jan 2007
Status: Offline
Reputation: 0
Post: #9
RE: [HowTo] Get some nice Server graphs with Munin

For some strange reason i'm not getting any graphs... just empty docs and some menu structure :x
debian sarge

06-14-2007 07:08 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ephigenie
Administrator
*******
Administrators

Posts: 570
Group: Administrators
Joined: Oct 2006
Status: Offline
Reputation: 9
Post: #10
RE: [HowTo] Get some nice Server graphs with Munin

however in fact you can munin run on more than one node and send the results to one central host.

06-14-2007 05:41 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Pages (3): « First [1] 2 3 Next > Last »
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump:

| All rights reserved : isp-control.net |