Xymon Mailing List Archive search

disabled hosts, re-enabled on hobbitd restart

3 messages in this thread

list Richard Deal · Tue, 25 Oct 2005 17:43:34 -0400 ·
Should hobbitd maintain disabled hosts when restarted?
The files are still in the data/disabled directory but the hosts are
listed as enabled after a restart.
list Henrik Størner · Wed, 26 Oct 2005 00:02:22 +0200 ·
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
quoted from Richard Deal

The files are still in the data/disabled directory but the hosts are
listed as enabled after a restart.
These files are purely for backwards compatibility with BB scripts.
Hobbit doesn't use any of the files from the data/disabled directory,
but relies solely on the Hobbit daemon (hobbitd) to maintain the
state of all hosts and tests.


Henrik
list Sladewig · Wed, 26 Oct 2005 15:01:59 -0500 ·
quoted from Henrik Størner
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