About istatd
istatd is a daemon serving statistics to your iStat iPhone application from Linux, Solaris & FreeBSD. istatd collects data such as CPU, memory, network and disk usage and keeps the history. Once connecting from the iPhone and entering the lock code this data will be sent to the iPhone and shown in fancy graphs.
What is iStat for iPhone?
iStat is a iPhone application developed by Bjango (http://www.bjango.com/). With iStat you can remotely monitor CPU, memory, disks, uptime and load averages from any Mac, Linux or Solaris computer from your iPhone. You can download iStat in iTunes App Store.
How to install
These steps assume you are logged in as root and have GNU build tools installed together with libxml2.
1) Download istatd-x.x.x.tar.gz
# wget http://github.com/downloads/tiwilliam/istatd/istatd-0.5.8.tar.gz
2) Extract tar ball
# tar -xvf istatd-0.5.8.tar.gz
3) Install dependencies
istatd requires GNU build tools, libxml2 and libxml2-devel.
Depending on your distribution these packages can be diffrently named.
CentOS
# yum install libxml2-devel
Ubuntu
# apt-get install libxml2-dev
4) Build istatd
# cd istatd-x.x.x
Here you can configure where you want your binary and config to end up (default /usr/local).
# ./configure
or
# ./configure --prefix=/ --sysconfdir=/etc
or
# ./configure --prefix=/usr/local/istatd
# make
# make install
5) Add user and configure directories
# useradd istat
or
# groupadd -g 150 istat
# useradd istat -d /usr/local/istatd -u 150 -g 150 -s /sbin/nologin -g istat
# mkdir -p /var/{run,cache}/istat
# chown istat.istat /var/{run,cache}/istat
6) Configure your config to match your needs and system
# vim /etc/istat.conf
or
# vi /usr/local/istatd/etc/istat.conf
Note: Don't forget to change your server_code.
7) Fire it up
# /usr/bin/istatd -d
or
# /usr/local/istatd/bin/istatd -d
— Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) CMake Error at cmake/readline.cmake:83 (MESSAGE): Curses library not found. Please install appropriate package, 와 같은 에러 발생 시,
yum -y install ncurses-devel 실행.
6. make && make install
7. groupadd mysql && useradd -g mysql -d /MySQL -s /bin/false mysql
14. vi /etc/my.cnf default-storage-engine = InnoDB innodb_force_recovery=0
15. install -m 755 /MySQL/support-files/mysql.server /etc/rc.d/init.d/mysql chkconfig —add mysql chkconfig —level 3 mysql on chkconfig —level 5 mysql on /etc/rc.d/init.d/mysql start
16. /MySQL/bin/mysql -u root -p mysql update user set password=password(‘12345’) where user=‘root’; flush privileges; /MySQL/bin/mysql -u root -p 12345