Monday, March 14, 2011

Crontab Sarg

I am using GNU/Linux OpenSUSE 11.3 as server operating system for this tutorial.  Make easy to read your squid access report, install the sarg application follow this link. With sarg you can monitor the user activities that using squid as the cache server. To make the sarg report automatically using cron please follow this instruction. If u have problem yo can comment in this page or yoy can mail me faturr [at] gmail.com. Thank you for reading.

$ sudo vi /etc/sysconfig/sarg
RUN_SARGREPORT=yes


$ sudo crontab -e
#sarg
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
00 08-18/1 * * * sarg-reports today
00 00 * * * sarg-reports daily
00 01 * * 1 sarg-reports weekly
30 02 1 * * sarg-reports monthly

The preview edit is look like like this image.



The sarg report is look like this.

Problem with installation and configuration? We can help you or your company. Call +62 888 198 0879 or +62 821 337 600 29.

Monday, March 7, 2011

Linux command


Perintah du (disk usage) digunakan untuk meengetahui besaran dari file yang akan ditampilkan dalam layar monitor, untuk mengetahui detail yang bisa dihsilkan oleh perintah du bisa menggunakan 'man du' (tanpa tanda kutip)
$man du 

NAME
       du - estimate file space usage


SYNOPSIS
       du [OPTION]... [FILE]...
       du [OPTION]... --files0-from=F


DESCRIPTION
       Summarize disk usage of each FILE, recursively for directories.

Sample of du command: 


fatur@123$ du -ah --time *
19M 2011-03-07 10:27 20110307/To_20110304/aa.mdb
1.6M 2011-03-07 11:07 20110307/To_20110304/nn.rar
404K 2011-03-07 11:04 20110307/To_20110304/4.rar
1.2M 2011-03-07 10:27 20110307/To_20110304/gg.rar