Commit graph

672 commits

Author SHA1 Message Date
Wolfgang Lux
19bcc31928 Fix memory all command 2021-01-15 15:51:00 +01:00
Richard Frith-Macdonald
e2a980231a Fix a leak and some dead assignments. 2021-01-14 09:14:32 +00:00
Richard Frith-Macdonald
154f4f7a2d Add check that we do not launch a task while we already have one recorded. 2021-01-07 11:20:47 +00:00
Richard Frith-Macdonald
bad8e8e5b3 Fix default value for alarm alerting threshold and add status information about the number of alarms which generated alerts or were ignored due to the threshold. 2020-12-07 10:15:28 +00:00
Richard Frith-Macdonald
8626bd1823 With debug, report each event having rules applied 2020-12-01 17:45:35 +00:00
Richard Frith-Macdonald
68b560b62b Improve tolerance (and logging) of re-entrancy in -starting: method. 2020-11-24 01:26:55 +00:00
Richard Frith-Macdonald
f54012db83 Don't force the prefix to be used for the ProgramName and Instance 2020-11-17 10:30:03 +00:00
Richard Frith-Macdonald
86f84e101f Add configuration to permit easy running of processes under valgrind and to
manage the valgrind logs (in the debug area in a subdirectory 'Valgrind').
2020-11-14 11:39:25 +00:00
Richard Frith-Macdonald
5879c8eef9 Report any error on the smtp conenction in status 2020-11-13 02:34:41 +00:00
Richard Frith-Macdonald
561dfbf88c fix minor leak 2020-11-13 01:05:13 +00:00
Richard Frith-Macdonald
34c1af884f Fix typo in default repair text 2020-11-12 04:21:25 +00:00
Richard Frith-Macdonald
7347e01200 Exit -2 if preregistration with nameserver fails 2020-11-02 11:36:57 +00:00
Richard Frith-Macdonald
9b4ebd9c15 Make EcException macros generaqte logs if EcProc is not yet initialised 2020-10-30 12:32:52 +00:00
Richard Frith-Macdonald
c796ed2bdf When abandoning an unlaunched process, call -stopped to make sure it's in a sane state to launch again. 2020-10-28 09:51:38 +00:00
Richard Frith-Macdonald
56bc1a6958 Fixup for restart after quite while suspended 2020-10-27 10:00:47 +00:00
Richard Frith-Macdonald
dfa7447593 when quitting all processes, check for ones where startup is abandoned 2020-10-27 09:46:34 +00:00
Richard Frith-Macdonald
e82865d61f fix messages for -2 and -3 exist statuses (wrong way round) 2020-10-19 16:59:44 +01:00
Richard Frith-Macdonald
e43ccf9ca9 Attempt to rationalise process exit status values. 2020-10-17 17:13:26 +01:00
Richard Frith-Macdonald
08fee2c40e Improve recording of process exist status (whether or not it is a signal, and
negative status values), and fix logic to restart processes which exit with a non-zero status if autolaunch is enabled for them.
2020-10-16 14:24:22 +01:00
Richard Frith-Macdonald
0097f820cf Attempt to make ReminderInterval more friendly 2020-10-15 13:00:34 +01:00
Richard Frith-Macdonald
6eaf24b103 Tweak 2020-10-15 12:51:58 +01:00
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