32605c5db532870528ea6a5b3d30bab5f06387f0
[gnucomo.git] / ChangeLog
1 gcm_maintenance
2 -----------
3
4  - Cleanup abuse records only for subnets smaller than /16.
5
6 gcm_daemon
7 -----------
8
9  - Resolve a hostname before adding to the abuses.
10
11 Database
12 ---------
13
14  - Added a new group daemon and created additional permissions to the database.
15  - Cleaned up the COLUMN recognized from the TABLE logng
16
17 web interface
18 -------------
19
20  - Put the password for logging into the database between quotes (').
21  - When removing an object, clean up logs, parameters and notifications.
22
23
24
25 Dec 12, 2007 - Release 0.0.12
26 ====================================
27
28 gcm_input
29 ---------
30
31 - New options added for logrunner:
32    -l <file>: Read input from logfile <file>.
33    -s <file>: Use <file> as the status file instead of the default.
34    -v Verbose output
35
36 - Logrunner outputs debug information only when the -v option
37   is added on the command line.
38
39 - Buffer overflow problem in logrunner with input lines of more than 4096
40   characters fixed.
41
42 gcm_daemon
43 -----------
44
45 - Added a new script gcm_maintenance.php to cleanup the database
46   and check referential integrity. Purging old log entries is
47   removed from the gcm_daemon script.
48
49 web interface
50 -------------
51
52 - Added fields to edit the range of a DYNAMIC property.
53
54 - The index.html page in now obsolete and redirects to index.php
55
56 - Added an option to perform one action on multiple notifications at once.
57
58 - When blocking a subnet, maintain the references to the log table from
59   all IP addresses in that subnet.
60
61 Nov 22, 2007 - Release 0.0.11
62 ====================================
63
64 Database
65 ---------
66
67 - Added the class definition for a filesystem parameter.
68 - New issue type: 'property out of range'.
69
70 gcm_input
71 ---------
72
73 - Logrunner can select a specific host from a logfile, in case
74   syslogd acts as a log server for multiple systems.
75   This adds a new parameter (logile/fromhost) to the configuration
76   file.
77
78 - Logrunner uses the official hostname (FQDN) instead of the
79   hostname returned by gethostname().
80
81 - Handling of parameters is greatly improved.
82   When creating a new parameter from an XML report which is fed into
83   gcm_input, the class definition is used as a template to fill in
84   the default values for the properties.
85   The class is also used as a template when a new property is added
86   to an existing parameter.
87
88 - DYNAMIC properties are now handled properly. Instead of making a
89   'changed property' notification, the value is checked against the
90   defined range for the property. An 'out of range' notification
91   is created when this condition is detected.
92
93 - Added a new filter which can directly read the output
94   of the UNIX df command. A brief description is added in
95   the user manual.
96
97 - Bugfix: Segmentation fault when reading an rpm package list
98   with empty lines.
99
100 - New program: spamdetect.
101   Expirimental utility to log manually reported spam and have
102   Gnucomo detect the spammer's IP address.
103
104 - Added a number of usefull scripts, mainly for use in Gnucomo clients.
105
106 web interface
107 -------------
108
109 - The buttonbar at the top of each page is now a fixed 'div' element
110   instead of a framed page.
111   Contributed by Edwin Nadorp.
112
113 PHP classes
114 -----------
115
116 - Added a PHP5 module for the configuration class.
117
118 Test
119 ----
120
121 - The test script, gcmtest can run individual tests as opposed to running
122   all tests in sequence.
123
124 Oct 19, 2007 - Release 0.0.10
125 ====================================
126
127 - Improved method for finding PostgreSQL libraries in configure script.
128
129 Database
130 ---------
131
132 - Fixed field declaration for PostgreSQL 7.4
133 - New tables: log_abuse, object_abuse and service_pattern
134 - Added general service patterns in the service 'ANY'
135 - Added new issue types.
136 - Log_adv and derived tables removed.
137
138 logrunner
139 ---------
140
141 - Status files in /var/lib
142 - Rewrote most functions and datastructures into C++
143 - Use the Gnucomo (XML) configuration file
144
145 gcm_input
146 ---------
147
148 - Accept '/' and '.' characters within the service name in a system log.
149   When extracting the service name, the '/' character is not considered
150   part of that name, though.
151 - Textual changes in parameter notifications
152 - Experimental start of database OO abstraction layer.
153 - The '-' character is part of the service name.
154 - Skip the Email header when reading XML input.
155
156 gcm_daemon
157 -----------
158
159 - Bugfixes in the analysis of sendmail logs.
160 - Send email about open notifications to an object's users.
161 - Added log analysis for spam and abuse in sendmail log entries.
162 - Added pattern check on log entries with the service_pattern table.
163 - Create notifications from log entries with pattern matching.
164 - Record the date when adding the number of abuses for an IP address
165   in the abuse list.
166
167
168 web interface
169 --------------
170
171 - Added a form to edit user data.
172 - Added a view for the log analysis with a link from the log page.
173 - New page: Parameter classes administration.
174 - New page: Abuse list
175 - Added an interface to edit check patterns to the services page.
176 - Manually edit parameters.
177 - View logs from abusing IP addresses.
178 - Added an interface for editing issues.
179 - In the abuse list, IP addresses can be whitelisted.
180 - Improved interface for editing check patterns.
181
182 Test
183 ----
184
185 - Added test data for Problem Report 15, 16 and 17
186
187 Documentation
188 ---------------
189
190 - Added a list of related projects and introduced the concept of
191   dynamic parameters in the manifest.
192
193 Dec 24, 2003 - Release 0.0.9
194 ====================================
195
196 Database
197 ---------
198
199 - Changed the type of log_adv_daemon_email.delay and log_adv_daemon_email.xdelay
200   from time to interval. These delays can be more than 24 hours.
201
202 libgnucomo
203 ----------
204
205 - Catch an exception if we can not setup a database transaction.
206
207
208 gcm_input
209 ---------
210
211 - SQL_Escape(): Backslashes are correctly escaped with another backslash
212 - XML_Entities(): transform non-ASCII characters into hexadecimal entities.
213 - Do not add another parameter_notification record is the notification
214   already exists for that parameter.
215 - Catch exceptions from the database library.
216 - Major redesign. All input is handled through XML. Raw input data is first
217   transformed into an XML document for further processing.
218   A collection of polymorphic classes handle the transformation of various
219   input formats into XML.
220 - Classifying input data is done with a finite improbability calculation.
221
222 gcm_daemon
223 -----------
224
225 - Create separate notifications for different objects in service_check().
226   Fixes problem report 23.
227 - Change the notation for delays from "days+hh:mm:ss" to "days hh:mm:ss. This
228   fixes problem report 14.
229 - In linux_daemon_sendmail(), check the existence of '=' before using it as a
230   field separator. Fixes problem report 15.
231
232
233 web interface
234 --------------
235
236 - Optionally show or hide removed parameters from the parameter
237   comparison page.
238
239 Documentation
240 ---------------
241
242 - Added a User Manual, based upon the draft TUTORIAL
243
244
245 Sep 04, 2003 - Release 0.0.8
246 ====================================
247
248 Database
249 ---------
250
251 - Fixed a few typos in the database creation script.
252 - BUGFIX: Secondary indices on log_notification were unique.
253 - Additional information in the 'usr' table: 'display_name' and 'email'.
254 - Added new issues and services.
255
256 gcm_input
257 ---------
258
259 - Fixed a namespace problem in message.cpp
260 - Fixed a gcc 2 vs. gcc 3 problem in gcm_input.cpp
261 - Reject log entries that are found to be invalid.
262 - A date without the time for the '-d <date> option will
263   assume midnight on that date.
264
265 gcm_dameon
266 ----------
267
268 - In PHP, the method configuration::read() will also read
269   a user-specific configuration from the home directory if a 
270   PHP script is not run through the web server.
271 - Accept command argument '-c config' to use an alternate
272   gnucomo configuration.
273 - New PHP methods:
274    db::Result() - Returns the result from the last query.
275    db::Field()  - Returns the value of a single field.
276    db::new_notification() - Create a new notification in the database.
277 - Check the log table against the servies running on an object and
278   create notifications if a service is not supposed to be available
279   or is not known at all.
280
281 libgnucomo
282 ----------
283
284 - Changed the gnucomo_database class to the new PostgreSQL
285   library, libpqxx
286 - Overloaded gnucomo_database::Field() to include the Result
287   from a query as an argument.
288
289 web interface
290 --------------
291
292 - New page to enter and modify services.
293 - The objects page provides an interface to edit the list of
294   services and users for an object.
295
296 Test
297 ----
298
299 - Reduced the amount of output from test scripts.
300 - Added output data that is expected from test scripts.
301 - New test: tests the database upgrade with gcm_daemon
302 - Overall test script: gcm_test. Runs all tests in sequence.
303
304
305 Aug 15, 2003 - Release 0.0.7
306 ====================================
307
308 Database
309 ---------
310
311 - Added index to the history table to improve performance.
312
313 gcm_input
314 ----------
315
316 - Added a new section 'logging' with three configuration parameters:
317    method       - Output method to use for logging.
318    destination  - Name of the log output destination.
319    level        - Log level: Verbose output if greater than 0.
320 - Added '-i' option for incremental parameter updates.
321 - Debug output to the log stream instead of cerr.
322 - Fixed namespace problems in XPath searches of the DOM.
323 - Moved string utility functions to a separate file.
324 - Different kinds of log files are parsed by a collection of objects
325   of different classes, derived from the base class line_cooker
326   Depending on the message content or the message_type element in
327   XML, one of these objects is selected.
328 - Logrunner is integrated with gcm_input. Although its functionality
329   is still limited, a connection between logrunner and gcm_input
330   is beginning to form.
331
332 gcm_daemon
333 ----------
334
335 - BUGFIX: Print an error message if a parameter does not have
336   any history.
337 - BUGFIX: undefined variables and indices when processing sendmail logs.
338
339 web interface
340 --------------
341
342 - BUGFIX: Convert special characters for HTML (<, >, and &) into
343   their entities.
344 - BUGFIX: Removed parameters were somtimes shown on the wrong side
345   of the parameter difference page.
346 - Added performance measurement to the parameters page.
347 - Added editing of detailed object information.
348
349 Jul 15, 2003 - Release 0.0.6
350 ====================================
351
352 - Gcm_input reads IRIX system logs.
353 - Gcm_input exits without reading any input if the database connection fails.
354 - Gcm_input extracts the hostname out of the 'From:' or 'Message-Id:' line
355   of an email header.
356 - New member C++ function gnucomo_database::is_conected().
357 - New columns in the table 'log_adv_daemon_email': size, pri, relay,
358   status_details and dsn.
359 - Added several indices for the table 'log_adv_daemon_email'.
360 - In phpclasses/db.class.php: Added the database connection string as
361   an argument to the function copy_db_class.
362 - Gcm_daemon processes logs from sendmail.
363 - Fixed the PHP member function db::db_connect(). The Postgres connection
364   string is now passed as an argument to that function.
365 - Gcm_input reads cooked log entries from an XML input stream.
366 - New database tables: notification_check, notification_check_buffer,
367   notification_check_line and object_statistics.
368 - PHP function db::query() returns the result index.
369 - PHP function db::num_rows() accepts a result index as argument
370   (default = 0 -> use result from the previous query).
371 - New PHP function db::fetch_object().
372 - Gcm_daemon gathers statistics on parameters, notifications, etc. for all objects.
373 - The Objects web page uses the new object_statistics table.
374 - The Log web page shows the log one day at a time.
375 - Removed parameters are displayed in a shaded style.
376
377 Feb 21, 2003 - Release 0.0.5
378 ====================================
379
380 - The notifications web page keeps a record of each time a notification
381   is displayed. Either on a listing or in detail.
382 - Improved the table layout of the objects web page.
383 - In the users page of the web interface, you can add a new user and
384   make him/her a member of a group.
385 - Users can change their password through the users page of the web interface.
386 - Gcm_input also detects packages that are removed from the system.
387 - In gcm_input, determining the version number of a package in a RPM
388   list is improved. Only the last one or two parts of the string that
389   begin with a '-' and a number are considered the version.
390 - The C++ function gnucomo_database::new_notification() uses the SQL
391   function currval() to obtain the identification number
392   of the most recently created notification.
393 - The C++ class gnucomo_database prints the query on cerr, along
394   with the error message when the query results in an error.
395 - Removed the 'Change Password' image from the main menu.
396   Changing passwords is integrated in te users page.
397 - Added the 'form' class on table and td elements. This class is intended
398   for borderless tables that are used to layout HTML forms.
399 - A new style 'h2.error' for error reports in the stylesheet.
400   Put borders around the tables and cells in the web interface.
401   Added right-alignment for numbers and fixed width for timestamps.
402 - Gcm_daemon maintains the last notification identifier.
403 - Setup the groups and database permissions. The three groups
404   are: view, ops and admin.
405 - Added two new entries to the action table.
406 - All web interface pages use the page class. This provides for a
407   uniform session and database handling.
408 - Use our own error handler for PHP errors and warnings in the web interface.
409 - Added log, notification and parameter counters to the 'object' table.
410   Counting these things at the time a user interface needs them is
411   too slow. Other programs, like gcm_daemon en gcm_input should prepare
412   these counters for quick retrieval.
413 - Show the total number of Log entries, parameters and notifications
414   on the object page of the web interface.
415 - Added new tables to the database : log_adv_daemon and log_adv_daemon_email.
416 - Made gcm_daemon a 'proper' executable.
417 - Paths of included files in PHP scripts are more flexible.
418 - Gcm_daemon recognizes important start and stop events of various daemons
419 - Gcm_daemon checks for exiting daemons in the log entries.
420 - Directory structure of PHP scripts reorganized. PHP scripts that are included in
421   both gcm_daemon and the web interface are now in the directory src/phpclasses.
422
423
424 Feb 05, 2003 - Release 0.0.4
425 ====================================
426
427 - Added style parameters for diff-like table views and textarea elements.
428 - Display and handle notifications in the web interface.
429 - Display the difference of all package class parameters for two objects
430   in the web interface.
431 - New PHP class added: 'page'. This is a (sort-of abstract) base class
432   for all Gnucomo web interface pages. It hanldes the session, login,
433   opening the database and the head and tail of the web page.
434 - gcm_input creates notifications when a new package is discovered
435   in a 'rpm -qa' list or when the version of a package is changed.
436 - Bug fix: action.statuscode was in upper case.
437 - Added new tables to the database: parameter_class and parameter_notification.
438 - New C++ function: gnucomo_database::new_notification(). retruns the id number
439   of the newly created notification record.
440 - Added new records to the 'type_of_issue' table.
441 - Changed semantics of actionid 9 in the 'action' table.
442 - Bugfix in gcm_input: The hostname in a system log may contain
443   digits as well as letters.
444 - Added new fields to the 'type_of_issue' table.
445
446 Dec 06, 2002 - Release 0.0.3
447 ====================================
448
449 - Directory structure is reorganized and prepared for GNU configure.
450 - gcm_input sets the value of log.processed to FALSE when inserting a
451    new log entry into the database
452 - When a syslog entry arrives from last year, gcm_input subtracts one from the
453    year of arrival to create the year of the log entry.
454 - Gcm_input reads output from "rpm -qa" and enters packages in the parameter table.
455 - Changes to log and log_adv tables described in the manifest.
456 - Added description of gcm_daemon in the design.
457 - Added new program (in PHP): gcm_daemon.
458 - Added a check on the database version in gcm_damon.
459 - Database-login in gcm_damon can be done using TCP/IP or UNIX-sockets.
460 - Gcm_daemon processes iptables-records including ICMP support.
461 - Returning values with ICMP (bounced) are seperate and linked to the same logfile.
462 - Which each new version records that haven't been recognized are processed again
463   through gcm_daemon.
464 - Added program-specific database user and password in config file.
465 - Added new arguments to gnucomo_config::Database(): user and password.
466   If empty, default values are taken from the config file.
467 - Implemented a slightly functional web interface that shows some
468   output from the database.