------------- SrvReport ------------------ Server Monitoring And Reporting System ------------------------------------------ HISTORY: 28.01.2006 Version 0.71 - Misc: - Added comments for apache2- and exim-configuration - PostfixReport.pm - Added graphical report for #Msgs and Bytes / hour - Added (beta) exim support - LogReport.pm - Added support for excluding lines via regex (exclude_regex) 23.12.2004 Version 0.70 - PostfixReport.pm - Show "Rejected" in separat column in overview-table (now rejected mails are not counted as outgoing) 30.10.2004 Version 0.69 - iptables_setup - added section local/internal - PostfixReport.pm - Support for postfix with 8-14 chars for ID - popper-report now fully configurable - Net::Domain/Config added (to remove dependencies) - HtmlHelper.pm: - Error in GetStyleFromFile sloved which leads to missing CSS in filereport - BaseFileReport.pm: - special patterns for 'popper_user' and 'imap_user' added - srvreport.conf: - added some (short) description of required popper_regexkeys - changed default for popper_pattern (if you have used this before, you must change it to the new default (or aproprivate value!) 17.08.2004 Version 0.68 - srvreport.conf - added 'meminfo_restrictto' entry in SysinfoReport - SysinfoReport - added support for 'meminfo_restrictto' config entry (with this you can restrict the output of the meminfo-section to the given entries (seperated by semicolon)) - small bug resolved ('meminfo_warning' is now correctly read) - srvreport.pl - Version 0.68 15.08.2004 Version 0.67 - SysinfoReport.pm: - meminfo changed so it also works with Linux Kernel 2.6 (/proc/meminfo format changed in this release) - srvreport.pl - Version 0.67 10.08.2004 Version 0.66 - INSTALL.TXT - example for editing "crontab -e" - UPDATE.TXT - backup of "mail.css" is optional - PostfixReport.pm - Report-tables now have headlines - Now support of separat popper-file (SF, feature-request #957221) - BaseFileReport.pm - buildRegexFromPattern supports now the parameters pattern/regx/regx_keys - getFileName supports now as parameters the filename 09.08.2004 Version 0.65 - LogReport.pm: - linebreak in 'getMonthShortString' was wrong - HTMLHelper.pm: - added new column color #FF9999 for table - 'TableWithHeadingAndTitle' added - added CSS entries (see mail.css) - IpTablesReport.pm: - class for "sum"-line changed from "mailRowSum" to "iptables_sum" - mail.css - added: "td.iptables_sum", "td.sysinfo_hgraph", "tr.sysinfo_sum", "td.table_title" - srvreport.pl - version 0.65 - added support for "SysinfoReport.pm" - only send images via mail which are used - added support for returning an array in "getHTMLReport" - images: - green_h.png / orange_h.png added - BaseReport.pm: - prototypes for createing weekly/monthly reports added - comments added in 'getHTMLReport' (can now return an array) - srvreport.conf - added default config entries for "SysinfoReport" - CPUReport.pm - return which images are used - HttpdReport.pm - returns now an array which images are used - TrafficReport.pm - returns now an array which images are used - SysinfoReport.pm - NEW! 07.08.2004 Version 0.64 - mail.css - addend entry for "td.iptables_lines" - srvreport.conf - showlines in "IpTablesReport" added - HTMLHelper.pm: - addend entry for "td.iptables_lines" - IpTablesReport.pm - support for config entry 'showlines' - small bugfix regadring 'sum' 06.08.2004 Version 0.63 - BaseReport.pm: - month names now also may contain "Mär, Mai, Okt, Dez" instead of "Mar, May, Oct, Dec" - LogReport.pm: - new config entry "lineLimit" implemented (this affects only the output in html/stdout-files; but the summary entry is correct and an hint will be given if the output was truncated) - PostfixReport.pm: - Support for RejectID NOQUEUE (for Postfix 2.x) - IpTablesReport.pm: - Reporting of defined chains within "iptables" is now possible! - iptables_setup - added - INSTALL.TXT - Added instructions for iptables_setup 21.05.2004 Version 0.60 - no changes 26.04.2004 Version 0.60beta7 - HtmlHelper.pm: - HtmlEncodeHex added - PostfixReport.pm: - getRejectString added - reject-report added - srvreport.conf - howReject now possible with "3 => reject-encoding" - new report-typ for Postfix-Report (16: reject-report) 17.04.2004 Version 0.60beta6 - srvreport.pl: - support of optional localization (so it will also work with older versions of perl 5.008) - support of optional use of XML-Module (so it will also work with older versions of perl 5.006) - BaseReport.pm: - removed reference to "Locale::Maketext::Gettext::Function" - now using the own "___" function for localization - declaration of the special funtion "___" - TrafficReport.pm: - PostfixReport.pm: - LogReport.pm: - HttpdReport.pm: - CPUReport.pm: - BaseFileReport.pm: - removed reference to "Locale::Maketext::Gettext::Function" - now using the own "___" function for localization 17.04.2004 Version 0.60beta5 - srvreport.pl: - report at midnight is now working again - TrafficReport.pm: - finish-method is working correctly even if no report is generated at midnight (but a warning will be issued) 16.04.2004 Version 0.60beta4 - srvreport.pl: - debug output disabled - generatrion of report-date corrected 16.04.2004 Version 0.60beta3 - srvreport.conf: - added config.-entry for "reportTime", so you can send the report more than only at midnight. - srvreport.pl: - implemented the new config-entry "reportTime" - separated doReport and doFinish 16.04.2004 Version 0.60beta2 - TrafficReport.pm: - XML-Node renamed from "Log" o "Traffic" - PostfixReport.pm: - XML-Nodes renamed from "MAIL" to "Mail"; "POP" to "Pop"; "Log" to "Check" - HttpdReport.pm: - XML-Node remamed from "Log" to "Host" - CpuReport.pm: - XML-Node renamed from "Log" to "Load" 15.04.2004 Version 0.60beta - srvreport.conf: - added config-entries for generating xml-report and new TEST bit 5 (=> 32) - srvreport.pl: - createXMLReport added - call to method "createData" now outside of the "mailReport" if/then - BaseReport.pm: - added method for "modName" (will be used in XML-Data) - added method for "getXMLData" - LogReport.pm: - set the "modName" - getXMLData implemented - HttpdReport.pm: - set the "modName" - PostfixReport.pm: - set the "modName" - CPUReport.pm: - set the "modName" - TrafficReport.pm: - set the "modName" - XML::Smart: - update to 1.5.9 11.04.2004 Version 0.54 - HttpdReport.pm: - support for new config entry "hostAsLinks" - PostfixReport.pm: - REJECT now bold again - support for new config entry "origToFirst" - use of new CSS "p.mailToKey" for to-key in grouped-to-report - srvreport.conf: - new config-option for postfixreport: "OrigToFirst" - mail.css/HtmlHelper.pm: - p.mailToKey added 10.04.2004 Version 0.53 - HttpdReport.pm: - Hostnames are now links to the given host - also allow "regex" as pattern matching - BaseReport.pm: - conversion from month is now case insesitive - PostfixReport.pm - support of sendmail with 14 characters-ID - added support for new configEntry "mailReportType" - added new report: grouped by "to" - now toggling the background color of each row for better readability (via CSS) - now sorting the entries by "size" - Added new perl-cpan-modules for XML read/write: - XML::Smart (1.5.7): http://search.cpan.org/dist/XML-Smart/ - Object::MultiType (0.04): http://search.cpan.org/dist/Object-MultiType/ - XML-read/write is NOT YET IMPLEMENTED; will be released in an upcoming version - srvreport.conf: - added config-entries for generating xml-report and new TEST bit 4 (=> 16) - mail.css / HtmlHelper.pm - tr.mailRow1/2/Sum added (now rows will be displayed in toggling background colors) 24.03.2004 Version 0.52 - srvreport.pl - changed [ ] to ~[ ~] - localized: - changed srvreport.pot - changed de/srvreport.po/mo 24.03.2004 Version 0.51 - Workaround for [-problem an gettext 24.03.2004 Version 0.50 - srvreport.pl: - locale support added - http://search.cpan.org/~imacat/Locale-Maketext-Gettext-1.10/ added - Gettext.pm and Functions.pm for localization support - srvreport.conf: - new config entry "locale" - almost all pm-files: - localized - locales/info.txt added - locales/files.txt added - german (de) locale added - locales/additional.txt added (for translation of "description" in srvreport.conf 23.03.2004 Version 0.45 - srvreport.pl: - read CSS from file - seperate CSS possible for mail- and file-report - added $VERSION variable - added link to SF-page at the bottom of the report (incl. version) - LogReport.pm: - removed "pre" config entry - added "cssClass" config entry; here you can define the CSS class name which will be used inside the

-tag - HtmlHelper.pm: - implementation of loading CSS-file(s) - mail.css: - first version of CSS from file - HttpdReport.pm: - new config entry "limitHosts"; here you can specify the max number of hosts which will be shown; all other will only be shown as "others" 19.03.2004 Version 0.44 - srvreport.pl - "mailFrom" config entry added - now you can specify more than one recipient in "mailReport" - output of error/debug/status/warning left-aligned (via CSS) - HTMLHelper.pm - GetStyle: added CSS for error/debug/status/warning - index.php (web\html) - 1st working version from "Philip Fleck" added, thanx! - srvreport.conf - added some comments for mailReport and mailFrom - removed chrootkit from "order" entry 12.03.2004 Version 0.43 - PostfixReport.pm - PopperAnylse now shows per default not every single login time instead it shows the logins in "intervals" - Interval can be changed in configuration via "popperInterval" (default is 5) - Also added a column for "# checks" 25.02.2004 Version 0.42 - Log.pm: - Added support for "warning" - srvreport.pl: - createData is now "save" with "eval" - errors, warnings and status are reported at the end of the mail/file; if no mail is sent, it will be printed to STDERR - HttpdReport.pm: - Now check if a line is valid ($bytes and $state are values) If not, then log this as "status" - Other: correct initialization of some variables to work with the new "eval" handling 24.02.2004 Version 0.41 - pipelog.pl - Now mult-threading(process) capable - TrafficReport.pm - It can now be configured (barSameMax) if the bars for In/Out should use the same max-value or different (default) - Install.txt - Small additions 19.02.2004 Version 0.40 - TrafficReport.pm: - If traffic is negativ, then use 0 (can happen if the server was rebooted - PostfixReport.pm: - (internal) Data are now created in "createData" - Can now display the "orig_to" entry - Can now display the "reject:" entry - Postfix is using sometime only 10 digits for the ID - Displaying of rejected messages is now configurable (see srvreport.conf) - Summary report now correctly displays the total bytes of postfix 31.01.2004 Version 0.35 - support for pattern-typ "time5" - added new config entry for LogReport (pre) this allows now better output with the pre-html-tag 29.01.2004 Version 0.34 - All modules supporting now the "regex" and "regexkeys" config entries With this you can define your own regex and also define the macht indexes See srvreport.conf for more infos - PostfixReport now can also display the client name of the sender (showClientName = 1) 28.01.2004 Version 0.33 - Fixed (major) bug in HttpdReport 27.01.2004 Version 0.32 - fixed bug in srvreport.pl if hostname could not be found - Added logging support (--debug=1) - Added support for displaying the report to stdout (--test=8) - removed the need for "no strict "refs"" in some Report-Modules - first (stupid) implementation for popper-report 26.01.2004 Version 0.31 - Bug in HttpdReport.pm corrected (division by zero) 26.01.2004 Version 0.30 - Bug in TrafficReport.pm corrected (division by zero) 26.01.2004 Version 0.29 - fixed several bugs with --TEST=x - fixed bug, that no file-report is created 25.01.2004 Version 0.28 - better solution for "FileReportCreateAlways" and isDayBreak - Added "ReportWithTime" config entry 25.01.2004 Version 0.27 - added support for creating local files for every call - added "FileReportCreateAlways" config entry 19.01.2004 Version 0.26 - changed config-entry "mailAddr" to "mailReport"! - added support for creating local files (see "fileReport") - NOMAIL removed from config 19.01.2004 Version 0.25 - PostfixReport.pm works now with postfix AND sendmail logs - Bugfix in CPUReport.pm if max-usage is 0.00 17.01.2004 Version 0.24 - Small docu fixes in INSTALL.TXT - HttpdReport can now delete the logfile (only usefull if the logfile only created for the SrvReport!) - Now all command line parameters are parsed (so you can test report generation by calling the script srvreport.pl with the parameter --test=1) - Fixed chmod of srvreport.pl and pipelog.pl 17.01.2004 Version 0.23 - Small fix for CreateMail-From - Added doc directory - Small additions to INSTALL.TXT 10.01.2004 Version 0.22 - Small fix in Summary of HttpdReport (now showing the bytes transferred) 08.01.2004 Version 0.21 - Completely redesigned! - Completely object oriented - Easy extendable by deriving from ReportBase.pm - Configuration-file added (srvreport.conf) - Now contains the following modules: - LogReport - HttpdReport - PostfixReport - TrafficReport (via /proc/net/dev) - CPUReport (via uptime) - Report for Apache-Logfiles via bin/pipelog.pl - (Small) Documentation added 02.01.2004 Version 0.06 - Fixed wrong color (green => blue) - Fixed style-sheet td-tag - Traffic now also shown as text table - CPU usage shown as text tabel and graphic - Added summary info on the top - Corrected INSTALL.TXT 02.01.2004 Version 0.05 - Traffic graph now for every hour - Displays the number of bytes in readable format (e.g. 123.4M bytes) - Fixed XferLog parsing - Better report for traffic 02.01.2004 Version 0.04 - Make use of FindBin and all paths are now relative - Added bin/lib/perl/MIME/Lite.pm - Ported to use MIME::Lite - Added first grafic report (traffic) - Now sending multipart/alternative mails 01.01.2004 Version 0.03 - Added TODO.TXT file - Added HISTORY.TXT file - Added INSTALL.TXT - Fixed owner for srvreport.pl 01.01.2004 Version 0.02 - In mail report the following was added: - report of last users - report of warnings - report of xfer-log 01.01.2004 Version 0.1 - Initial development - Should run via crontab every 5 minutes - Traffic logging (via ipconfig -vL -Z) implemented - CPU-Usage logging implemented - Every midnight, mail with traffic- and cpu-log will be sent - Configuration via main-script (srvreport.pl)