diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2012-09-29 19:39:19 +0200 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2012-09-29 19:39:19 +0200 |
commit | e3449857823529516e986776ae4497280ca6dedd (patch) | |
tree | ca43d8d6dcdf4acc781d2b9adc7f38a33f385f05 /etc | |
parent | 1be1a67a3941de56e6fc80db1d1ee21f6e9c4fce (diff) | |
download | pfsense-e3449857823529516e986776ae4497280ca6dedd.zip pfsense-e3449857823529516e986776ae4497280ca6dedd.tar.gz |
CARP notifications show vip description, 'Virtual IP Addresses' page shows interface.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.carpbackup | 3 | ||||
-rwxr-xr-x | etc/rc.carpmaster | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/etc/rc.carpbackup b/etc/rc.carpbackup index 76cdfac..d463d45 100755 --- a/etc/rc.carpbackup +++ b/etc/rc.carpbackup @@ -33,8 +33,9 @@ require_once("functions.inc"); require_once("config.inc"); require_once("notices.inc"); require_once("openvpn.inc"); +require_once("interfaces.inc"); -$notificationmsg = "A carp cluster member has resumed the state 'BACKUP'"; +$notificationmsg = sprintf('Carp cluster member "%2$s (%1$s)" has resumed the state "BACKUP"',$argv[1],convert_friendly_interface_to_friendly_descr($argv[1])); notify_via_smtp($notificationmsg); notify_via_growl($notificationmsg); diff --git a/etc/rc.carpmaster b/etc/rc.carpmaster index cb5395e..f57d150 100755 --- a/etc/rc.carpmaster +++ b/etc/rc.carpmaster @@ -33,8 +33,9 @@ require_once("functions.inc"); require_once("config.inc"); require_once("notices.inc"); require_once("openvpn.inc"); +require_once("interfaces.inc"); -$notificationmsg = "A carp cluster member has resumed the state 'MASTER'"; +$notificationmsg = sprintf('Carp cluster member "%2$s (%1$s)" has resumed the state "MASTER"',$argv[1],convert_friendly_interface_to_friendly_descr($argv[1])); notify_via_smtp($notificationmsg); notify_via_growl($notificationmsg); |