How to Install trixboxGraph on trixbox under Centos 5
Under earlier version of trixbox < 2.6.0 (running under Centos4.?) you can install trixboxGraph using ‘yum install’. However, trixboxGraph is not available in the trixbox 2.6.0 / Centos 5 repositories so you have some work to do. This worked for me YMMV.
Download the trixboxGraph rpm package to a temporary directory on your trixbox server. Further details about the package if required.
cd /tmp wget http://yum.trixbox.org/centos/4/RPMS/trixboxGraph-0.1.0-1.noarch.rpm
Try a test install to see the dependancy errors
rpm --test -Uvh trixboxGraph-0.1.0-1.noarch.rpm
This will throw up errors such as:
error: Failed dependencies: graphviz-gd >= 2.12 is needed by trixboxGraph-0.1.0-1.noarch ghostscript >= 8.15.1 is needed by trixboxGraph-0.1.0-1.noarch
To solve the second requirement first
yum install ghostscript
This will install ghostscript and 9 other packages that it requires. During this you may need to answer Yes [y] to a request to import a GPG key.
You can download the rpms for graphviz-gd for Centos5 from this site.
There you can get graphviz and graphviz-gd from a Centos5 repo.
wget http://www.andreas-mueller.com/mrepo/centos5-i386/RPMS.epel/graphviz-gd-2.12-8.el5.i386.rpm
wget http://www.andreas-mueller.com/mrepo/centos5-i386/RPMS.epel/graphviz-2.12-8.el5.i386.rpm
If you run an rpm test on graphviz you may / will get the following errors:
error: Failed dependencies: libXaw.so.7 is needed by graphviz-2.12-8.el5.i386 libXmu.so.6 is needed by graphviz-2.12-8.el5.i386
These can be fixed with a
yum install libXaw libXmu
Then install the graphviz packages
rpm -Uvh graphviz-2.12-8.el5.i386.rpm rpm -Uvh graphviz-gd-2.12-8.el5.i386.rpm
Now having sorted out all the dependancies (hopefully) you can install trixboxGraph
rpm -Uvh trixboxGraph-0.1.0-1.noarch.rpm
Then you can point you browser at
http://your-trixbox-ip/trixboxGraph
and plot your dialplan graphically.
If this does not work go back and check the various stages of the install process.
trixboxGraph and trixbox 2.6
It appears that the trixboxGraph code needs updating for queues to be recognised and handled correctly. If you include queues in the output you may or will get the error:
select distinct id from queues => Table 'asterisk.queues' doesn't exist
Apart from this other features appear to work.
Hack to get queues to be displayed
A couple of edits to the file /var/www/html/trixboxGraph/index.php seem to overcome the queue error and get queues displayed. The details are here in my post on the trixboxGraph thread on the trixbox forum
Links
More info on graphviz on the Graphviz website