Xymon Mailing List Archive search

how xymon checks the file updates

2 messages in this thread

list Deepak Deore · Thu, 31 Oct 2013 12:56:05 +0530 ·
I wonder how xymon come to know that the configuration file is changed ?

I have one task where if a user uploads files from browser, one job should
run. I have access to the folder where the files are uploaded.
So want to know the logic how xymon checks the file updates.If possible I
can implement the same thing :-)
list Jeremy Laidman · Fri, 1 Nov 2013 10:33:47 +1100 ·
Every 30 seconds, Xymon (xymonlaunch, xymond, or whatever) will check the
timestamp (the mtime) of each configuration file relevant to the process.
 If the file is newer than the last time it was looked at, or if the size
of the file has changed since the last time, or if the file has been
removed, then the process will reload (I think) all of its configuration
files.

I'm pretty sure there are some exceptions to this.  For example, I think
changes to xymonserver.cfg will not be activated until the running
processes that depend on settings in that file are re-launched.

J
quoted from Deepak Deore


On 31 October 2013 18:26, deepak deore <user-7b03b2a1ee70@xymon.invalid> wrote:
I wonder how xymon come to know that the configuration file is changed ?

I have one task where if a user uploads files from browser, one job should
run. I have access to the folder where the files are uploaded.
So want to know the logic how xymon checks the file updates.If possible I
can implement the same thing :-)