03-28-2007, 11:16 PM
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
1.) Installation
First at all we need a Debian System, like Sarge or Etch.
We install munin with apt-get:
2.) Configuration
After installation we must configure munin.
change host * to host 127.0.0.1
3.) Restart munin to bring the effect.
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"
Put this code in here:
Restart Apache to bring the effect:
6.) Check it
Now open a new Browser-Tab and check Munin:
You should see something like this:
![[Image: muninoverviewjt9.th.png]](http://img360.imageshack.us/img360/5002/muninoverviewjt9.th.png)
![[Image: muninethtrafficra5.th.png]](http://img360.imageshack.us/img360/7961/muninethtrafficra5.th.png)
![[Image: muninmemdayqn9.th.png]](http://img144.imageshack.us/img144/6219/muninmemdayqn9.th.png)
7.) .htaccess
To make it more secure, you can put a .htaccess in the directory.
Contents :
(Password can generated here under "Kennwort")
Create a .htaccess
Contents:
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
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
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

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-node2.) Configuration
After installation we must configure munin.
Code:
#vi /etc/munin/munin-node.conf3.) Restart munin to bring the effect.
Code:
/etc/init.d/munin-node restart4.) 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.confPut 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 restart6.) Check it
Now open a new Browser-Tab and check Munin:
Code:
http://www.your-domain.tld/muninYou should see something like this:
![[Image: muninoverviewjt9.th.png]](http://img360.imageshack.us/img360/5002/muninoverviewjt9.th.png)
![[Image: muninethtrafficra5.th.png]](http://img360.imageshack.us/img360/7961/muninethtrafficra5.th.png)
![[Image: muninmemdayqn9.th.png]](http://img144.imageshack.us/img144/6219/muninmemdayqn9.th.png)
7.) .htaccess
To make it more secure, you can put a .htaccess in the directory.
Code:
#vi /var/www/munin/.htpasswdContents :
Code:
USERNAME:iqhCaA/JBcng.Create a .htaccess
Code:
#vi /var/www/munin/.htaccessContents:
Code:
AuthType Basic
AuthName "Munin Graphs"
AuthUserFile /var/www/munin/.htpasswd
require user USERNAME8.) 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

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
