Conversion from Timeticks to Days/Hours/Minutes/Seconds:
1. timeticks / 100 = seconds
2. timeticks / 6000 = minutes
3. timeticks / 360000 = hours
4. timeticks / 8640000 = days
#apt-get install libvirt-bin
#mkdir -p /opt/observium && cd /opt
#cd observium
#cp config.php.default config.php
#mysql -u root –p
mysql> CREATE DATABASE observium;
mysql> GRANT ALL PRIVILEGES ON observium.* TO 'observium'@'localhost'
-> IDENTIFIED BY '';
#php includes/update/update.php
#mkdir rrd
#chown www-data:www-data rrd
DocumentRoot /opt/observium/html/
ServerName observium.domain.com
CustomLog /opt/observium/logs/access_log combined
ErrorLog /opt/observium/logs/error_log
AllowOverride All
Options FollowSymLinks MultiViews
mibs :
mibdirs /opt/observium/mibs
#a2enmod rewrite
#apache2ctl restart
#cd /opt/observium
#./adduser.php
[Example# ./adduser.php hadi hadi123 10]
#./add_device.php v2c
#./discovery.php -h all
#./poller.php -h all
33 */6 * * * root /opt/observium/discovery.php -h all >> /dev/null 2>&1
*/5 * * * * root /opt/observium/discovery.php -h new >> /dev/null 2>&1
*/5 * * * * root /opt/observium/poller-wrapper.py 1 >> /dev/null 2>&1
Download the source tarballs, these following commands will download current release of DAHDI 2.6,
LibPRI1.4 and Asterisk11.
# cd /usr/src/
# wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz
# wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/
dahdi-linux-complete-current.tar.gz
# wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz
# tar zxvf dahdi-linux-complete-current.tar.gz
# tar zxvf libpri-1.4-current.tar.gz
# tar zxvf asterisk-11-current.tar.gz
# cd /usr/src/asterisk-11.3.0/
# ./configure && make menuselect && make && make install && make samples && make config
# cd /usr/src/asterisk-11.3.0/
# ./configure --libdir=/usr/lib64 && make menuselect && make && make install && make samples
&& make config
# chkconfig dahdi on
# chkconfig asterisk on
# service dahdi start
# service asterisk start
# asterisk -rvvvvv Asterisk 11.3.0, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer markster@digium.com Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 11.3.0 currently running on tecmint (pid = 1820) tecmint*CLI>
*CLI>
-h : Help. Run '/sbin/asterisk -h' to get a list of the available command line parameters.
-C: Starts Asterisk with a different configuration file than the default /etc/asterisk/asterisk.conf.
-f : Foreground. Starts Asterisk but does not fork as a background daemon.
-c : Enables console mode. Starts Asterisk in the foreground (implies -f), with a console command line interface (CLI) that can be used to issue commands and view the state of the system.
-r : Remote console. Starts a CLI console which connects to an instance of Asterisk already
running on this machine as a background daemon.
-R : Remote console. Starts a CLI console which connects to an instance of Asterisk already
running on this machine as a background daemon and attempts to reconnect if disconnected.
-t : Record soundfiles in /var/tmp and move them where they belong after they are done.
-T : Display the time in "Mmm dd hh:mm:ss" format for each line of output to the CLI.
-n : Disable console colorization (for use with -c or -r)
-i: Prompt for cryptographic initialization passcodes at startup.
-p : Run as pseudo-realtime thread. Run with a real-time priority. (Whatever that means.)
-q : Quiet mode (supress output)
-v : Increase verbosity (multiple v's = more verbose)
-V : Display version number and exit.
-d : Enable extra debugging across all modules.
-g : Makes Asterisk dump core in the case of a segmentation violation.
-G: Run as a group other than the caller.
-U: Run as a user other than the caller
-x: Execute command (only valid with -r)