Monitoring Opensolaris from iPhone / iPad using iStat

Well after I tried myself months ago to get istatd to compile on my Opensolaris box (token) someone smarter and who is not as lazy has worked it all out and got it to compile. One thing he did not do tho was write an init script so that it would start @ boot time. Here you can find it.

Please follow the install instructions on the following blog - I have written scripts, included a sample configuration and written a init script.

Karim Berrah's Weblog

Compile Script (Place in parent dir to source code):



export ACLOCAL110
export AUTOMAKE110
export AUTOCONF26

cd ${DIR}${VER}
if [ $? -ne 0 ]; then
echo "ERROR with configure"


echo "--> Finished compiling ..."

pfexec useradd istat
pfexec groupadd istat

if [ ! -d /var/cache/istat ]; then
mkdir /var/cache/istat
pfexec chown istat:istat /var/cache/istat

echo "--> Finished ..."

Sample Config:

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

# network_addr
network_port 5901
server_code 55551
server_user istat
server_group istat
# server_socket /tmp/istatd.sock
server_pid /var/run/istat/
cache_dir /var/cache/istat

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

# Array of disks to monitor. Specify mount path or device name.
monitor_disk ( / /home )

# 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/sda1 "root"
# disk_rename_label /home "home"

# End of file

Init Script:

# Basic support for chkconfig
# chkconfig: 35 99 55
# description: start and stop istatd - iphone monitoring tool daemon



case "$1" in
echo -n "Starting $BINARY ... "
if [ $? -ne 0 ]; then
echo "! Failed !"
echo "done"
echo -n "Stopping $BINARY ... "
kill $(cat $PIDFILE)
echo "done"
ps -ef | grep "$BINARY $OPTS"
echo "Usage: $0 {start|status|stop}"
exit 1

exit 0

ln -s /etc/init.d/istatd /etc/rc3.d/S99istatd
ln -s /etc/init.d/istatd /etc/rc3.d/K10istatd

If someone has written a SMF service I would love to take it from you 🙂

If you have any questions - feel free to ask ...

Related Posts

Book REVIEW: Linux Service Management Made Easy with systemd: Advanced techniques to effectively manage, control, and monitor Linux systems and services 1st Edition

Amazon Link Disclaimer: I get no royalites or anything here – Just had coworkers ask me about it So since I’m no systems guru and am now…

CLI Templates for Python + Rust

Do you also write a lot of services that need a few CLI option (e.g. –config) and or little CLI tools from time to time? Want a…

Stop IPv4 Point-To-Point Addressing your Networks

IPv4 addressing on links is no longer required to route IPv4. What you say?? Yes, you can stop IPv4 addressing your point to point links with Legacy…

NAT64: Using `jool` on Ubuntu 20.04

I found that jool has very good tutorials, but all the commands to get going are hidden in these large tutorials. Here are the steps I took…

Raspberry Pi Powered Fireplace

Mr Aijay Adams and I am back making my Fireplace Internet / Smart device controllable. Now, via a very sexy Web UI, when I’m heading back to…


Are you using the latest Linux kernel firewall?. Here are some notes I’ve saved that I use and forget all the time. I plan to add to…

This Post Has One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *