1
0
Fork 0
Commit Graph

42 Commits

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