¼¹ö & Ŭ¶óÀ̾ðÆ® ÇüÅ·Π±¸¼º
# apt-get -y install collectd# tree /etc/collectd
/etc/collectd
¦§¦¡¦¡ collectd.conf
¦§¦¡¦¡ collectd.conf.d
¦¢ ¦§¦¡¦¡ filters.conf
¦¢ ¦¦¦¡¦¡ thresholds.conf
¦¦¦¡¦¡ collection.conf
1 directory, 4 files
:: À¥¼ºñ½º ¼³Ä¡
# apt-get install php5 php5-cgi php5-cli php5-gd libapache2-mod-php5
:: collectd ¼³Á¤
# cat /etc/collectd/collectd.conf |grep -v "#"
Hostname "controller"
FQDNLookup true
Interval 10
Timeout 2
ReadThreads 5
LoadPlugin syslog
<Plugin syslog>
LogLevel info
</Plugin>
LoadPlugin battery
LoadPlugin cpu
LoadPlugin df
LoadPlugin disk
LoadPlugin entropy
LoadPlugin interface
LoadPlugin irq
LoadPlugin load
LoadPlugin memory
LoadPlugin network
LoadPlugin processes
LoadPlugin rrdtool
LoadPlugin swap
LoadPlugin users
<Plugin df>
FSType rootfs
FSType sysfs
FSType proc
FSType devtmpfs
FSType devpts
FSType tmpfs
FSType fusectl
FSType cgroup
IgnoreSelected true
</Plugin>
<Plugin network>
Listen "115.68.145.36" "25826"
</Plugin>
<Plugin rrdtool>
DataDir "/var/lib/collectd/rrd"
</Plugin>
<Include "/etc/collectd/collectd.conf.d">
Filter "*.conf"
</Include>
# service collectd restart
# service apache2 restart
À¥°æ·Î¿¡ ¼Ò½º ´Ù¿î·Îµå (±âº»°æ·Î: /var/www)
# git clone http://git.nethuis.nl/pub/cgp.git
# mv /var/www/cgp /var/www/monitor
È£½ºÆ® Ŭ¸¯ ÆäÀÌÁö
¡Ø È£½ºÆ® Ãß°¡ (Collectd ¼¹ö¸¦ µÎ°í °üÁ¦´ë»ó ³ëµå Ãß°¡)
# apt-get install collectd collectd-utils collectd-core
# cat /etc/collectd/collectd.conf |grep -v "#"
Hostname "Network"
FQDNLookup true
LoadPlugin syslog
<Plugin syslog>
LogLevel info
</Plugin>
LoadPlugin cpu
LoadPlugin df
LoadPlugin disk
LoadPlugin entropy
LoadPlugin interface
LoadPlugin irq
LoadPlugin load
LoadPlugin memory
LoadPlugin network
LoadPlugin processes
LoadPlugin swap
LoadPlugin users
<Plugin df>
FSType rootfs
FSType sysfs
FSType proc
FSType devtmpfs
FSType devpts
FSType tmpfs
FSType fusectl
FSType cgroup
IgnoreSelected true
</Plugin>
<Plugin network>
Server "115.68.145.36" "25826" ### ·Î±× µ¥ÀÌŸ ¼öÁýÇÒ ¼¹ö·Î ¼³Á¤
</Plugin>
<Plugin rrdtool>
DataDir "/var/lib/collectd/rrd"
</Plugin>
<Include "/etc/collectd/collectd.conf.d">
Filter "*.conf"
</Include>
# service collectd restart