Segmentation Fault di SARG

tuxTiba-Tiba saja SARG tidak menampilkan informasi dalam bentuk html, pada saat link sarg di akses di http://%5Bip address sarg]/sr/daily, muncul error “Page Cannot be displayed“, dan jika menggunakan command line untuk eksekusi sarg, maka muncul error seperti ini :

[root@localhost ~]# sarg.harian
SARG: TAG: language Indonesian
SARG: TAG: access_log /var/log/squid/access.log
SARG: TAG: temporary_dir /tmp/sarg
SARG: TAG: output_dir /var/www/html/sr
SARG: TAG: lastlog 20
SARG: TAG: remove_temp_files yes
SARG: TAG: overwrite_report yes
SARG: TAG: long_url yes
SARG: (util) tbuf=2007Jul18189, reading: 0.00%
SARG: (util) period=2007Jul18-2007Jul19
SARG: Records in file: 5354189, reading: 100.00%
SARG: (util) data=07/19/2007
SARG: (util) tbuf=2007Jul19
SARG: (util) period=2007Jul18-2007Jul19
SARG: (util) dirname=/var/www/html/sr/daily/2007Jul18-2007Jul19
SARG: (util) wdir=/var/www/html/sr/daily/2007Jul18-2007Jul19
/usr/sbin/sarg.harian: line 9: 13039 Segmentation fault /usr/bin/sarg -i /var/log/squid/access.log -o /var/www/html/sr/daily -z -d $YESTERDAY-$TODAY

Maka solusinya adalah download patch disini

Nama filenya adalah : sarg-2.2.3.1-log.patch.gz
lakukan extrak file tersebut

[adi@localhost tmp]$ ll
total 16308
-rw-r–r– 1 adi adi 292 Jul 19 09:24 sarg-2.2.3.1-log.patch.gz
[adi@localhost tmp]$ gzip -d sarg-2.2.3.1-log.patch.gz
[adi@localhost tmp]$ ll
total 16308
-rw-r–r– 1 fokus fokus 482 Jul 19 09:24 sarg-2.2.3.1-log.patch

Simpan dalam direktori source sarg
ubah nama sarg-2.2.3.1-log.patch menjadi log.patch

lalu
#patch -p0 < log.patch

lalu compile ulang

# make install

Dan ini adalah konfigurasi sarg.conf terakhir seperti ini.
[root@localhost ~]# sarg.harian
SARG: TAG: language Indonesian
SARG: TAG: access_log /var/log/squid/access.log
SARG: TAG: temporary_dir /tmp
SARG: TAG: output_dir /var/www/html/sr
SARG: TAG: lastlog 20
SARG: TAG: remove_temp_files yes
SARG: TAG: overwrite_report yes
SARG: TAG: long_url no
SARG: (util) tbuf=2007Jul19, reading: 0.00%
SARG: (util) period=2007Jul19-2007Jul19
SARG: Records in file: 8283, reading: 100.00%
SARG: (util) data=07/19/2007
SARG: (util) tbuf=2007Jul19
SARG: (util) period=2007Jul19-2007Jul19
SARG: (util) dirname=/var/www/html/sr/daily/2007Jul19-2007Jul19
SARG: (util) wdir=/var/www/html/sr/daily/2007Jul19-2007Jul19
SARG: Berhasil melaporkan pada /var/www/html/sr/daily/2007Jul19-2007Jul19

Selanjutnya lakukan tes ke alamat sarg.

Semoga bermanfaat

Adi Maulana

5 responses to “Segmentation Fault di SARG

  1. Pingback: sarg 2.2.3.1 segmentation fault ! | nrkhlsmjd is not stand for...

  2. terimakasih ya mas..😀

  3. os + sarg nya sebutin coy.. 64bit apa i386

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s