[gosa.git] / gosa-core / plugins / generic / dashBoard / dbChannelStatus / class_dbChannelStatus.inc
diff --git a/gosa-core/plugins/generic/dashBoard/dbChannelStatus/class_dbChannelStatus.inc b/gosa-core/plugins/generic/dashBoard/dbChannelStatus/class_dbChannelStatus.inc
index bad2187bd8e0bd2d6b2bf8d4f46f78e7425f7ac5..86664bbb7dd3d04a32391434767945d3df5509c1 100644 (file)
function execute()
{
+ // Transmit daily statistics to GOsa-Server
+ if(isset($_POST['transmitStatistics'])){
+
+ // First try to retrieve values via RPC
+ if ($this->config->get_cfg_value("core","gosaRpcServer") != ""){
+
+ $dump = stats::dumpTables();
+ $rpc = $this->config->getRpcHandle();
+ $hash = $rpc->updateInstanceStatus($dump);
+ if(!$rpc->success()){
+ msg_dialog::display(_("Error"),msgPool::rpcError($rpc->get_error()),ERROR_DIALOG);
+ return("");
+ }
+ }
+ }
+
+
+
$smarty = get_smarty();
$channel = array();