Commit graph

701 commits

Author SHA1 Message Date
Richard Frith-Macdonald
917e7f8bb5 Tidied alarm reminder behavior 2020-10-15 12:03:24 +01:00
Richard Frith-Macdonald
dcb5368a23 Improve debug logging and documentation 2020-10-15 11:43:52 +01:00
Richard Frith-Macdonald
7d56d2a8ac Changed 'clear' to 'suppress' to differentaite it from the 'clear' command applied to an individual process. 2020-10-14 15:50:08 +01:00
Richard Frith-Macdonald
3bd03637ff Fix bug with throttling and add some debug 2020-10-14 15:48:55 +01:00
Richard Frith-Macdonald
020b2cef7e fix memory overrun 2020-10-14 11:46:52 +01:00
Richard Frith-Macdonald
daa3095872 More alarm info in event dictionary 2020-10-13 14:02:00 +01:00
Richard Frith-Macdonald
a34932cac4 fix error enumerating 'Other' destinations 2020-10-12 15:15:37 +01:00
Richard Frith-Macdonald
af00664795 report throttleAt in status 2020-10-09 15:30:11 +01:00
Richard Frith-Macdonald
25061be0ea Added ThrottleAt config 2020-10-09 15:27:10 +01:00
Richard Frith-Macdonald
8c36804950 Simplify API and add support for alerts to other destinations 2020-10-09 15:19:35 +01:00
Richard Frith-Macdonald
d5bf5edce1 Fixup default SMS template to not include timestamp 2020-10-08 12:29:12 +01:00
Richard Frith-Macdonald
8969536f35 Change 'launch all' to only launch programs which have autolaunch set. 2020-10-05 14:54:54 +01:00
Richard Frith-Macdonald
52e91470ba Replace +[NSHost hostWithName:] by a version which will first check to see if it has been given a well known name mapping to a host. This ensures that well known name mappings are used fror normal host lookup. 2020-09-04 09:52:58 +01:00
Richard Frith-Macdonald
c3fb7fdbdf Don't autolaunch on config change unless autolaunch state changed: we don't want a configuration update to launch processes which were manully stopped. 2020-08-10 21:52:37 +01:00
Richard Frith-Macdonald
85ba581bac Avoid printing misleading address information for copy of original alarm 2020-08-10 16:13:33 +01:00
Richard Frith-Macdonald
ad0458a30a Track raised alarms so we don't send unnecessary clears 2020-07-31 12:55:04 +01:00
Richard Frith-Macdonald
1fddf9c9d6 Add missing newline in some logs 2020-07-31 10:41:00 +01:00
Richard Frith-Macdonald
efcd21f94d Don't raise an alarm about time to startup if startup was cancelled 2020-07-31 10:40:17 +01:00
Richard Frith-Macdonald
37f53e1012 Fixes to avoid excess alarms on process termination ... wait for the process to
die rather than alarming at the point when we lose the network connection (that way we can include the process exit status in a single alarm).
2020-07-31 09:01:57 +01:00
Richard Frith-Macdonald
5d6945ee59 Add notifications about quitting 2020-07-23 07:11:26 +01:00
Richard Frith-Macdonald
2484af9894 improve commentds/doc 2020-07-20 13:16:30 +01:00
Richard Frith-Macdonald
680dcdfbf0 Fixups for recording more audit info on loss of process 2020-07-17 19:07:35 +01:00
Richard Frith-Macdonald
394368873e add audit alarms and improve message text 2020-07-17 18:33:02 +01:00
Richard Frith-Macdonald
3c80be4ecc check for the case where a starting process is stopped during the -startup: call 2020-07-17 16:59:50 +01:00
Richard Frith-Macdonald
2da8d74c23 generate alarm clears for audit purposes when a process starts or stops 2020-07-17 15:36:06 +01:00
Richard Frith-Macdonald
272f9dc9c9 Move queue handling to a separate private method 2020-07-17 15:35:10 +01:00
Richard Frith-Macdonald
d8b9b68ee5 fix typo 2020-07-17 15:34:50 +01:00
Richard Frith-Macdonald
8bcd32372b Manage record of cleared alarms 2020-07-17 13:01:28 +01:00
Richard Frith-Macdonald
56955f5604 Set up monitor when sink is first created. 2020-07-17 11:46:51 +01:00
Richard Frith-Macdonald
f9e7e80207 Include instance in process name for alarms 2020-07-17 11:14:36 +01:00
Richard Frith-Macdonald
92212e13e8 add support for alarm component matching 2020-07-16 14:15:36 +01:00
Richard Frith-Macdonald
518f015c35 support clearing of multiple alarms on one line 2020-07-16 13:36:48 +01:00
Richard Frith-Macdonald
25826e9236 provide an api for a separate object to monitor changes of the state of the alarm destination. 2020-07-16 13:35:39 +01:00
Richard Frith-Macdonald
5311f2bd64 fixup for reminder matching 2020-07-15 15:28:55 +01:00
Richard Frith-Macdonald
58f0bcf8ec Fixes for stable timer, improved description of launch info object, fix to clear alarms for processes manually quit, make per-process alarms be owned by the Command server, clear alarmns when the config changes to remove a process from the launch list or to disable it. 2020-07-15 15:08:38 +01:00
Richard Frith-Macdonald
41c106b867 Fix alarm rules to only match alarms and reminder interval rule to only match reminders 2020-07-15 15:07:54 +01:00
Richard Frith-Macdonald
ffb727d73c fix typos in comments 2020-07-15 15:06:51 +01:00
Richard Frith-Macdonald
2d5bf21478 Add more informative -description 2020-07-15 15:06:23 +01:00
Richard Frith-Macdonald
b34b6f2e3a Fixupes ot use key with prefix for internal defaults 2020-07-08 16:48:26 +01:00
Richard Frith-Macdonald
5cd1df2733 Make pings to clients much more frequent (once every five seconds) so that we can be more responsive to hung processes. 2020-07-06 12:04:16 +01:00
Richard Frith-Macdonald
6ca1a070f5 Record when we get a response for a ping to a client process. 2020-07-06 11:42:53 +01:00
Richard Frith-Macdonald
1ca41b9fc0 Tweaks for restarting processes 2020-07-06 11:37:47 +01:00
Richard Frith-Macdonald
6412a1cb6a use milliseconds when reporting dates 2020-07-06 10:56:31 +01:00
Richard Frith-Macdonald
b328aee8dd Add timestamp information in -description and prevent repeated alarms about hung process 2020-07-06 10:46:51 +01:00
Richard Frith-Macdonald
e15731927e Add 'list proces ...' command and fix bug in limiting shutdown time to two minutes 2020-07-06 09:55:36 +01:00
Richard Frith-Macdonald
47edde29f1 Minor bugfixes and documentation improvements. 2020-07-03 15:02:15 +01:00
Richard Frith-Macdonald
f04f1292a3 Many fixups/alterations to launch/shutdown of processes. Removed the 'strict' option to enforce a prefix on defaults keys, since it was really never used and just complicated things. 2020-07-03 11:50:25 +01:00
Richard Frith-Macdonald
dde42c13a1 Fix bug setting defaults when use of prefix should not be forced. In that case we should not prepend the defaults prefix to the key whose value is being set. 2020-07-02 09:23:48 +01:00
Richard Frith-Macdonald
dda6a439dd add comment on new macro 2020-06-29 11:29:42 +01:00
Richard Frith-Macdonald
d4dbead364 Improve logging/alarming for diagnostic stack traces and fix bug usng wrong alarm levels 2020-06-29 10:51:38 +01:00