Xymon Mailing List Archive search

disabled hosts, re-enabled on hobbitd restart

list Sladewig
Wed, 26 Oct 2005 15:01:59 -0500
Message-Id: <user-57ee91f414c3@xymon.invalid>

Henrik Stoerner wrote:
On Tue, Oct 25, 2005 at 05:43:34PM -0400, Deal, Richard wrote:
Should hobbitd maintain disabled hosts when restarted?

It should, provided that hobbitd saves and loads the checkpoint file.
To do that, your hobbitd command in hobbitlaunch.cfg must include
the options 
   --restart=$BBTMP/hobbitd.chk --checkpoint-file=$BBTMP/hobbitd.chk
I added a kill -USR1 to my shutdown script to insure it checkpointed.

    stop)
         echo "Shutting down hobbit:"
                 kill -USR1 `cat /var/log/hobbit/hobbitd.pid`
                 su - hobbit -c "cd $BBHOME/server/bin;./hobbit.sh stop "
         ;;
--
steve