[hobbit] Installing Hobbit on OS/X

Evan Platt evan at espphotography.com
Wed Nov 7 23:10:47 CET 2007


At 01:33 PM 11/7/2007, Josh Luthman wrote:
>One thing I've noticed with netstat is a lot of people don't use the 
>-n argument, causing things like "http" or "ssh" to show up.  Though 
>it is unlikely bigbrother is there I'd confirm with:
>
>netstat -an|grep 1984

Nothing.. And as I mentioned, ps aux shows only the one line, not the 
four or five listed in the documentation:

# ps aux | grep hobbit
hobbit    6032   0.0  0.0    27412    256  ??  Ss   12:02PM   0:00.16 
/Users/hobbit/server/bin/hobbitlaunch 
--config=/Users/hobbit/server/etc/hobbitlaunch.cfg 
--env=/Users/hobbit/server/etc/hobbitserver.cfg --log=/var/log/hobbit/hobbitla

And hmm.. Here's my hobbitlaunch.log latest entry:

2007-11-07 13:47:48 Loading hostnames
2007-11-07 13:47:48 Loading saved state
2007-11-07 13:47:48 Setting up network listener on 0.0.0.0:1984
2007-11-07 13:47:48 Setting up local listener
2007-11-07 13:47:48 Setting up signal handlers
2007-11-07 13:47:48 Setting up hobbitd channels
2007-11-07 13:47:48 Could not attach shm Too many open files
2007-11-07 13:47:48 Cannot setup user channel
2007-11-07 13:47:48 Task hobbitd terminated, status 1
2007-11-07 13:47:53 Loading hostnames
2007-11-07 13:47:53 Loading saved state
2007-11-07 13:47:53 Setting up network listener on 0.0.0.0:1984
2007-11-07 13:47:53 Setting up local listener
2007-11-07 13:47:53 Setting up signal handlers
2007-11-07 13:47:53 Setting up hobbitd channels
2007-11-07 13:47:53 Could not attach shm Too many open files
2007-11-07 13:47:53 Cannot setup user channel
2007-11-07 13:47:53 Task hobbitd terminated, status 1

Did some googling.. (For the archive).

On os/x, editied /etc/rc:

sysctl -w kern.sysv.shmmax=4194304 kern.sysv.shmmin=1 
kern.sysv.shmmni=32 kern.sysv.shmseg=12 kern.sysv.shmall=1024

I tried manually running that line, no go. Editied from shmseg=8 to 
12, and rebooted. Works now!


# ps aux | grep hobb
hobbit     122   0.0  0.0    27412    236  ??  Ss    2:06PM   0:00.02 
/Users/hobbit/server/bin/hobbitlaunch 
--config=/Users/hobbit/server/etc/hobbitlaunch.cfg 
--env=/Users/hobbit/server/etc/hobbitserver.cfg --log=/var/log/hobbit/hobbitla
hobbit     129   0.0  0.0    30216    704  ??  S     2:06PM   0:00.05 
hobbitd --pidfile=/var/log/hobbit/hobbitd.pid 
--restart=/Users/hobbit/server/tmp/hobbitd.chk 
--checkpoint-file=/Users/hobbit/server/tmp/hobbitd.chk --checkpoint-interv
hobbit     156   0.0  0.0    27696    436  ??  S     2:06PM   0:00.02 
hobbitd_channel --channel=stachg --log=/var/log/hobbit/history.log 
hobbitd_history
hobbit     157   0.0  0.0    27952    404  ??  S     2:06PM   0:00.01 
hobbitd_channel --channel=clichg --log=/var/log/hobbit/hostdata.log 
hobbitd_hostdata
hobbit     158   0.0  0.0    27696    408  ??  S     2:06PM   0:00.01 
hobbitd_channel --channel=page --log=/var/log/hobbit/page.log 
hobbitd_alert --checkpoint-file=/Users/hobbit/server/tmp/alert.chk 
--checkpoint-interval=600
hobbit     159   0.0  0.0    27696    436  ??  S     2:06PM   0:00.02 
hobbitd_channel --channel=status --log=/var/log/hobbit/rrd-status.log 
hobbitd_rrd --rrddir=/Users/hobbit/data/rrd
hobbit     160   0.0  0.0    27696    404  ??  S     2:06PM   0:00.01 
hobbitd_channel --channel=data --log=/var/log/hobbit/rrd-data.log 
hobbitd_rrd --rrddir=/Users/hobbit/data/rrd
hobbit     161   0.0  0.0    27952    404  ??  S     2:06PM   0:00.01 
hobbitd_channel --channel=client --log=/var/log/hobbit/clientdata.log 
hobbitd_client
hobbit     189   0.0  0.1    27712    960  ??  S     2:06PM   0:00.06 
hobbitd_history
hobbit     190   0.0  0.1    27984   1012  ??  S     2:06PM   0:00.03 
hobbitd_alert --checkpoint-file=/Users/hobbit/server/tmp/alert.chk 
--checkpoint-interval=600
hobbit     191   0.0  0.1    32996   1444  ??  S     2:06PM   0:00.09 
hobbitd_rrd --rrddir=/Users/hobbit/data/rrd
hobbit     329   0.0  0.1    28360   1132  ??  S     2:06PM   0:00.02 
hobbitd_client
hobbit     341   0.0  0.1    32996   1428  ??  S     2:06PM   0:00.03 
hobbitd_rrd --rrddir=/Users/hobbit/data/rrd
hobbit     342   0.0  0.1    27948    848  ??  S     2:06PM   0:00.01 
hobbitd_hostdata

Thanks! 




More information about the Xymon mailing list