Xymon Mailing List Archive search

How does Xymon save state between server reboots?

list Japheth Cleaver
Mon, 28 Jan 2013 17:06:42 -0800 (PST)
Message-Id: <user-c0f38c3c50f3@xymon.invalid>

Just curious: does anyone know how Xymon retains host / service state
information between reboots of the Xymon server? I mean, if you have
Host_A with services in various states, and then you bounce the Xymon
server, does the server re-acquire all the services / states for Host_A
from scratch, or does it retain any state information from somewhere on
disk?

xymond is (normally) configured with the --checkpoint-file and --restart
options set, which specifies the location of the file where all of this is
saved between restarts.


'man xymond'

--checkpoint-file=FILENAME
  With regular intervals, xymond will dump all of its internal state to
this check-point file. It is also dumped when xymond terminates, or when
it receives a SIGUSR1 signal.

--checkpoint-interval=N
  Specifies the interval (in seconds) between dumps to the check-point
file. The default is 900 seconds (15 minutes).

--restart=FILENAME
  Specifies  an existing file containing a previously generated xymond
checkpoint. When starting up, xymond will restore its internal state
from the information in this file. You can use
the same filename for "--checkpoint-file" and "--restart".


Regards,
-jc