1 (edited by Rashef 2010-01-23 20:46:36)

Topic: How to monitor server health with iStat and an iPhone

iStat is a simple monitoring tool which allows to know the status of your iPhone and the general health of both Linux and Mac OS servers. The client is available only for iPhone at very low price (.99$ or .79€) while server-side software is totally free.
This is what the app shows about your iPhone:

http://www.iredmail.org/forum/misc.php?item=37

You can easily install iStat daemon on your CentOS Linux using the provided RPM:

# wget http://istatd.googlecode.com/files/istatd-0.5.4-1.el5.rych.i386.rpm
# rpm -ivh istatd-0.5.4-1.el5.rych.i386.rpm

Now you have to edit /etc/istat.conf for settings and preferences. You need to set network_port and server_code at least to have it working. iStat is able to monitor only one network interface per time through monitor_net option.
I used monitor_disk and disk_rename_label options to list the needed partitions in human readable format.
This is my config file (my code is obscured of course):

#
# /etc/istat.conf: Configuration for iStat server
#

#network_addr             127.0.0.1
network_port             5109
server_code              *****
# server_user            nobody
# server_group           nobody
# server_socket          /tmp/istatd.sock
# server_pid             /var/run/istat/istatd.pid
# cache_dir              /var/cache/istat

# Note: Only support for one network interface, limited by client.
monitor_net              ( eth2 )

# Array of disks to monitor. Specify mount path or device name.
monitor_disk             ( /dev/sda1 /dev/mapper/VolGroup00-LogVol00 )

# Set to 1 if you want to use mount path as label instead of the device name.
disk_mount_path_label    0

# Try to probe the filesystem for disk label, will override the mount path label.
disk_filesystem_label    1

# Set custom disk label. Will override all other labels.
disk_rename_label        /dev/mapper/VolGroup00-LogVol00  "RAID"
disk_rename_label        /dev/sda1      "boot"

# End of file

Don't forget to configure iptables to allow access to the choosen port.

Post's attachments

IMG_0179.PNG
IMG_0179.PNG 110.23 kb, 2 downloads since 2010-01-23 

You don't have the permssions to download the attachments of this post.

2 (edited by Rashef 2010-01-23 20:44:49)

Re: How to monitor server health with iStat and an iPhone

This is the result:

http://www.iredmail.org/forum/misc.php?item=38

This is clearly not a comprehensive monitoring tool but a simple tool to check your server about memory, network and CPU.

Post's attachments

IMG_0178.PNG
IMG_0178.PNG 95.66 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

3

Re: How to monitor server health with iStat and an iPhone

Added as iRedMail FAQ now: http://www.iredmail.org/faq.html
Thanks for your contribution smile

4

Re: How to monitor server health with iStat and an iPhone

Images are broken....

5

Re: How to monitor server health with iStat and an iPhone

terciof wrote:

Images are broken....

Works fine for me.