vicidial Maintance.

Any and all non-support discussions

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

vicidial Maintance.

Postby mr.rizwan » Mon Mar 28, 2011 9:09 am

hi,
i have one more question. what is the best the do vicidial databases maintance? is there any tool which can delete all log over then 7 days in database? or can we set cron job which can remove all vicidial log files over then 7 days?
Thanks
Muhammad Rizwan
mr.rizwan
 
Posts: 27
Joined: Tue Feb 16, 2010 4:44 pm

Postby boybawang » Mon Mar 28, 2011 9:49 am

its better to disable all kinds of logging
then weekly you can do a DB Optimize and Repair
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Postby mr.rizwan » Mon Mar 28, 2011 12:41 pm

boybawang wrote:its better to disable all kinds of logging
then weekly you can do a DB Optimize and Repair


thanks for your reply. disable all kind of logging you mean by all asterisk logging? if yes i have then please guide me i can disable all asterisk logging from logger.conf file commenting given below these lines like this?

#[logfiles]
#console => notice,warning,error
#messages => notice,warning,error,debug,verbose

also please let me know if there is any way to disable vicidial logging? please can you guide me how can i optimize and repair vicidial database?
mr.rizwan
 
Posts: 27
Joined: Tue Feb 16, 2010 4:44 pm

Postby williamconley » Mon Mar 28, 2011 1:43 pm

don't go quite that far. and use ; instead of #
Code: Select all
[logfiles]
console => notice,warning,error
;messages => notice,warning,error,debug,verbose
this allows console to see important messages but avoids creating a messages file and using i/o and disk space

AFTER saving your changes:
Code: Select all
asterisk -rx "logger rotate"
to cause the change to take effect (this command can also be useful before and after a test to segregate the log file causing the log file to contain only the information from the time you wanted to check 8))

Also under Admin->Servers on each server you can set log file to NONE.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby mr.rizwan » Tue Mar 29, 2011 11:50 am

Thanks alot for your help and guide. my only last question regarding this topic is how can i optimize or do maintance on vicidial database. is there any script that i can use?
Thanks
mr.rizwan
 
Posts: 27
Joined: Tue Feb 16, 2010 4:44 pm

Postby williamconley » Tue Mar 29, 2011 12:03 pm

crontab -e contains many scripts (optional) for database maintenance for long-term projects. and the manual (paid version) has information for deeper vicidial understanding for long term usage as well. excellent reading for someone whose paychec may ride on this software for a few years

DO get a solid backup (backup script in /usr/share/astguiclient) immediately and learn to use the ftp option in it to push the database OFF the system nightly (the rest really doesn't need to be backed up nightly unless you have manually modified/customized web pages or configuration files).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to General Discussion

Who is online

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