Page 1 of 1

VDadapt should be on which server?

PostPosted: Thu Jun 28, 2012 3:38 pm
by KeithHBW
I think I am missing a keepalive (AST_VDadapt.pl) because my CALLS TODAY, DROPPED / ANSWERED, DROPPED PERCENT arent being updated.

Basically I have the following setup
64bit - DB server
ws1 - webserver
dialer1 - dialer

And is it one of the keepalives I only want running on one one server? As I will be adding more webservers and dialers here soon.

Re: VDadapt should be on which server?

PostPosted: Thu Jun 28, 2012 4:24 pm
by mflorell
yes, that process should only be running on one server in a multi-server cluster. It doesn't really matter which one, we usually put it on the defined voicemail server.

Re: VDadapt should be on which server?

PostPosted: Thu Jun 28, 2012 4:45 pm
by KeithHBW
Okay I had it on my DB server and my webserver. However, neither of those show anything when I do screen -ls
I will remove it from my DB server, but how do I make those keepalives run on the webserver?

Re: VDadapt should be on which server?

PostPosted: Fri Jun 29, 2012 6:30 am
by mflorell
The server you put it on has to have a Servers entry in the system(with Active Asterisk set to N of course for a web or DB server) or it will not run properly.

Re: VDadapt should be on which server?

PostPosted: Fri Jun 29, 2012 9:57 am
by KeithHBW
I added the web server as a server. I set active asterisk to N for the web server and DB server. However, screen -ls still reports: "No Sockets found in /var/run/screens/S-root." on the web server


If I run the script manually it works... but then when I end it I check screen -ls and its not showing and it stops updating those statistics. I just need to know how to get these scripts to run on startup. Anyone?

I ran perl ADMIN_keepalive_ALL.pl
which started the services, however these still dont start on bootup but I can probably figure this out.

Re: VDadapt should be on which server?

PostPosted: Sat Jun 30, 2012 6:33 am
by fibres
Hi Keith

Check your crontab on the machine that should be running these scripts and check for the following entry.

* * * * * /usr/share/astguiclient/ADMIN_keepalive_ALL.pl

on mine it is the first line in my crontab. This causes the script to be run I think once a minute to make sure all needed scripts are running.

Also check your /etc/astguiclient.conf to ensure that "VARactive_keepalives =>" Has a 5 in its list as this is the number for VDadapt.

Regards

Re: VDadapt should be on which server?

PostPosted: Mon Jul 02, 2012 4:34 pm
by KeithHBW
I got it setup such that my database server now has a crontab. However, it still shows nothing in the screen -ls. But it is only running options 579. As soon as I can call on it I will be able to test if the keepalive is working as intended (I think it will).