Monitor your (dv) Dedicated-Virtual Server from your Apple iPhone with istat
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.
NOTE:
Temperatures and fans are not yet supported on Linux servers.
- Download the latest version of the istat for linux from http://code.google.com/p/istatd/
wget http://istatd.googlecode.com/files/istatd-0.5.4.tar.gz - Extract the package:
tar -zxvf istatd-0.5.4.tar.gzcd 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# 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):
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:vi /etc/istat.conf# # /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.
Notes/Supplemental Resources:
Revisions:
10-12-2009: Updated several commands and links
07-27-2009: Updated step 5, thanks Michael
06-29-2009: Article Creation
Fields marked with an asterisk(*) are required. Comment on this article