Dirk,
Saving SA's monitor
states would be useful to us also, so I've been watching this discussion
carefully.
Since SA's config is
a flat file with index numbers for each monitor, could you create another file
in the SA directory that keeps track of monitor states? All it would
contain is the index of the monitor and the monitor's state. You could
then write this out at the end of every check (or maybe even make it user
configurable for when it's written out). When SA starts back up, you could
pull the file in to get the states of the monitors (this could also be an
option).
One problem with
doing it this way (I'm sure you can think of more :-) ) is that you'll have to
disable this feature if the user changes the config without saving it. If
the index gets out of sync between the state file and the config file, it would
be a Bad Thing if SA were to try to open the file if it's closed and
restarted. Once the user saves the the config, the feature can be
re-enabled. If there are still problems with the two files getting out of
sync, you could tag them both with a version number that's incremented everytime
the config file is changed.
As always, I
appreciate your openess to extending SA and the effort you put into implementing
user requests. You're the man.
Kevin
-----Original Message-----
From: Dirk Bulinckx [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 2:25 PM To: [EMAIL PROTECTED] Subject: RE: [5] RE: [SA-list] change in state
|
Title: Message
- RE: [5] RE: [SA-list] change in state Kevin Kruithof
- RE: [5] RE: [SA-list] change in state ServersAlivemailinglist