(dv):Monitor server from an Apple iPhone with istat
- This page was last modified on November 14, 2011, at 08:57.
From (mt) Community Wiki
Contents |
This article is provided as a courtesy. Installing, configuring, and troubleshooting third-party applications is outside the scope of support provided by (mt) Media Temple. Please take a moment to review the Statement of Support.
Overview
iStat is a great iPhone application you can use to monitor a (dv) Dedicated-Virtual Server. Here are the following steps to configure your (dv) server for iStat.
Temperatures and fans are not yet supported on Linux servers.
Requirements
Before you start, this article has the following dependencies:
- You must have the Developer Tools installed.
- You must have SSH access set up for root or a sudo user.
Instructions
Download the latest version of the istat for linux from http://github.com/tiwilliam/istatd.
wget http://github.com/downloads/tiwilliam/istatd/istatd-0.5.4.tar.gz
Extract the package:
tar -zxvf istatd-0.5.4.tar.gz cd istatd-0.5.4
Configure and build. You MUST make sure you have the Developer Tools installed:
./configure --prefix=/usr --sysconfdir=/etc make make install
Create a new user account for the program so it can run in a shielded environment:
useradd istat -s /sbin/nologin
mkdir -p /var/{cache,run}/istat
chown istat /var/{cache,run}/istat
Start the service:
/usr/bin/istatd -d
Create a script to restart service upon reboot, and add the following lines:
vi /etc/init.d/istatreboot.sh
Next, let's make the script executable.
chmod +x /etc/init.d/istatreboot.sh
Start istatd upon reboot/startup:
/usr/bin/istatd -d
Edit the /etc/rc.local file:
vi /etc/rc.local
Add /etc/init.d/istatreboot.sh to the bottom of the script. Edit the istat.conf, and change the server code to a new 5 digit number of your choosing (default is 12345):
vi /etc/istat.conf
You will also want to change the following two lines monitor_net, and monitor_disk, to match what is provided in the example istat.conf file:
# # /etc/istat.conf: Configuration for iStat server # # network_addr 127.0.0.1 # network_port 5109 server_code 12345 # server_user istat # server_socket /tmp/istat.sock # server_pid /var/run/istat/istat.pid # cache_dir /var/cache/istat monitor_net venet0 monitor_disk ( /dev/vzfs )
Now, restart istatd:
/usr/bin/istatd -d
Done. Now setup your iPhone/iPod Touch to connect.