僕はiPhone4Sを使っています。このiPhone4Sで自作2号機のモニタリングが出来ないかなぁ〜^^;
そんな事を考えてportsを検索していると、何やらistatd と言う何やら怪しげなのがあります。早速、ネットで検索するとビンゴです!!
/usr/ports/sysutils/istatd よりいつもどおり make install します。
インストール自体は特に難しいことはありません。設定も usr/local/etc/istat.conf を設定し、/etc/rc.conf に記述するだけです。
usr/local/etc/istat.conf については以下のようにしました。
#
# /etc/istat.conf: Configuration for iStat server
#
network_addr 192.168.11.4
network_port 5109
server_code 12345
server_user nobody
server_group nobody
# server_socket /tmp/istatd.sock
server_pid /var/run/istatd.pid
cache_dir /var/db/istatd
# Note: Only support for one network interface, limited by client.
monitor_net ( eth0 )
# monitor_net ( re0 )
# Array of disks to monitor. Specify mount path or device name.
monitor_disk ( / /home /home2 /home3 /home4 )
# Set to 1 if you want to use mount path as label instead of the device name.
disk_mount_path_label 1
# 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
そして、後は、 /etc/rc.confの設定を以下のようにします。
istatd_enable="YES"
最後にデーモンを起動します。
/usr/local/etc/rc.d/istatd start
さて、iPhoneで確認しましょう。アプリは
こちらからダウンロードします。
有料ですが、85円でダウンロード出来ます。
早速、iPhoneを起動してアプリを立ち上げます。IPアドレスやホスト名を設定すればOKです。
こんな感じで自作2号機の状況がiPhoneで確認出来ます。