Ping check actually pings

This commit is contained in:
2021-01-02 06:29:12 -09:00
parent ad3d9fb4d4
commit 4e67a31552
7 changed files with 56 additions and 17 deletions

View File

@ -23,10 +23,10 @@ func (ag *AlrmGroup) NewHost(name string) (*AlrmHost, error) {
return host, nil
}
func (ag *AlrmGroup) Check() error {
func (ag *AlrmGroup) Check(debuglvl int) error {
for _, host := range ag.Hosts {
for _, chk := range host.Checks {
err := chk.Check()
err := chk.Check(debuglvl)
if err != nil {
return err
}