Tuesday, April 17, 2012

Install Monitorix di Debian 6 Squeeze


Pernahkah kalian mempunyai keinginan untuk melihat statistik kinerja dari komputer server kalian? Kalau di komputer desktop sih gampang saja, tinggal buka Task Manager jika di Windows atau buka System Monitor jika di Ubuntu. Nah, lalu bagaimana kalau ceritanya di server yang notabene hanya berpenampilan teks? Monitorix lah jawabannya. Monitorix adalah sebuah aplikasi berbasis web yang dibangun dengan bahasa perl dengan fungsi untuk merekam statistik komputer server kita. Berikut adalah fitur-fitur yang dapat dilakukan oleh Monitorix :

System load average and usage (system.rrd)
System load.
Active processes.
Memory allocation.
Global kernel usage (kern.rrd)
Including user, nice, system, idle, i/o wait, irq, software irq, steal and guest.
Context switches.
Fork and vfork rates.
VFS usage (dentries, inodes and files).
Per-processor kernel usage (proc.rrd)
Including user, nice, system, idle, i/o wait, irq, software irq, steal and guest.
Supports unlimited number of processors or cores.
Ability to define the number of graphs per row.
Ability to change the size of the graphs (there are already some predefined sizes).
Ability to disable partial or completely the legend data.
HP ProLiant System Health (hptemp.rrd)
Up to 20 hardware temperature sensors supported.
Selectable ID sensors for each graph.
Using HP Command Line Utilities (hplog).
(version 8.6.0 of 10-Sep-2010 at the time of writting).
LM-Sensors and GPU temperatures (lmsens.rrd)
Up to 16 temperature sensors supported for cores.
Up to 2 temperature sensors supported for the motherboard.
Up to 4 temperature sensors supported for the CPU.
Up to 9 fan speeds supported.
Up to 12 voltages supported.
Up to 9 temperature sensors for GPU (nvidia).
NVIDIA temperatures and usage (nvidia.rrd)
Up to 9 cards supported.
Temperatures, GPU usage and memory usage (CUDA).
Disk drive temperatures and health (disk.rrd)
Up to 8 disk drives supported.
Temperatures (using smartmontools and hddtemp).
Reallocated sectors count.
Current pending sectors.
Filesystem usage and I/O activity (fs.rrd)
Up to 9 mount points supported.
Root filesystem and swap device.
Ability to hide the real name of each mount point.
Disk I/O activity of the root filesystem device.
Disk sectors activity of the root filesystem device.
Network traffic and usage (net.rrd)
Up to 10 network devices supported.
Including packet traffic and traffic error graphs.
System services demand (serv.rrd)
Ability to toggle between (I)ncremental and (L)oad values.
Including (SSH, FTP, Telnet, Samba, FAX, CUPS, Fail2ban, IMAP, POP3, SMTP, VirusMail and Spam).
Supports xinetd, Sendmail, Postfix, Dovecot, UW-IMAP, Qpopper, Hylafax, MailScanner and CommuniGate logs.
Mail statistics (mail.rrd)
Supported MTAs are Sendmail and Postfix.
Complete statistics including:
Incomming connections.
Outgoing connections.
Rejected.
Delivered.
Received.
Bounced.
Discarded.
Held.
Forwarded.
Spam.
Virus.
Number of emails in queue.
Total size of all emails in queue.
Network traffic usage.
Greylisting (milter-greylist).
Network port traffic (port.rrd)
Unlimited number of network ports supported.
Ability to select the protocol type for each port (tcp, udp, etc.).
It warns if a network port is not listening.
Users using the system (user.rrd)
Supports SSH/Login/Telnet, Samba and Netatalk.
Apache statistics (apache.rrd)
Including workers (busy and idle), CPU usage and requests/sec.
Unlimited number of Apache servers supported.
Nginx statistics (nginx.rrd)
Including connections (reading, writing, waiting), requests/sec and network traffic.
Lighttpd statistics (lighttpd.rrd)
Including workers (busy and idle), network traffic and requests/sec.
Unlimited number of Lighttpd servers supported.
MySQL statistics (mysql.rrd)
Query types per second:
Select.
Commit.
Delete.
Insert.
Insert_Select.
Update.
Replace.
Replace_Select
Rollback.
Percentage values of:
Thread cache hit rate.
Query cache usage.
Connections usage.
Key buffer usage.
InnoDB buffer pool usage.
Number of opened tables and table locks waited per second.
Number of queries and slow queries per second.
Number of connections, abort clients and abort connects per second.
Network traffic.
Unlimited number of MySQL servers supported.
Squid Proxy Web Cache statistics (squid.rrd)
Up to 19 result and status codes supported.
Overall requests (client, server, etc.).
Memory and disk storage usage.
IP cache use with requests, hits and misses.
Network protocols usage (HTTP, FTP, Gopher and WAIS).
Client and server network traffic.
NFS server statistics (nfss.rrd)
NFS v2, v3 and v4 supported.
Up to 30 defined requests supported.
Overall I/O bytes (read and written).
Network layer usage (TCP, UDP and TCPConn).
RPC usage.
Thread utilization.
Read cache usage.
File handle cache usage.
NFS client statistics (nfsc.rrd)
NFS v2, v3 and v4 supported.
Up to 32 defined requests supported.
RPC usage.
NTP statistics (ntp.rrd)
Unlimited number of NTP servers supported.
NTP timing.
Stratum level.
Reference Identifier and Kiss-o’-Death Codes.
Fail2ban statistics (fail2ban.rrd)
Unlimited number of group of jails for monitoring.
Ability to define up to 9 jails per group or graph.
Ability to define a title for every group or graph of jails.
Icecast Streaming Media Server statistics (icecast.rrd)
Unlimited number of Icecast servers supported.
Current listeners.
Bitrate.
Devices interrupt activity (int.rrd)
APIC support with up to 256 different interrupts.
Support monitoring of remote servers (Multihost).
Unlimited number of remote servers.
Ability to define the number of graphs per row.
Ability to hide the real URL of each remote server.
Support monitoring of (as gateway) Internet traffic of LAN devices.
Unlimited number of LAN devices (PC, printers, networks, etc.).
Ability to define the number of graphs per row.
Ability to enable traffic monthly reports.
Ability to send individual traffic monthly reports.
Alert capabilities supported.
CPU load average alert.
Root filesystem usage alert.
Activated when it reaches or exceeds a threshold value for an specified amount of time.
Silent mode to be able to retrieve the graphs from scripts.
Traffic statistics are stored in fixed-size databases (RRDtool).
Ability to view statistics per day, week, month or year.
Ability to view statistics in graphs or in plain text tables.
Ability to zoom in any graph to see it in more detail.
Web interface offers minimal learning, ubiquitous access.
Configuration with only one text-plain file.
Perl language based (lightweight tool).
Requires a CGI capable web server.
Supported systems: GNU/Linux, FreeBSD and OpenBSD.


Banyak kan? Nah jika kalian tertarik untuk menginstallnya caranya adalah seperti berikut :

1. Install dulu aplikasi-aplikasi pendukungnya :

apt-get install apache2 rrdtool libwww-perl libmailtools-perl libmime-lite-perl librrds-perl libdbi-perl

2. Download monitorixnya kemudian install :

wget http://www.monitorix.org/monitorix_2.5.0-izzy1_all.deb
dpkg -i monitorix_2.5.0-izzy1_all.deb


3. Untuk menjalankannya tinggal ketik perintah berikut :

/etc/init.d/apache2 start
/etc/init.d/monitorix start


4. Sekarang arahkan browser kalian ke http://ipserver/monitorix



Semoga bermanfaat :)

SUMBER

No comments:

Post a Comment