Fixed some minor issues in the new Logon/Logoff report

This commit is contained in:
Andre Lorbach 2011-12-05 16:29:59 +01:00
parent 350e893f6a
commit f732abd392
4 changed files with 11 additions and 49 deletions

View File

@ -5,13 +5,13 @@
* ----------------------------------------------------------------- *
* Some constants *
* *
* Eventsummary Report is a basic report for EventLog
* Logon/Logoff Report is a basic report for EventLog based Data
*
* \version 1.0.0 Init Version
* *
* All directives are explained within this file *
*
* Copyright (C) 2008-2009 Adiscon GmbH.
* Copyright (C) 2008-2011 Adiscon GmbH.
*
* This file is part of LogAnalyzer.
*
@ -50,16 +50,16 @@ class Report_logonlogoff extends Report {
public $_reportVersion = 1; // Internally Version of the ReportEngine
public $_reportID = "report.eventlog.logonlogoff.class"; // ID for the report, needs to be unique!
public $_reportFileBasicName = "report.eventlog.logonlogoff"; // Basic Filename for reportfiles
public $_reportTitle = "EventLog Logon/Logoff Report"; // Display name for the report
public $_reportTitle = "EventLog Logon/Logoff Report"; // Display name for the report
public $_reportDescription = "This is a EventLog Logon/Logoff Summary Report";
public $_reportHelpArticle = "http://loganalyzer.adiscon.com/plugins/reports/eventlog-logonlogoff";
public $_reportNeedsInit = false; // True means that this report needs additional init stuff
public $_reportInitialized = false; // True means report is installed
public $_reportNeedsInit = false; // True means that this report needs additional init stuff
public $_reportInitialized = false; // True means report is installed
// Advanced Report Options
private $_maxHosts = 20; // Threshold for maximum hosts to analyse!
private $_maxLogOnLogOffsPerHost = 100; // Threshold for maximum amount of logon/logoffs to analyse per host
private $_colorThreshold = 10; // Threshold for coloured display of Eventcounter
private $_maxHosts = 20; // Threshold for maximum hosts to analyse!
private $_maxLogOnLogOffsPerHost = 100; // Threshold for maximum amount of logon/logoffs to analyse per host
private $_colorThreshold = 10; // Threshold for coloured display of Eventcounter
// Constructor
public function Report_logonlogoff() {
@ -172,24 +172,6 @@ class Report_logonlogoff extends Report {
else
return ERROR_REPORT_NODATA;
/*
// Get List of hosts
$content["report_computers"] = $this->_streamObj->ConsolidateItemListByField( SYSLOG_HOST, $this->_maxHosts, SYSLOG_HOST, SORTING_ORDER_DESC );
// TimeStats
$nowtime = microtime_float();
$content["report_rendertime"] .= number_format($nowtime - $gl_starttime, 2, '.', '') . "s, ";
if ( is_array($content["report_computers"]) && count($content["report_computers"]) > 0 )
{
// Create plain hosts list for Consolidate function
foreach ( $content["report_computers"] as $tmpComputer )
$arrHosts[] = $tmpComputer[SYSLOG_HOST];
}
else
return ERROR_REPORT_NODATA;
*/
// This function will consolidate the Events based per Host!
$this->ConsolidateLogonLogoffs(); // ($arrHosts);

View File

@ -28,8 +28,7 @@
global $content;
// Global Stuff
$content['ln_report_event_summary'] = "Event Summary";
$content['ln_report_computer_summary'] = "Computer Summary";
$content['ln_report_logonoff_summary'] = "Summary of Logon/Logoff events";
$content['ln_report_consolidation'] = "Logon / Logoff Events consolidated per User";
$content['ln_report_summary'] = "Report Summary";
$content['ln_report_number'] = "No.";
@ -47,11 +46,5 @@ $content['ln_report_maxLogOnLogOffsPerHost_description'] = "The maximum number o
$content['ln_report_colorThreshold_displayname'] = "Counter Threshold";
$content['ln_report_colorThreshold_description'] = "If the amount of consolidated events is higher then this threshold, the countfield will be marked red.";
$content['ln_report_'] = "";
$content['ln_report_'] = "";
$content['ln_report_'] = "";
$content['ln_report_'] = "";
$content['ln_report_'] = "";
$content['ln_report_'] = "";
$content['ln_report_'] = "";
?>

View File

@ -51,7 +51,7 @@
<table width="200" cellpadding="0" cellspacing="1" border="0" align="left" class="with_border_alternate">
<tr>
<td class="cellmenu1" colspan="2" align="center">{ln_report_event_summary}</td>
<td class="cellmenu1" colspan="2" align="center">{ln_report_logonoff_summary}</td>
</tr>
<!-- BEGIN report_summary -->
<tr>
@ -61,19 +61,6 @@
<!-- END report_summary -->
</table>
<table width="50%" cellpadding="0" cellspacing="1" border="0" align="right" class="with_border_alternate">
<tr>
<td class="cellmenu1" colspan="2" align="center">{ln_report_computer_summary}</td>
</tr>
<tr>
<td class="line1">
<!-- BEGIN report_computers -->
<a href="#{FROMHOST}">{FROMHOST}</a>({itemcount}),
<!-- END report_computers -->
</td>
</tr>
</table>
</td>
</tr>
</table>

View File

@ -33,7 +33,7 @@
<table width="200" cellpadding="0" cellspacing="1" border="1" align="left" class="with_border_alternate">
<tr>
<td class="cellmenu1" colspan="2" align="center" bgcolor="#9FDAF1"><b>{ln_report_event_summary}</b></td>
<td class="cellmenu1" colspan="2" align="center" bgcolor="#9FDAF1"><b>{ln_report_logonoff_summary}</b></td>
</tr>
<!-- BEGIN report_summary -->
<tr>