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:
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.
----Urgent issue? Pay iRedMail developer to solve it remotely at $29.