"; $redundancy_act = ""; if (isset($_GET['redundancy_action'])) { $redundancy_act = $_GET['redundancy_action']; } if ($redundancy_act == "ACCEPT") { if (isset($_GET['redundant'])) { $prim['backup'] = $_GET['redundant']; } if (isset($_GET['redundant_private'])) { $prim['backup_private'] = $_GET['redundant_private']; } if (isset($_GET['hb_interval'])) { $prim['keepalive'] = $_GET['hb_interval']; } if (isset($_GET['dead_after'])) { $prim['deadtime'] = $_GET['dead_after']; } if (isset($_GET['hb_port'])) { $prim['heartbeat_port'] = $_GET['hb_port']; } if (isset($_GET['monitor_links'])) { if ($_GET['monitor_links'] == "on") { $prim['monitor_links'] = "1"; } else { $prim['monitor_links'] = "0"; } } else { $prim['monitor_links'] = "0"; } /* $prim['backup_private'] = $_GET['redundant_private']; $prim['keepalive'] = $_GET['hb_interval']; $prim['deadtime'] = $_GET['dead_after']; $prim['heartbeat_port'] = $_GET['hb_port']; */ } if ($prim['backup_active'] == "") { $prim['backup_active'] = 0; } if (($enable == "1") || ($enable == "0")) { $prim['backup_active'] = (1 - $enable) ; } if ($prim['backup'] == "") { $prim['backup'] = "0.0.0.0"; } if ($prim['backup_private'] == "") { $prim['backup_private'] = ""; } if ($prim['keepalive'] == "") { $prim['keepalive'] = "6"; } if ($prim['deadtime'] == "") { $prim['deadtime'] = "18"; } if ($prim['heartbeat_port'] == "") { $prim['heartbeat_port'] = "539";} if ($redundancy_act == "RESET" ) { $prim['backup'] = "0.0.0.0"; $prim['backup_private'] = ""; $prim['keepalive'] = "6"; $prim['deadtime'] = "18"; $prim['heartbeat_port'] = "539"; } if ((isset($_GET['full_enable'])) && ($_GET['full_enable'] == "ENABLE")) { $prim['backup_active'] = "1"; } if ($redundancy_act=="DISABLE") { $prim['backup_active'] = "0"; } ?>
PIRANHA
CONFIGURATION TOOL
INTRODUCTION
|
HELP
REDUNDANCY
CONTROL/MONITORING
GLOBAL SETTINGS
REDUNDANCY
VIRTUAL SERVERS
Backup: active"; } else { echo "
inactive
"; } ?>
Redundant server public IP:
"; ?>
Redundant server private IP:
"; ?>
Heartbeat interval (seconds):
"; ?>
Assume dead after (seconds):
"; ?>
Heartbeat runs on port:
"; ?>
Monitor NIC links for failures:
"; ?>
-- Click here to apply changes to this page