Running Allmon2

Installing a webserver(Edit)

As the image was cleaned before it was distributed, there is no repository cache's left. This needs to be updated and then the http server installed. When logged on as superuser:

apt-get update
apt-get install lighttpd

As all of our logging is done in ram, the lighttpd server will be unhappy that there is no lighttpd folder in the log area. The /etc/fstab file needs to be edited. You need to find the Lighttpd user. to do this, type the following:

id -u www-data

The number returned is the user of www-data. So, to give this user permissions to log stuff, Add the following line at the end of /etc/fstab file, changing {user number} to the number given on the above command:

tmpfs   /var/log/lighttpd       tmpfs   rw,user,uid={user number},mode=777,exec,size=5M  0 0

Now type

service lightttpd start
to start the web server.

To check the installation, type http://{your-nodes-ip-address} into your favourite web browser. You should be presented with a web page stating lighttpd has been installed.

This is only half the battle. Allmon needs PHP as well

Installing PHP(Edit)

To install PHP, and enable it onto the server, the following command needs to be typed:

apt-get install php5-common php5-cgi php5
lighty-enable-mod fastcgi-php
Then reload the webserver:
service lighttpd force-reload

The permissions of the web server folder need changing to allow pi user to edit files:

chown -R www-data:www-data /var/www
chmod -R 775 /var/www
usermod -a -G www-data pi

Download Allmon(Edit)

The VKlink team have modified allmon to suit our server and colour schemes. A copy of the modified version is available from the VKlink server at

Download and unzip Allmon

cd /var/www

To test that php has installed correctly, goto http://{your-nodes-ip-address} and allmon should load.

Setting up allmon(Edit)

All the information required to set up allmon is in the README file. A better explanation is here:

You need to edit your manager.conf to allow remote access. This can be done via the Main Setup Menu or via the command line:

nano /etc/asterisk/manager.conf

edit the file accordingly:

displaysystemname = yes
enabled = yes
webenabled = yes
port = 5038

;httptimeout = 60
; a) httptimeout sets the Max-Age of the http cookie
; b) httptimeout is the amount of time the webserver waits
;    on a action=waitevent request (actually its httptimeout-10)
; c) httptimeout is also the amount of time the webserver keeps
;    a http session alive after completing a successful action

bindaddr =   ; ****Change this to to allow connections remotely
;displayconnects = yes
; Add a Unix epoch timestamp to events (not action responses)
;timestampevents = yes

[admin]                   ;*******username*************
secret =password          ;*******your-password********
read = all,system,call,log,verbose,command,agent,user,config
write = all,system,call,log,verbose,command,agent,user,config

Specifically, port=, enabled=yes, bindaddr= and the username and secret fields need to be edited. You need all this info for allmon.

To set up Allmon, Our example node is going to be 1350.

Edit /var/www/allmon.ini.php:

[My Nodes]


Changing the data to match what is in manager.conf and suits your node. The first section is not needed, but you can show other nodes with it if you have the login data.

We also need to set a admin username for the web interface. The Apache utils need to be installed for this to work. From the Prompt, type:

apt-get -y install apache2-utils

Once that is installed, type:

cd /var/www
htpasswd -c .htpasswd admin

You will be asked for a password twice. You do not have to use admin, any username can be used.

If after you do the password and cannot log into allmon, run the following commands:

cd /var/www
rm .htaccess
htpasswd -c -d .htpasswd admin

This will force the encryption PHP uses.

Getting the Node Database(Edit)

To allow a dynamic updating of the database every 24 hours crontab needs to be edited and the file made executable:

chmod +x /var/www/astdb.php
crontab -e

Now enter the following:

7 3 * * * cd /var/www && ./astdb.php > /dev/null

Now you will be able to see your node in real time, and control it from your browser. If you want to be able to control it from anywhere on the net, read on.

External Access(Edit)

To allow external access to your allmon, you need to port forward port 80 on your router to your node.

Once this is done from any browser, type http://{your-public-ip} and you can access it:

If you have a fqdn, type that in.....

To put it onto the VKLink status page, go into the Main Setup Menu and go into public information. Scroll down to Change your allmon Site address.

Enter your address, including http:// and it will appear on

Advanced Stuff | Main page