Search for:

Version 6 of 9.1.08, 11:25
Home - Latest - Tags - History - Referers

Create user - Lost password
Just visited:
AstRecipes»Installing Queuemetrics on Debian

And all is quiet....

AstRecipes » Installing Queuemetrics on Debian

It is quite easy to install QueueMetrics on Debian and Debian-derived systems, like the very popular Ubuntu:

star First of all, make sure you have root privilege

star Type the following commands:
Install Sun's Java SDK:

apt-get install sun-java5-jdk

Prepare the environment to run Tomcat

JAVA_OPTS="-Xms256M -Xmx512M"
export JAVA_HOME
export JAVA_OPTS

Now install Tomcat itself:

apt-get install tomcat5

Now, the default Tomcat in Debian comes with Java security enabled. This will make it not possible to read configuration files and Asterisk log files, so it must be turned off.

To do this, edit the /etc/init.d/tomcat5

# Use the Java security manager? (yes/no)
#TOMCAT5_SECURITY=yes (Default setting)

star Now you have a working Tomcat and Java subsystem, they are the toughest part of installing QueueMetrics. Now you must install QueueMetrics itself:

Follow the recipe Installing QueueMetrics from scratch from Configuring the MySQL database onwards.

Remember that to start Tomcat you must type /etc/init.d/tomcat5 start and to stop it /etc/init.d/tomcat5 stop.

Also remember that you should configure the environment variables JAVA_HOME and JAVA_OPTS at boot if you want your QueueMetrics instakll to start automatically.

Automatic startup
The command used under debian for automatic rc startup is update-rc.d

See also
star Generic QueueMetrics startup script

Thanks to Paul C. for very useful input