monitor

iStat on pfSense and server monitoring

One of my most favourite apps for my iPhone is iStat. It lets me monitor all my *nix servers in a beautiful interface. For my Linux clients, all I had to do was download the client, extract and compile. And since my router is running pfSense (FreeBSD 7.2) I thought I might as well get iStat on there.

 

Apparently, the developers edition of pfSense has all the goodies to compile stuff. Without even thinking of cross compiling, I quickly set up a VM of FreeBSD 7.1 (I know little to nothing of FreeBSD so I opted to get something near 7.2) and started to compile it. I had to get libxml2 first though and for FreeBSD 7. Anyway, logged into pfSense via SSH, fetch'd libxml2 and installed it. Now, since my router had nothing to compile packages with, I built iStat in the FreeBSD virtual machine and transfered the resulting mess to pfSense via SFTP. Now, since I couldn't have run make install in pfSense, I had to create /usr/local/etc/istat.conf and filled it in with the configuration file from another Linux client. I also edited the configuration file to fit the network interface (xl0 instead of eth0).

Looking back, I probably could have done things a little different. Either way, I got the job done. Now I'm happy that I can monitor my entire network with one app. I recommend for those that are in need of a functional server monitor to check out iStat for the iPhone. Be warned that iStat only supports one interface so far.

 

Monitor your Linux boxen with iStat for the iPhone

So I came upon an app the other day while browsing on my iPhone. iStat. It monitors your uptime, network I/O, RAM usage, etc.. There was another app that just needed SSH access but that was another $2. Anyways, iStat has a Mac OS X, Linux, FreeBSD and Solaris port of the agent. Just simply install the agent on your boxen and done!

 

It's pretty simple to get it working, I'll go over the steps that I used on Lenny.

Grab the latest release here (at this time, 0.5.4), and extract it somewhere. For me to get it working in Debian, I had to install the libxml2-dev package first. Go ahead and type 

./configure



 

Then