Changed groups and hosts to use maps in config, reorganized code, cleaned up command line arguments

This commit is contained in:
2021-01-01 09:26:49 -09:00
parent aa1d4d10fa
commit 826564a060
10 changed files with 845 additions and 105 deletions

8
alrmrc
View File

@ -1,11 +1,13 @@
set interval 30
monitor host gateway address 10.11.135.100
monitor group webservers
host www1.example.com address 10.11.135.101
check ping
host www2.example.com address 10.11.135.102
check ping
# comments can occur at the beginning
check ping # or the end of a line
check ping # checks are not named, so multiple is okay
monitor host gateway address 10.11.135.100
monitor host database