Step by step procedure for installing Sarg Log Analyzer Rumi, April 17, 2009 Installation of the sarg log analyzer: 1) Download the packeg to “/usr/local/src” directory cd /usr/local/src wget -nd http://downloads.safesquid.net/free/general/precompiled/sarg-2.2.3.1.tar.gz 2) Untar the packeg by following command tar -xvzf sarg-2.2.3.1.tar.gz 3) Compile the sarg package cd sarg-2.2.3.1 ./configure make make install 4) Edit configuration file as shown bellow vi /usr/local/sarg/sarg.conf # TAG: access_log file # Where is the access.log file # sarg -l file # access_log /opt/safesquid/safesquid/logs/access/access.log # TAG: title # Especify the title for html page. # #title “Squid User Access Reports” title “Safesquid User Access Reports” # TAG: output_dir # The reports will be saved in that directory # sarg -o dir output_dir /var/www/html/sarg 5) Make output directory for sarg report mkdir /var/www/html/sarg All report are genrated in this directory 6) To Generate the logreport, simply run the command sarg 7) To generate the log report by the cron job you can make entry in “/etc/crontab” file 00 23 * * * root /usr/bin/sarg It will generate the log report every day at 11.00 P.M 8) You can also see all command line switches by following command sarg -h 9) Example To genrate report by manually :-> # If you want log report of the 10/11/2007 date you can give the command sarg -d 10/11/2007 (dd/mm/yyyy) # If you want log report from 10/11/2007 to 10/12/2007 then run this command sarg -d 10/11/2007-10/12/2007 (dd/mm/yyyy-dd/mm/yyyy) 10) To view the log report generated by sarg start httpd serverice /etc/init.d/httpd start And browes url “http://ip_of_linux box/sarg” eg. http://10.0.0.1/sarg Related Administrations Configurations (Linux)
How to correctly install wkhtmltopdf on debian 64 bit? February 27, 2017 Ubuntu and Debian packages are compatible most times but not in all cases, i think this is the trouble you’re having you’re trying to use the Ubuntu’s .deb for Debian instead you should get the Debian specific file, (it works for both jessie and wheezy) wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-wheezy-amd64.deb sudo dpkg -i… Read More
zimbra admin password reset October 4, 2012 To reset the administrative password: su – zimbra zmprov sp <admin email address> <new password> To get a list of all administrators: su – zimbra zmprov gaaa To access the admin console: https://YOURHOST:7071 Remember that the administrative console (sometimes) requires a full email address as the login name, so you… Read More
Hiding X-Powered by on JBoss Application Server 4.22.x April 20, 2012 JBoss can add headers in the HTTP response. The X-Powered-By header exposes what implementation is behind your site. This header is created by a servlet filter that is activated by default in JBoss web configuration files (…/usr/java/jboss-4.2.2.GA/server/default/deploy/jboss-web.deployer/conf/web.xml). You can either disable this filter by commenting the following lines: <filter>… Read More