Esempio n. 1
0
func init() {
	validate_environment()
	monitor.ConfigFromEnv()
	if !monitor.EmailEnabled() {
		log.Fatal("[!] error configuring monitor: mail not configured")
	}

	if !monitor.PushoverEnabled() {
		log.Fatal("[!] error configuring monitor: pushover not configured")
	}
}
Esempio n. 2
0
func init() {
	log.Println("[+] initialising application")
	validate_environment()
	monitor.ConfigFromEnv()
	if !monitor.EmailEnabled() {
		log.Fatal("[!] error configuring monitor: mail not configured")
	}

	if !monitor.PushoverEnabled() {
		log.Fatal("[!] error configuring monitor: pushover not configured")
	}
}