From 10c3d4c007bf19ccce30e003762cd05c9907c14a Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 12 Apr 2011 18:06:41 -0400 Subject: Notify via smtp as well as growl --- etc/inc/gwlb.inc | 2 ++ etc/inc/notices.inc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 2a611f8..2ccc235 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -433,6 +433,7 @@ function return_gateway_groups_array() { if ($gwdown == true) { log_error($msg); notify_via_growl($msg); + notify_via_smtp($msg); } else /* Online add member */ $tiers[$tier][] = $gwname; @@ -445,6 +446,7 @@ function return_gateway_groups_array() { $msg = "Gateways status could not be determined, considering all as up/active."; log_error($msg); notify_via_growl($msg); + notify_via_smtp($msg); } $tiers = $backupplan; } diff --git a/etc/inc/notices.inc b/etc/inc/notices.inc index 0cbf5fd..0ba8cc8 100644 --- a/etc/inc/notices.inc +++ b/etc/inc/notices.inc @@ -380,4 +380,4 @@ function register_via_growl() { } } -?> +?> \ No newline at end of file -- cgit v1.1