At 04:37 PM 2/28/02 -0600, Gerald Skerbitz wrote: >When mon is restarted, the alerts_sent value is reset even though the >history is read. >Is there a way to get readhistoricfile() to update the alert_count also? >Would it be safe to do the following to put the alert counts in the >periods back? >It seems to be working now for me.
This is a valid idea, especially when a 'reset keepstate' is done. IMO, if we want to do this, the information should be written out into state.d and preserved as part of the 'state of the server', to be loaded in when a loadstate is done. Of course, then readhistoricfile() would need modifying (or wouldn't really belong in reset_server()), since it wouldn't do any good for readhistoricfile () to say one thing about the number and content of alerts and state.d to say potentially another. I'm open to suggestions, but this looks like it could be a nice opportunity to improve mon's reset state transitions. Right now only disabled/enabled status is saved, which is better than nothing, but we could be saving more... andrew
