Commit Graph

121 Commits

Author SHA1 Message Date
Asif Bacchus
fddb406717 fix error in hyperlink 2021-05-10 03:22:22 -06:00
Asif Bacchus
4ec190af47 update readme 2021-05-10 03:18:49 -06:00
Asif Bacchus
57ce2d1ac3 fixed headings so TOC links work 2021-05-10 03:09:30 -06:00
Asif Bacchus
1ffd374a4f fix: set TERM for tput if not set
- stop warning messages in syslog from systemd invocation
2021-05-10 02:55:16 -06:00
Asif Bacchus
0cd84a3711 update logwatch readme 2021-05-09 23:43:41 -06:00
Asif Bacchus
d8fe395a19 update readme files 2021-05-09 14:39:28 -06:00
Asif Bacchus
ac4cf940ff refactor(SAMPLE): remove un-needed email address 2021-05-09 10:44:21 -06:00
Asif Bacchus
dc13e1d412 refactor(LOGWATCH): use new log tags
- update to reference new log tags
- adjust count to separate tally messages
- add CF-ERR tag reports
- re-add level 5 reporting detail
2021-05-09 10:43:05 -06:00
Asif Bacchus
e344b027f9 refactor: remove err label on code 99 2021-05-09 10:28:17 -06:00
Asif Bacchus
8801e55e30 style: fix typo, invalid hosts warning summary 2021-05-09 10:24:15 -06:00
Asif Bacchus
b05192a613 fix: wrong pipeline variable ref in writelog 2021-05-09 09:49:47 -06:00
Asif Bacchus
d796bf6f63 fix: wrong variable referenced for list to update 2021-05-09 09:47:41 -06:00
Asif Bacchus
db8a615d36 refactor: use function to write to log
- much more consistent
- one place to change all entries
2021-05-09 09:46:15 -06:00
Asif Bacchus
31eb503245 style: change 'domain' to 'host'
terminology is more correct and less potentially confusing
2021-05-09 08:48:56 -06:00
Asif Bacchus
3f9d164285 style: rename functions to clear spellcheck 2021-05-09 08:45:24 -06:00
Asif Bacchus
39f5445c28 perf: simpler iteration condition checking
- less complex conditions
- easier code to understand
- cleans up extraneous delimiters
- skips null entries immediately
2021-05-09 08:44:47 -06:00
Asif Bacchus
220263c1f9 refactor: change log tags
- separate tags for summary vs individual messages for accurate logwatch
 counting
- update code 99 exit to match other errors
- change CF error tags to match new format
2021-05-09 07:08:44 -06:00
Asif Bacchus
fe0f9caef1 feature: process multiple CF API errors
- handle multiple CF API errors properly by grouping and reporting
- update error messages
- unify CF error tags in log to CF-ERROR
2021-05-09 06:49:49 -06:00
Asif Bacchus
d9600c822f style: alphabetize functions 2021-05-09 06:39:55 -06:00
Asif Bacchus
5569bbc535 refactor: remove cfEmail
- authorized email not required by CF when using bearer token
2021-05-09 04:35:46 -06:00
Asif Bacchus
f4f3c89e5e refactor: reduce nesting, update err codes
- detect curl vs CF API errors separately
- error 25 changed to error 3 (curl/network)
- error 25 reservedfor CF API errors
- add CF error messages to all err 25s
- change error 98 (updates) to error 26
- remove error code for exit with warning
- add CF error messages on update failures
- drastically reduce if/else nesting
2021-05-09 04:33:41 -06:00
Asif Bacchus
a7064805c3 style: log params in default colour vs magenta 2021-05-09 03:58:35 -06:00
Asif Bacchus
c1c7fd5149 style: correct spelling of Cloudflare 2021-05-09 00:42:53 -06:00
Asif Bacchus
d9224b5791 refactor(LOGWATCH): match new script structure
- update keyword filters
- update reporting detail levels
- better targeting of useful information at summary detail level
2021-05-08 04:40:31 -06:00
Asif Bacchus
2805f560d7 docs: fix typos in comments, help, etc 2021-05-08 04:24:26 -06:00
Asif Bacchus
e7935dbd99 refactor(SYSTEMD): update service file switches 2021-05-08 04:06:04 -06:00
Asif Bacchus
029cef1d7f chore(GIT): add gitattributes file 2021-05-08 04:03:18 -06:00
Asif Bacchus
52f5ef96e8 refactor: replace BASH script with new POSIX one 2021-05-08 04:00:15 -06:00
Asif Bacchus
124644e38e feature: add console and no-logging features 2021-05-08 03:58:30 -06:00
Asif Bacchus
a060e72ea0 fix: confirm creds exist if using default location 2021-05-08 03:50:58 -06:00
Asif Bacchus
7bc5f73e27 docs: add in-script example commands 2021-05-08 03:43:47 -06:00
Asif Bacchus
94e1208af2 docs: add in-script help 2021-05-08 03:29:37 -06:00
Asif Bacchus
d7be713574 refactor: use patch to only change IP
- remove proxy option, not needed
- doesn't touch any other configured properties
2021-05-08 02:37:28 -06:00
Asif Bacchus
cc3f52b849 struct: finish operational rewrite
- add requirement and check for jq for JSON processing
- run all checks, confirmations and actions via JSON
- check existing records
- update records as needed
- update error codes and reporting
- less colourful logs by default
2021-05-08 02:05:32 -06:00
Asif Bacchus
36ececcb5d struct(templates): add sample credentials file 2021-05-08 02:04:03 -06:00
Asif Bacchus
53f7245001 feature: auto-detect ip, update exit func
- auto-detect IP address if not supplied
- rework exit functions: one for error, one for success
2021-05-07 15:32:46 -06:00
Asif Bacchus
cf820d777d refactor: ip4 and ip6 mutual override
- use the most recently specified option
2021-05-07 14:03:52 -06:00
Asif Bacchus
1ede37961f fix: turn off ip4 when ip6 selected 2021-05-07 14:00:32 -06:00
Asif Bacchus
5a477d6c86 feature: initial logging, add curl check 2021-05-07 13:59:07 -06:00
Asif Bacchus
911526dd08 struct: skeleton of POSIX script version 2021-05-07 13:30:51 -06:00
Asif Bacchus
2e978050b6 Added spacing for readability 2018-10-01 22:25:54 -06:00
Asif Bacchus
ba2b728e88 Added section about detail level in service config file 2018-10-01 22:25:18 -06:00
Asif Bacchus
7470b2c1fa Added commented out Detail setting in the service defintion file 2018-10-01 22:20:17 -06:00
Asif Bacchus
a43a0bf80e Updated to include logrotate instructions and new TOC 2018-09-28 00:07:41 -06:00
Asif Bacchus
2db482e800 Created sample logrotate config file 2018-09-27 23:52:03 -06:00
Asif Bacchus
7f90f496a9 Cleaned up TOC 2018-09-27 19:31:09 -06:00
Asif Bacchus
fe9b7fc578 Cleaned up markdown code 2018-09-27 19:30:14 -06:00
Asif Bacchus
a901fc7ea2 Proofreading 2018-09-27 19:25:23 -06:00
Asif Bacchus
689f11beba Updated TOC to remove improper headings 2018-09-27 19:01:38 -06:00
Asif Bacchus
0b2668f150 Added auto-generated TOC 2018-09-27 18:55:20 -06:00