Support / KnowledgeBase

 
Search the KnowledgeBase Search

Monitor your (dv) Dedicated-Virtual Server from your Apple iPhone with istat

  • Applies to: All (dv)

  • Difficulty: Medium

  • Time needed: 5 minutes

  • Tools needed: None

 

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.

  1. 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
  2. Extract the package:

    tar -zxvf istatd-0.5.4.tar.gz 
    cd istatd-0.5.4
  3. Configure and build.  You MUST make sure you have the Developer Tools installed:

    ./configure --prefix=/usr --sysconfdir=/etc
    make
    make install
    
  4. 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
    
  5. Start the service:

     /usr/bin/istatd -d
  6. 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 
  7. Edit the /etc/rc.local file:
    vi /etc/rc.local 
  8. Add /etc/init.d/istatreboot.sh to the bottom of the script.
  9. 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 )
     
  10. 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




User Comments

No visitor comments posted. Post a comment

Fields marked with an asterisk(*) are required. Comment on this article

Fill out the form below if you would like to comment on this article.
 
 
 

(code is not case-sensitive)
 
Submit
 
 

Continue