Database Problem...

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Database Problem...

Postby ruben23 » Thu Oct 08, 2009 1:05 pm

Hi, i have a multi server setup 1 asterisk server, 1 databased mysql/apache

using: astguicleint 2.0.5
Asterisk 1.2.30.2
PHP 4.4.7
mysql-4.0.27

Load average of mysql server in production(Databased server) 0.95

Problem i encounters are:

-Information of the Client on leads are displayed on delay, client already answered the phone. Also LIVECALL but client are still not answering the phone-takes a minute before it answers.
-Client already hangup the phone but still agent cant able to hangup it
-On real time monitor Dialable Leads are not displayed, also Calls today, Dropped answer information.

and i have this on my logs: httpd

[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.23] PHP Notice: Undefined variable: DB in /var/www/html/agc/vdc_db_query.php on line 387, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.23] PHP Notice: Undefined variable: length_in_sec in /var/www/html/agc/vdc_db_query.php on line 404, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.23] PHP Notice: Undefined variable: phone_code in /var/www/html/agc/vdc_db_query.php on line 405, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.23] PHP Notice: Undefined variable: phone_number in /var/www/html/agc/vdc_db_query.php on line 406, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.23] PHP Notice: Undefined variable: DB in /var/www/html/agc/vdc_db_query.php on line 422, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.14] PHP Notice: Undefined variable: NOW_TIME in /var/www/html/agc/conf_exten_check.php on line 89, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.14] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 90, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.14] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 126, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.23] PHP Notice: Undefined variable: NOW_TIME in /var/www/html/agc/conf_exten_check.php on line 89, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.23] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 90, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.23] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 126, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.14] PHP Notice: Undefined variable: DB in /var/www/html/agc/vdc_db_query.php on line 387, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.14] PHP Notice: Undefined variable: length_in_sec in /var/www/html/agc/vdc_db_query.php on line 404, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.14] PHP Notice: Undefined variable: phone_code in /var/www/html/agc/vdc_db_query.php on line 405, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.14] PHP Notice: Undefined variable: phone_number in /var/www/html/agc/vdc_db_query.php on line 406, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.14] PHP Notice: Undefined variable: DB in /var/www/html/agc/vdc_db_query.php on line 422, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.23] PHP Notice: Undefined variable: DB in /var/www/html/agc/vdc_db_query.php on line 444, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.14] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 149, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.23] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 149, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.14] PHP Notice: Undefined variable: DB in /var/www/html/agc/vdc_db_query.php on line 444, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.23] PHP Notice: Undefined variable: DB in /var/www/html/agc/vdc_db_query.php on line 2576, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.14] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 198, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.23] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 198, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.14] PHP Notice: Undefined variable: DB in /var/www/html/agc/vdc_db_query.php on line 2576, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.14] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 207, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.23] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 207, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.14] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 301, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.23] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 301, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.14] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 313, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.23] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 313, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.14] PHP Notice: Undefined variable: VD_login in /var/www/html/agc/conf_exten_check.php on line 326, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.23] PHP Notice: Undefined variable: VD_login in /var/www/html/agc/conf_exten_check.php on line 326, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.14] PHP Notice: Undefined variable: VD_login in /var/www/html/agc/conf_exten_check.php on line 334, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.23] PHP Notice: Undefined variable: VD_login in /var/www/html/agc/conf_exten_check.php on line 334, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.21] PHP Notice: Undefined variable: NOW_TIME in /var/www/html/agc/conf_exten_check.php on line 89, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.21] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 90, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.21] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 126, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.21] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 149, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.21] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 198, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.21] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 207, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.21] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 301, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.21] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 313, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.21] PHP Notice: Undefined variable: VD_login in /var/www/html/agc/conf_exten_check.php on line 326, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.21] PHP Notice: Undefined variable: VD_login in /var/www/html/agc/conf_exten_check.php on line 334, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.21] PHP Notice: Undefined variable: DB in /var/www/html/agc/vdc_db_query.php on line 387, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.21] PHP Notice: Undefined variable: length_in_sec in /var/www/html/agc/vdc_db_query.php on line 404, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.21] PHP Notice: Undefined variable: phone_code in /var/www/html/agc/vdc_db_query.php on line 405, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.21] PHP Notice: Undefined variable: phone_number in /var/www/html/agc/vdc_db_query.php on line 406, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.21] PHP Notice: Undefined variable: DB in /var/www/html/agc/vdc_db_query.php on line 422, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.21] PHP Notice: Undefined variable: DB in /var/www/html/agc/vdc_db_query.php on line 444, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.21] PHP Notice: Undefined variable: DB in /var/www/html/agc/vdc_db_query.php on line 2576, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.12] PHP Notice: Undefined variable: NOW_TIME in /var/www/html/agc/conf_exten_check.php on line 89, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.12] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 90, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.12] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 126, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.12] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 149, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.12] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 198, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.12] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 207, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.12] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 301, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.12] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 313, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.12] PHP Notice: Undefined variable: VD_login in /var/www/html/agc/conf_exten_check.php on line 326, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.12] PHP Notice: Undefined variable: VD_login in /var/www/html/agc/conf_exten_check.php on line 334, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.18] PHP Notice: Undefined variable: NOW_TIME in /var/www/html/agc/conf_exten_check.php on line 89, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.18] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 90, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.18] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 126, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.18] PHP Notice: Undefined variable: DB in /var/www/html/agc/vdc_db_query.php on line 387, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.18] PHP Notice: Undefined variable: length_in_sec in /var/www/html/agc/vdc_db_query.php on line 404, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.18] PHP Notice: Undefined variable: phone_code in /var/www/html/agc/vdc_db_query.php on line 405, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.18] PHP Notice: Undefined variable: phone_number in /var/www/html/agc/vdc_db_query.php on line 406, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.18] PHP Notice: Undefined variable: DB in /var/www/html/agc/vdc_db_query.php on line 422, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.18] PHP Notice: Undefined variable: DB in /var/www/html/agc/vdc_db_query.php on line 444, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.18] PHP Notice: Undefined variable: DB in /var/www/html/agc/vdc_db_query.php on line 2576, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.18] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 149, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.18] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 198, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.18] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 207, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.18] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 301, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.18] PHP Notice: Undefined variable: DB in /var/www/html/agc/conf_exten_check.php on line 313, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.18] PHP Notice: Undefined variable: VD_login in /var/www/html/agc/conf_exten_check.php on line 326, referer: http://192.168.2.2/agc/vicidial.php
[Fri Oct 09 01:56:27 2009] [error] [client 192.168.2.18] PHP Notice: Undefined variable: VD_login in /var/www/html/agc/conf_exten_check.php on line 334, referer: http://192.168.2.2/agc/vicidial.php

and what i do for remedy is i rebuild the mysql databased. i dump all important tables and create a new database on it again. after that the databased server operation done good no delays but after days of operation same problem had came back all specified problem still exist now.

Also i want to monitor the mysql process with mtop and other mysql monitor clinet but i cant login with cron user or root user, i got skip grants error mysql server is running --skip-grants-tables

What would best resolution for this. Hpe anyone can help. Thanks
:(
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Postby mflorell » Fri Oct 09, 2009 10:02 pm

Turn off notices in your php.ini file
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby ruben23 » Sat Oct 10, 2009 11:23 pm

mflorell..? does this possibly correct the deyaed problem of information on my agents interfaces...?
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Postby ruben23 » Sat Oct 10, 2009 11:24 pm

mflorell..? does this possibly correct the delayed problem of information details on my agents interfaces...when on dial..
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Postby ruben23 » Sun Oct 11, 2009 6:07 pm

i have also notice that, when i delete list of leads on my campaign list reducing it into 10 sets, the delayed problem i say lessen up its occurrences. means i have a good dial compare to adding more list on my campaign, but vicidial right can handle such large numbers of list, right.
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Postby mflorell » Mon Oct 12, 2009 5:55 am

Do you have host lookups disabled in mysql?

What is your database loadavg when you have these lead info delay problems?

Have you used mtop to see if there is a bottleneck as the system when this happens?
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby ruben23 » Tue Oct 13, 2009 11:43 am

My load average when this happens is only 2.0 and also i cant monitor it with mtop i got this error:

Unable to connect to as root, enter another user user:

and tried the cron user i got same here:

Unable to connect to DBI:mysql: as root or cron
t to mysql [Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)]
at main(/usr/bin/mtop:535)

and also on mysql hostlookup is disabled.

what could be the problem..


:( :( :( :(
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Postby ruben23 » Tue Oct 13, 2009 12:04 pm

Agents also experience during call porcess they get this message " you have been kicked form this conference". number of agent get this simultaneously.. :(
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 73 guests