Tag Archive for 'repositori'

Page 2 of 2

Sysstat

Karena nggak berhasil install Phpsysinfo :( Jadi selarang kita coba Sysstat dech :D

Tapi sebelum mulai, apa sih Systat itu?

Jawab: Semacam paket utiliti yang mungkin membantu System Admin mengumpulkan informasi performa dan mencatatnya (kira-kira begitu).

Installnya juga cukup mudah:

[root@fidzNux hafidz]# yum install sysstat
Setting up Install Process
Setting up repositories ……

Installed: sysstat.i386 0:5.0.5-7.rhel4
Complete!
Alhamdulillah…. Selesai deh

[root@fidzNux ~]# sar
Linux 2.6.9-34.EL (fidzNux) 08/27/2006

Selanjutnya kita buat sar running setiap hari

[root@fidzNux ~]# more /etc/cron.d

*** /etc/cron.d: directory ***

[root@fidzNux ~]# more /etc/cron.d/sysstat
# run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib/sa/sa1 1 1
# generate a daily summary of process accounting at 23:53
53 23 * * * root /usr/lib/sa/sa2 -A
Ada dua script yang dihasilkan: sa1 mempunyai output dalam format binary Sysstat, dan sa2 dalam bentuk text biasa yang bisa kita baca. Report dari dua script ini tersimpan dalam direktori /var/log/sa

[root@fidzNux ~]# ls /var/log/sa
sa27 sar27

—-> angka 27 merupakan hari sekarang

[root@fidzNux ~]# sar
Linux 2.6.9-34.EL (fidzNux) 08/27/2006

05:00:01 AM CPU %user %nice %system %iowait %idle
05:10:01 AM all 0.18 0.00 0.08 0.23 99.51
Average: all 0.18 0.00 0.08 0.23 99.51

Kita bisa melihat penggunaan CPU, kerja internal CPU, dan delay waktu yang dibutuhkan dalam proses input/output.

Kita juga bisa melihat status penggunaan swap.

[root@fidzNux ~]# sar -W
Linux 2.6.9-34.EL (fidzNux) 08/27/2006

05:00:01 AM pswpin/s pswpout/s
05:10:01 AM 0.00 0.00
05:20:01 AM 0.00 0.00
Average: 0.00 0.00

Untuk melihat system load gunakan command berikut:[root@fidzNux ~]# sar -q
Linux 2.6.9-34.EL (fidzNux) 08/27/2006

05:00:01 AM runq-sz plist-sz ldavg-1 ldavg-5 ldavg-15
05:10:01 AM 3 64 0.07 0.02 0.00
05:20:01 AM 0 70 0.07 0.23 0.11
Average: 2 67 0.07 0.12 0.06

phpsysinfo

Ikutan install phpsysinfo aaah…. iseng-iseng nunggu subuh….

[root@fidzNux hafidz]# yum install phpsysinfo
Setting up Install Process
Setting up repositories
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading metadata in from local files
primary.xml.gz 100% |=========================| 103 kB 00:03
update : ################################################## 256/256
Added 256 new packages, deleted 0 old in 2.66 seconds
primary.xml.gz 100% |=========================| 554 kB 00:31
base : ################################################## 1450/1450
Added 1450 new packages, deleted 0 old in 9.83 seconds
primary.xml.gz 100% |=========================| 157 B 00:00
Added 0 new packages, deleted 0 old in 0.00 seconds
primary.xml.gz 100% |=========================| 48 kB 00:02
extras : ################################################## 214/214
Added 214 new packages, deleted 0 old in 1.12 seconds
Parsing package install arguments
No Match for argument: phpsysinfo
Nothing to do

Continue reading ‘phpsysinfo’