Commit Graph

46 Commits

Author SHA1 Message Date
aa65b64867 added client calls for running servers 2021-03-07 18:40:45 -09:00
86f304e1b8 segregated api machinery 2021-03-07 16:43:51 -09:00
5571401103 added hmac validation to http based api 2021-03-01 07:26:27 -09:00
5c50f4ac95 more debuglevel code cleanup 2021-02-28 04:51:35 -09:00
fcdff1039f code cleanup, improvements to loading api keys 2021-02-27 19:14:39 -09:00
2bd9177180 added apikey to config 2021-02-20 17:08:27 -09:00
cd7bcd5d55 server now opens a web server on the specified addr/port 2021-02-14 16:55:56 -09:00
8b438b6f3e more cleanup in server 2021-02-14 14:22:30 -09:00
4c16211e89 changed server to use channels instead of cond for wakeup, removed config hashing, added config path to config struct 2021-02-14 09:26:56 -09:00
d5389caadb added hash calculation during tokenization, removed threads variable 2021-02-09 04:05:16 -09:00
534baa3ccb changed server to use goroutine for each group, using cond to fire checks 2021-02-06 15:58:58 -09:00
aadd46ae1b switched to proper package names 2021-02-03 05:59:31 -09:00
dbd74982ff started on framework for running recurring checks 2021-01-28 20:14:16 -09:00
081ecb0607 added smtp auth machinery 2021-01-24 13:59:53 -09:00
e1df5ac487 code cleanup 2021-01-24 13:32:39 -09:00
3fa0c393fe Added subject and message email template options 2021-01-23 08:27:03 -09:00
8c7822be97 refined alarm email, removed port requirement for smtp server, fixed bug with config loading 2021-01-20 18:49:32 -09:00
afcdef029e email alarm now sends emails 2021-01-20 07:31:22 -09:00
bcf0e91d0b added manual alarm triggering for testing 2021-01-18 12:47:03 -09:00
814102fc09 added tokenizer test for empty quotes 2021-01-18 07:40:56 -09:00
cd73181a62 improved tokenizer, added tests 2021-01-18 07:29:38 -09:00
b675d8714e separated parser from tokenizer, wrote some tokenizer tests 2021-01-17 16:41:28 -09:00
3a4317f3a9 fixed parser bug when handling empty strings, added empty string check to email alarm 2021-01-17 09:44:39 -09:00
2d99960f06 Added framework for alarms, code cleanup 2021-01-17 09:04:08 -09:00
f108090967 Added default interval 2021-01-17 05:24:13 -09:00
5c930cd409 Changed interval to duration, added outline for alarm configuration 2021-01-16 09:30:18 -09:00
59971d75d2 Added README and LICENSE 2021-01-12 03:46:58 -09:00
951bee15fd improved command line argument handling, migrated json to config at higher debug levels 2021-01-12 03:32:15 -09:00
233aec7010 Added max rtt and max avg rtt to ping check 2021-01-12 03:32:14 -09:00
5c55903e88 added maxpacketloss variable for ping check 2021-01-12 03:32:14 -09:00
d80a5a80d7 Added options to check ping configuration 2021-01-12 03:32:14 -09:00
4e67a31552 Ping check actually pings 2021-01-12 03:32:14 -09:00
ad3d9fb4d4 Added ability to trigger check from command line 2021-01-12 03:32:14 -09:00
826564a060 Changed groups and hosts to use maps in config, reorganized code, cleaned up command line arguments 2021-01-12 03:32:14 -09:00
aa1d4d10fa Startup options, fixed new group bug with unnamed groups 2021-01-12 03:32:14 -09:00
9cc26fe41c Fixed parser issue with quotes in an ignored line 2021-01-12 03:32:14 -09:00
ac45a8625b Added basic structure for checks 2021-01-12 03:32:14 -09:00
87c53831a2 Code cleanup 2021-01-12 03:32:14 -09:00
90325e9dd5 Added set support to config 2021-01-12 03:32:14 -09:00
60d83288df Fixed off-by-one error in config parse error line output 2021-01-12 03:32:14 -09:00
5de5349fde Changed tokenizer state into a queue so that it can more easily step back up the tree 2021-01-12 03:32:14 -09:00
e10de3188a Added in token handling 2021-01-12 03:32:14 -09:00
233e33348d Added line counting 2021-01-12 03:32:14 -09:00
79329520e2 go fmt 2021-01-12 03:32:14 -09:00
e8d45282e8 Simplified splitter to use a single scanner and respect comment lines 2021-01-12 03:32:14 -09:00
1fcf9f1291 Initial commit 2021-01-12 03:32:14 -09:00