Minor layout improvements
[gnucomo.git] / doc / manifest.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE doc SYSTEM "/usr/local/xslt/doc.dtd">
3 <doc style="main.css" xmlns:xlink="http://www.w3.org/1999/xlink">
4   <book>
5
6 <titlepage>
7    <title>GNUCOMO</title>
8    <subtitle>GNU COMPUTER MONITORING</subtitle>
9    <subtitle>A system for interactive system monitoring.</subtitle>
10    <subtitle>Development manifest</subtitle>
11
12    <author>Brenno J.S.A.A.F. de Winter, De Winter Information Solutions</author>
13    <author>Arjen Baart, Andromeda Technology &amp; Automation</author>
14    <date>October 05, 2002.</date>
15    <docinfo>
16       <infoitem label="Version">0.20</infoitem>
17    </docinfo>
18
19 </titlepage>
20
21 <toc/>
22
23 <chapter>
24    <heading>About this document.</heading>
25
26 <para>
27 This document describes the technical specifications for the Gnucomo project.
28 It will describe the functionality achieved, design specifications and choices made.
29 The document will be the manifest for the developers to work in the same direction
30 and not run into unneeded disappointments.
31 </para>
32
33 <section>
34   <heading>History of the document.</heading>
35
36 <table cpos='lp{3cm}lp{5cm}'>
37   <thead>
38     <col>Version</col><col>Author</col><col>Date</col><col>Remarks</col>
39   </thead>
40   <row>
41     <col>0.l</col><col>Brenno de Winter</col><col>Jul 11, 2002</col>
42     <col>
43       Initial version
44     </col>
45   </row>
46   <row>
47     <col>0.11</col><col>Arjen Baart</col><col>Jul 12, 2002</col>
48     <col>
49       Additional guidelines and dataflow diagram.
50     </col>
51   </row>
52   <row>
53     <col>0.12</col><col>Brenno de Winter</col><col>Jul 15, 2002</col>
54     <col>
55       Database design added
56     </col>
57   </row>
58   <row>
59     <col>0.13</col><col>Arjen Baart</col><col>Jul 16, 2002</col>
60     <col>
61       Entity-relationship model added.
62     </col>
63   </row>
64   <row>
65     <col>0.14</col><col>Brenno de Winter</col><col>Jul 17, 2002</col>
66     <col>
67       Based on feedback. Small changes to the datamodel and finishing touches
68       in lay-out of the tables. Added some examples.
69     </col>
70   </row>
71   <row>
72     <col>0.15</col><col>Brenno de Winter, Arjen Baart</col><col>Jul 21, 2002</col>
73     <col>
74       Additional feedback processed, indexes added, ERD added and SQL-script created.
75     </col>
76   </row>
77   <row>
78     <col>0.16</col><col>Brenno de Winter</col><col>Aug 7, 2002</col>
79     <col>
80       Communication handling added.
81     </col>
82   </row>
83   <row>
84     <col>0.17</col><col>Brenno de Winter</col><col>Aug 11, 2002</col>
85     <col>
86       <para>* Description of the client-side for communications.</para>
87       <para>* Several updates to the database descriptions, drawings added.</para>
88       <para>* More work on the installation chapter.</para>
89       <para>* Created an extra field to the unprocessed_log table and added
90               a between the table service and unprocessed_log.</para>
91     </col>
92   </row>
93   <row>
94     <col>0.18</col><col>Brenno de Winter, Peter Roozemaal</col><col>Aug 15, 2002</col>
95     <col>
96       <para>* Review done by Peter Roozemaal: adjusted intro and several clarifications made</para>
97       <para>* Arjen Baart: Adjustments to database drawings</para>
98       <para>* New installation recommendations</para>
99     </col>
100   </row>
101   <row>
102     <col>0.19</col><col>Arjen Baart</col><col>Aug 27, 2002</col>
103     <col>
104       Conversion to XMLDoc
105     </col>
106   </row>
107   <row>
108     <col>0.20</col><col>Arjen Baart</col><col>Oct 20, 2002</col>
109     <col>
110       Minor layout improvements
111     </col>
112   </row>
113 </table>
114
115 </section>
116 </chapter>
117
118 <chapter>
119 <heading>Aim of the project.</heading>
120
121 <para>
122 The number of log-files in a system and the tools in general do not make
123 monitoring a system simple. Quite often there is so much information that
124 attention for logfiles seems to fade away. For that reason monitoring routers
125 and clients is often not an option. Instead of timely detection of problems,
126 logs more often are used to find out what went wrong. When a system is
127 under attack early signals can often easily be detected<footnote>Just as in
128 real life there a signals that things are not going in the right direction.
129 For the attacks on September 11th 2001 there were many signals available
130 that could to have led to early detection: warnings of several intelligence
131 agencies, warnings within the FBI, flight schools that report strange
132 customers that want to steer a plane and don't seem to care about take
133 off and landing, people opening accounts under fake names.</footnote>
134 and preventive measures could have been taken if the time was only available.
135 </para>
136
137 <para>
138 The Gnucomo project is meant to make pro-active monitoring of computers
139 and devices easier. It will contain a set of applications that will
140 retrieve all types of monitoring information from devices and place
141 it into a database. Devices can be server computers, desktop computers,
142 PBX'es or other systems. By running checks the manual process of
143 watching log files can be reduced. Also an intelligent script can
144 see things that a human being will easy overlook. Gnucomo won't
145 relieve an administrator of all manual work on log-files, but will
146 increase the changes on actual monitoring.
147 </para>
148 <para>
149 With all this data being available at one central location the gnucomo-server
150 acts as some kind of black box for computer systems. If something does
151 happen the evidence will be available at a remote location available
152 for exploration<footnote>This analogy is based on a remarkable anecdote:
153 One a trip to US I spoke to a 747-captain of Air France. While talking
154 over several subjects we touched security. When we went some deeper I
155 touched the subject gnucomo and he told me that Air France was doing
156 the very same with real black boxes. By sending all the data to Paris
157 errors can be detected earlier and be resolved. In any less fortunate
158 case the cause of the crash might be detected sooner (or fuller).
159 For me this was a signal there is a point in working gnucomo because
160 the analogy is valid.</footnote>. Forensics will be made easier.
161 Also the collected data is available from multiple locations make
162 it easier to found more about an attack. The change that you overlook
163 things will be reduced.
164 </para>
165 <para>
166 Based on the entered data all sorts of analysis will be performed to discover
167 abnormalities a normal maintenance tool or IDS wouldn't be looking at.
168 An example could be a website in Dutch that suddenly obtains a lot of
169 attention from Greek visitors (based on the location of their
170 IP<footnote>That IP could also warn for other things like: excessive
171 data traffic from wireless connections at times that you wouldn't be
172 expecting traffic at all, absence of traffic when you would be expecting
173 some traffic at least or even what article is liked in which part of the world,
174 what regions poses the highest threat to the security of the system (based
175 on the location of the IP address).</footnote>). These abnormalities will
176 be presented as user-friendly as possible to increase awareness of the
177 state of the system. By doing that the system can also be used for more
178 complex analysis. One than can look at long-term trends like hacking
179 attempts that take place, new exploits that are tried all of a sudden
180 or signs of distributed attacks or a certain pattern of attempts<footnote>A portscan
181 that last three days is hard to detect with a real-time IDS,
182 while gnucomo would discover this anyhow. With correct intelligence
183 one portscan from multiple IP-addresses can be related.</footnote>.
184 </para>
185 <para>
186 Also extra data will be gathered where ever possible to save time to
187 the administrator. If IP address attract attention of gnucomo the next
188 logical step would be to use tools like dig, whois and visiting arin-related
189 websites. This data will automatically be collected in an early stage and
190 stored in the database.
191 </para>
192 <para>
193 The results will be gathered in a warning system.
194 Those warnings will be presented to the administrative person
195 who is responsible for that particular machine or network.
196 Having multiple systems in the system can add to the intelligence that
197 can be gathered. The interface will be web-based and aimed at user-friendliness.
198 </para>
199 <para>
200 Since multiple systems can enter data into the Gnucomo database more
201 intelligent hardware and security detection can be done.
202 When things do go wrong Gnucomo contains as much information as
203 possible to figure out what happened and assist in the forensics.
204 Since research on the signals afterwards is broader more attention
205 will be given as much data as possible and do less filtering.
206 </para>
207 <para>
208 With the data in the database also policies can be checked automatically
209 retro-actively so that the security leaves some room to stretch some rules.
210 This may sound not logic, because one of the main functions of security is
211 to enforce rules. But some rules are made with the different meanings.
212 For instance: a rule may be that private browsing isn't allowed.
213 The background of such a rule might be to try and reduce the amount
214 of data traffic (too many people downloading mp3's, or people not
215 getting to work anymore). By monitoring that specific fact
216 (bandwidth spent on non-business related Internet use)
217 it's possible to be relaxed on that rule and enable many good-willing
218 users reading his/hers daily newspaper.
219 </para>
220 <para>
221 The scope of the project is clearly limited to monitoring and not to
222 offer automated maintenance or web-based maintenance.
223 There are other projects currently being able to provide that
224 functionality. We will focus on intelligence and user-friendliness
225 of representation of facts presented. A warning should trigger
226 an administrator to get up and do something using the tools he or she values the most.
227 </para>
228 <para>
229 Also we are not aiming to replace great tools like SNORT as a real-time IDS.
230 These tools can do thing, that in the beginning won't be a part of gnucomo
231 out of performance reasons. Also there is no need to duplicate what they
232 already did. If that energy is placed in intelligent we're very complimentary.
233 Gnucomo can however be a reality check on an existing NIDS (Network Intrusion
234 Detection System). For instance if warnings keep coming it may be time to
235 rethink the rules that have been set.
236 </para>
237
238 <para>
239 This evolves to the following list of functions gnucomo can provide:
240 </para>
241 <itemize>
242   <item> Intrusion detection </item>
243   <item> Detecting hacker attempts </item>
244   <item> Early detection of system failures </item>
245   <item> Exhaustion of system resources </item>
246   <item> Capacity planning for future expansion </item>
247   <item> Spotting bottlenecks in a system.  </item>
248   <item> Verifying system integrity </item>
249   <item> Assistance with troubleshooting </item>
250   <item> Perform post-mortem forensics </item>
251   <item> Incident response system.  </item>
252 </itemize>
253 </chapter>
254
255 <chapter>
256    <heading>Decisions for the overall system.</heading>
257
258 <para>
259 In order to get the project running we have to make some decisions before
260 we can start. Of course are the decisions always open for review,
261 but initially our main aim is to get a system running. This doesn't
262 mean that we allow a lesser architecture, but more that we create an
263 environment that will lead to results.
264 </para>
265 <para>
266 The following decisions apply to the system in general:
267 </para>
268 <itemize>
269   <item>
270     The major part of the system will be used for security features.
271     The solution itself has to be secure.
272   </item>
273   <item>
274     In general we strive to be as platform and application independent as possible.
275     However to achieve software to get ready and to assure progress some selections
276     will have to be made excluding options for applications<footnote>An example is
277     in the database. By using stored procedures and triggers MySQL cannot be used.
278     However the data integrity at that point is more important than the ability to
279     use MySQL.</footnote>. Where possible we will enable ports to other applications
280     and platforms.
281   </item>
282   <item>
283     The computers collecting the data will only be Linux machines,
284     with future support for other Unices. However it is not aim our
285     to port this part of the project to other platforms just now.
286   </item>
287   <item>
288     The database system will make heavy use of stored procedures and
289     triggers and thus lock out some less feature-full database.
290   </item>
291   <item>
292     Although we're not married to a database system initially this will be
293     PostgreSQL only so that we can build for results. The code however
294     shouldn't be build to deliberately lock outer systems.
295     Other database that might be interesting to add: DB2, Oracle
296     (if the rainfall of security advisories seems to be over) and Informix.
297   </item>
298   <item>
299     The interface for the user will be a web-interface written in PHP
300     with PostgreSQL-database access. Despite the fact that initially
301     this will be the preferred way to communicate with our system,
302     other interfaces are welcome and should be supported.
303   </item>
304   <item>
305     The technologies used for the daemons on the central site and remote
306     site are open for discussion. A decision is made when it is clear what
307     exactly will be needed to code.
308   </item>
309   <item>
310     The original logfiles on systems will not be harmed in any way,
311     but will be saved the way they presented to gnucomo.
312   </item>
313   <item>
314     In the database processed data as well as raw data will be stored.
315   </item>
316   <item>
317     Our main aim is to ease the life of the administrator when dealing with
318     the symptoms of a machine so that he doesn't miss important notifications.
319     The project will be made around detection. We won't focus on making a
320     maintenance applications but solely on monitoring, because other applications
321     like webmin or linuxconf do already deliver such functionality.
322     We are complementary to those applications. This doesn't mean that
323     the system cannot send SMS'es, e-mails or make alarms sound.
324   </item>
325   <item>
326     Any output of the logbook will be stored and sent within a certain
327     interval which can be set. By doing that the mechanism will not flood
328     the total mechanism and overload machines.
329   </item>
330   <item>
331     When applications for gnucomo we will try and do the non-server part
332     as platform independent as possible. This in order to prevent writing
333     a same application multiple times. For instance one for Unices, one
334     for Macintosh and one for Microsoft.
335   </item>
336   <item>
337     To ensure the quality of software and to prevent any unwanted functionality
338     rolling into the project all code will be reviewed by one of the lead members
339     before it is accepted. Since this project is aimed at throughput speed no
340     formal procedures will be enforced, but we promise not to let software in
341     that hasn't been checked.
342   </item>
343 </itemize>
344
345 </chapter>
346
347 <chapter>
348   <heading>Overall system.</heading>
349
350 <para>
351 The overall systems aims to make maintenance data better accessible and by
352 doing that lowering the barrier to be on alert for intrusions,
353 system failure and other misery that can happen to computer systems.
354 Also more systems can be monitored and even focus can be placed on desktop computers,
355 something that nowadays rarely happens. Since the solution is only aimed at
356 monitoring (with some responses possible) other people can watch their system(s)
357 without being Administrator<footnote>This can be interesting for people using
358 this service and not doing their own maintenance (smaller companies).
359 If technical action needs to be taken a warning can be send to an administrator.
360 This saves costs and time.</footnote>.
361 </para>
362 <para>
363 The main system will know to sides:
364 </para>
365
366 <itemize>
367   <item> Central Application - server </item>
368   <item> Monitored System - client </item>
369 </itemize>
370
371 <para>
372 The project has been setup as a two sided system in order to be able to
373 guard many computers at the same time.
374 However it may be obvious that both sides of the application can very
375 well be installed on a single system.
376 </para>
377 <para>
378 When events<footnote>A signal can be the outcome of process that finished,
379 logbook entries, warnings from intrusion detection systems,
380 etc. </footnote> happen they will be stored in a file.
381 When this file is delivered to a certain directory a daemon will detect
382 this and start the transfer of the file. The file will be transferred
383 to the central application or the client. This transfer will be triggered
384 immediately after a process has finished or with a certain time-interval
385 when it concerns a logbook. All output will be placed in a directory where
386 the daemon detects it and ensures the transport. For transport currently
387 only two mechanisms will be supported:
388 </para>
389 <itemize>
390   <item>
391     Encrypted file copy relying on the SSH protocol.
392     On Unix-based systems this will scp (secure copy).
393   </item>
394   <item>
395     E-Mail. The e-mail is encrypted and signed using gpg and then sent to the server.
396     Since the file format will identify the type-of-output the Subject-field of
397     the e-mail is not really needed.
398   </item>
399 </itemize>
400
401 <section>
402   <heading>Priority mechanism.</heading>
403 <para>
404 Each notification has a certain priority that requires a different handling
405 of the issue. How each priority will be dealt with is something that can
406 be set per server. The priority mechanism is a simple system of five
407 categories (can be more or less).
408 </para>
409 <para/>
410 </section>
411
412 <section>
413   <heading>The dataflow diagram.</heading>
414 <para>The main dataflow will be as follows.</para>
415 <para>
416   <picture src="dataflow.png" eps="dataflow" scale="0.7"/>
417 </para>
418 <para/>
419 </section>
420 </chapter>
421
422 <chapter>
423   <heading>Central Application: signal handler.</heading>
424
425 <para>
426 <para>
427
428   <picture src="architecture.png" eps="architecture"/>
429        Illustration 1 Basic overview of the processes on the server.
430 </para>
431
432 On one machine signals from the network will come in.
433 These signals can be logfiles, result files from applications,
434 remarks entered by the administrator or whatever.
435 Data delivery takes place into a certain directory.
436 A daemon detects that data has come in and will enter it into the database.
437 Once in the database stored procedures and triggers will recognize certain
438 behavior and generate alerts. The user responsible for the server will be
439 confronted with the alerts and can mark them, add comments to it or ignore them.
440 Also it will be possible to do intelligent analysis on not so logical relations
441 per computer or across computers<footnote>A good example could be a portscan
442 on a system that takes place during a week. Normal a simple portscan takes
443 place in a couple of minutes and will thus be easy to detect.
444 By taking a longer period such a scan is harder to detect. </footnote>. Such
445 scripts make detection possible, that is too time consuming to do during
446 processing of the data.
447 </para>
448
449 <section>
450   <heading>Data processing.</heading>
451
452 <para>The data processing has four tasks:</para>
453 <itemize>
454   <item>
455     Extracting data from e-mail and store it in the input-buffer.
456     This can be done by a daemon that checks the e-mail<footnote>It would be logical
457     to place an e-mail server like sendmail or postfix on the server.
458     In many cases the monitored computer will be featuring a SMTP daemon.
459     If a system is comprimised no evidence that comes through will be really
460     trustworthy. By sending it to another machine all evidence that is
461     available will have left the system the moment a hack takes place.</footnote>
462     with a certain interval extracts the e-mails and leave the content
463     in a file in the input buffer. This daemon has only rights to write
464     to the directory it has to write to. <emph>We may as well have the
465     email captured directly by a program with a
466     "gnucomo: |/usr/local/bin/gnucomo-input" - like alias.</emph>
467   </item>
468   <item>
469     Detect files in the input buffer decrypt the content and verify the signature.
470     Another daemon will see the log-files and starts checking if the origin is
471     correct (by verifying the signature) and decrypting the content.
472     The legible files will be processed by entering the data into the database.
473   </item>
474   <item>
475     The database will accept the data and perform a certain number of
476     checks as the data comes in. During the processing of the data
477     abnormalities will be detected and entered into a notification table.
478     The database system will also carry out more complex tasks on given
479     moments in time and enter them as well in the notification table.
480   </item>
481   <item>
482     The database system must be able to undertake action when high
483     alerts are being entered into the database.
484     This can be a couple of things to begin with:
485     send an e-mail or SMS. In a later stage other technologies may be added as well.
486     In this scheme we also make a possibility to escalate problems when no
487     action is taken in a certain amount of time.
488   </item>
489 </itemize>
490 </section>
491
492 <section>
493   <heading>Web interface.</heading>
494
495 <para>
496 The web interface will used to interact with the user.
497 The interface should be intuitive and easy to understand.
498 More important warnings should directly draw attention.
499 The user must be able to perform settings so that warnings
500 can be rated differently than the original settings.
501 </para>
502 <para>
503 The interface will do the following things:
504 </para>
505 <itemize>
506   <item>
507     Show a list of warnings that are currently open.
508   </item>
509   <item>
510     It must be possible to sort the list on all the fields shown.
511   </item>
512   <item>
513     Deliver detailed information (logbook entries) upon request that have led to the warning.
514   </item>
515   <item>
516     Undertake certain actions like sending
517     <reference href="mailto:abuse@internet-provider.net">abuse@internet-provider.net</reference>
518     e-mails with information.
519   </item>
520   <item>
521     Monitor actions on outstanding issues.
522   </item>
523 </itemize>
524 <para/>
525 </section>
526 </chapter>
527
528 <chapter>
529   <heading>Sending messages to the central gnucomo system.</heading>
530
531 <para>
532 One of the main tasks is getting all the messages to the database.
533 Ultimately gnucomo will support multiple ways of receiving the data.
534 Basically anything goes, but two mechanisms will be supported in the project
535 to begin with:
536 </para>
537 <enumerate>
538     <item>
539       E-mail. Messages and elements from logfiles will be sent through e-mail.
540     </item>
541     <item>
542       File copy. Using technologies like scp or ftp (not preferred due to
543       the insecure nature) can place files directly in the receiving directory.
544     </item>
545 </enumerate>
546
547 <section>
548   <heading>Ensuring data integrity.</heading>
549 <para>&lt;TO BE DESCRIBED&gt;</para>
550 </section>
551
552 <section>
553   <heading>Directories and filenames on the server.</heading>
554
555 <para>
556 Files will be dealt with as if gnucomo were a user (actually there will
557 be a user gnucomo). The files will be placed in the <code>/home/gnucomo/</code> directory.
558 Only <code>/home/gnucomo/incoming/dropbox/</code> can be used to save data in
559 from external systems. All other directories are only available for the user gnucomo.
560 The filename will represent the data that is received. The details are seperated with
561 underscores. When data is sent by e-mail the filename will be written in the first
562 line of the e-mail. A typical filename looks like this:
563 </para>
564
565 <para>
566 <strong>3_messages_20020807235208_1.asc</strong>
567 </para>
568
569 <para>
570 the logic behind this is following:
571 </para>
572
573 <para>
574 <emph>urgency_typeofmessage_timestamp_objectid.typeoffile.</emph>
575 </para>
576
577 <table cpos='lp{10cm}'>
578   <thead>
579     <col>
580       <para>Part of filename</para>
581     </col>
582     <col>
583       <para>Explanation</para>
584     </col>
585   </thead>
586   <row>
587     <col>
588       <para>Urgency</para>
589     </col>
590     <col>
591       <para>This indicates the urgency of the file. The lower the number the higher
592             it will rank when an overview is given. Standard files are ranked value 3.
593             The ranking works as follows:</para>
594       <para>* 1 <strong>Urgent flash message.</strong> Something urgent needs to
595             be reported. This is only used for emergencies like serious alarms.</para>
596       <para>* 2 <strong>Rapid delivery.</strong> An important message has to get
597             through that is more important than normal delivery, but is not top
598             priority like an emergency.</para>
599       <para>* 3 <strong>Normal.</strong> This is used in most
600             case for normal messages.</para>
601       <para>* 4 <strong>Low priority.</strong> This is data would be useful
602             to place into the system as nice to have.</para>
603     </col>
604   </row>
605   <row>
606     <col>
607       <para>TypeOfMessage</para>
608     </col>
609     <col>
610       <para>This is an indicator what type of data is delivered to gnucomo.
611             There are several categories:</para>
612       <para>* <strong>cron.</strong> This data comes from the /var/log/cron-log (unix).</para>
613       <para>* <strong>httpaccess.</strong> This data comes from the normal http-log (Apache).</para>
614       <para>* <strong>httperror.</strong> This data comes from the http_error-log (Apache).</para>
615       <para>* <strong>maillog.</strong> This data comes from the /var/log/maillog (unix).</para>
616       <para>* <strong>messages.</strong> The data delivered here comes from
617             the /var/log/messages file (unix)</para>
618       <para>* <strong>text.</strong> This file contains a message in plaintext
619             generated by a gnucomo-client and can be anything.
620             It will be dealt with as plaintext.</para>
621     </col>
622   </row>
623   <row>
624     <col>
625       <para>Timestamp</para>
626     </col>
627     <col>
628       <para>The timestamp is made in war-log (YYYYMMDDHHMMSS) format.
629             The timestamp is generated on the client in GMT (to discover
630             discrepancies in timing).</para>
631     </col>
632   </row>
633   <row>
634     <col>
635       <para>Objectid</para>
636     </col>
637     <col>
638       <para>The objectid is the id that is used within the central
639             gnucomo system to recognize the client.
640             Based on this entry the database can link the data to the correct object.
641             Also gpg can obtain the correct e-mail address (by running a query
642             in the database) for verification of the signature of the crypted message.</para>
643     </col>
644   </row>
645   <row>
646     <col>
647       <para>TypeOfFile</para>
648     </col>
649     <col>
650       <para>Indicates the file type:</para>
651       <para>* <strong>asc.</strong> Plaintext ASCII</para>
652       <para>* <strong>gpg.</strong> gpg-crypted data.</para>
653       <para>* <strong>und.</strong> Undertermined data. When files
654             come in by e-mail it is not 100% sure if they are crypted
655             or not. These data has first to be analyzed before it is
656             moved to the correct queue. </para>
657     </col>
658   </row>
659 </table>
660
661 <subsection>
662   <heading>Directory for incoming data.</heading>
663
664 <para>
665 For incoming messages there will be separate directories
666 (<code>/home/gnucomo/incoming/</code>)for:
667 </para>
668 <enumerate>
669     <item>
670       Dropbox. This directory is ready to receive data from all sorts of systems.
671       This directory is world writeable (<strong><emph>but not deleteable!</emph></strong>):
672       <code>/home/gnucomo/incoming/dropbox/</code>
673     </item>
674     <item>
675       Encrypted messages. In this directory messages will be placed that are still
676       gpg-crypted. In this directory the files await decryption and verification of
677       the signature. This directory is: <code>/home/gnucomo/incoming/crypted/</code>
678     </item>
679     <item>
680       Decrypted with errors. During the decryption exercise anything can go wrong.
681       Decrypting can fail or the signature may show errors. If this happens the
682       original message is moved to a different directory:
683       <code>/home/gnucomo/incoming/cryptfail/</code>
684     </item>
685     <item>
686       Inbox. After successful decryption the decrypted message is moved to the inbox.
687       Data that is not encrypted can be moved here from the dropbox after certain
688       verifications. The directory is: <code>/home/gnucomo/incoming/inbox/</code>
689     </item>
690     <item>
691       Processed. After processing the data the file is stored in the directory
692       processed for further reference for a certain amount of time.
693       The directory is: <code>/home/gnucomo/incoming/processed/</code>
694     </item>
695     <item>
696       Archive. After a certain period the files will be archived.
697       Since not every system will archive everything this directory may
698       also be a symbolic link to <code>/dev/null</code>.
699       The used directory is: <code>/home/gnucomo/archive/</code>
700     </item>
701 </enumerate>
702 </subsection>
703
704 <subsection>
705    <heading>Directory for outgoing data.</heading>
706
707 <para>
708 For outgoing messages the directory <code>/home/gnucomo/outgoing</code> will
709 be used. This directory knows a couple of sub directories:
710 </para>
711
712 <enumerate>
713     <item>
714       Dropbox. This directory is used by the central gnucomo system to
715       place outgoing messages in.
716       The used directory is: <code>/home/gnucomo/outgoing/dropbox/</code>
717     </item>
718     <item>
719       Outbox. After processing the message (including signing and encrypting
720       when applicable) the messages are placed in the outbox:
721       <code>/home/gnucomo/outgoing/outbox/</code>
722     </item>
723     <item>
724       Processed. After processing the data the file is stored in the
725       directory processed for further reference for a certain amount
726       of time. After sending a message a confirmation will be made that
727       is saved as an incoming message.
728       The directory is: <code>/home/gnucomo/outgoing/processed/</code>
729     </item>
730     <item>
731       Archive. After a certain period the files will be archived.
732       Since not every system will archive everything this directory
733       may also be a symbolic link to <code>/dev/null</code>.
734       The used directory is: <code>/home/gnucomo/archive/</code>
735     </item>
736 </enumerate>
737
738 </subsection>
739
740 <subsection>
741    <heading>Overview. </heading>
742
743 <para>The total directory-structure looks like this:</para>
744
745 <verbatim>
746     /home/gnucomo/
747     /home/gnucomo/archive
748     /home/gnucomo/incoming
749     /home/gnucomo/incoming/crypted
750     /home/gnucomo/incoming/cryptfail
751     /home/gnucomo/incoming/dropbox
752     /home/gnucomo/incoming/inbox
753     /home/gnucomo/incoming/processed
754     /home/gnucomo/outgoing
755     /home/gnucomo/outgoing/dropbox
756     /home/gnucomo/outgoing/outbox
757     /home/gnucomo/outgoing/processed
758 </verbatim>
759
760 </subsection>
761 </section>
762
763 <section>
764   <heading>Directories on the client-side.</heading>
765
766 <para>
767 On the client-side the files that need to be transmitted will be placed in a
768 directory system as well. In the future this system may not be in use at all
769 devices (routers, certain MS Windows-machine, IP Telephones, etc.). For those
770 systems a different mechanism will become be described here.
771 Initially we focus on Linux systems that will enter data into the database.
772 </para>
773 <para>
774 The filename convention will be totally identical to the filename
775 convention on the server, since this the same mechanism.
776 </para>
777 <para>
778 To facilitate gnucomo client and server on one and the same machine
779 the gnucomo-client should have a different default user.
780 For this purpose the user <strong>gcm_client</strong> will be created.
781 </para>
782
783 <subsection>
784    <heading>Directory for incoming data.</heading>
785 <para>
786 For incoming messages there will be separate directories
787 (<code>/home/gnucomo/incoming/</code>)for:
788 </para>
789 <enumerate>
790     <item>
791       Dropbox. This directory is ready to receive data from all sorts of systems.
792       This directory is world writeable (<emph><strong>but not deleteable!</strong></emph>):
793       <code>/home/gcm_client/incoming/dropbox/</code>
794     </item>
795     <item>
796       Encrypted messages. In this directory messages will be placed that
797       are still gpg-crypted. In this directory the files await decryption
798       and verification of the signature.
799       This directory is: <code>/home/gcm_client/incoming/crypted/</code>
800     </item>
801     <item>
802       Decrypted with errors. During the decryption exercise anything can go wrong.
803       Decrypting can fail or the signature may show errors.
804       If this happens the original message is moved to a different directory:
805       <code>/home/gcm_client/incoming/cryptfail/</code>
806     </item>
807     <item>
808       Inbox. After successful decryption the decrypted message is moved
809       to the inbox. Data that is not encrypted can be moved here from
810       the dropbox after certain verifications. The directory is:
811       <code>/home/gcm_client/incoming/inbox/</code>
812     </item>
813     <item>
814       Processed. After processing the data the file is stored
815       in the directory processed for further reference for a
816       certain amount of time. The directory is:
817       <code>/home/gcm_client/incoming/processed/</code>
818     </item>
819 </enumerate>
820
821 </subsection>
822
823 <subsection>
824    <heading>Directory for outgoing data.</heading>
825
826 <para>
827 For outgoing messages the directory <code>/home/gcm_client/outgoing</code> will be used.
828 This directory knows a couple of sub directories:
829 </para>
830 <enumerate>
831     <item>
832       Dropbox. This directory is used by the central gnucomo system to place
833       outgoing messages in.
834       The used directory is: <code>/home/gcm_client/outgoing/dropbox/</code>
835     </item>
836     <item>
837       Outbox. After processing the message (including signing and
838       encrypting when applicable) the messages are placed in the outbox:
839       <code>/home/gcm_client/outgoing/outbox/</code>
840     </item>
841     <item>
842       Processed. After processing the data the file is stored in the
843       directory processed for further reference for a certain amount
844       of time. After sending a message a confirmation will be made
845       that is saved as an incoming message.
846       The directory is: <code>/home/gcm_client/outgoing/processed/</code>
847     </item>
848 </enumerate>
849 </subsection>
850
851 <subsection>
852   <heading>Overview. </heading>
853     <para>The total directory-structure looks like this:</para>
854
855 <verbatim>
856     /home/gcm_client/
857     /home/gcm_client/archive
858     /home/gcm_client /incoming
859     /home/gcm_client/incoming/crypted
860     /home/gcm_client/incoming/cryptfail
861     /home/gcm_client/incoming/dropbox
862     /home/gcm_client/incoming/inbox
863     /home/gcm_client/incoming/processed
864     /home/gcm_client/outgoing
865     /home/gcm_client/outgoing/dropbox
866     /home/gcm_client/outgoing/outbox
867     /home/gcm_client/outgoing/processed
868 </verbatim>
869 </subsection>
870 </section>
871 </chapter>
872
873 <chapter>
874       <heading>Getting data into the database.</heading>
875
876 <para>
877 The files in the /home/gnucomo/incoming/inbox/ should be stored in the database.
878 For this purpose there is a table <emph>unprocessed_log</emph>.
879 The data of the filename as well as the content of the file need
880 to be placed in one record.
881 </para>
882 <para>
883 There are some fields that have to be addressed immediately:
884 </para>
885 <enumerate>
886     <item>
887       Servicecode: The servicecode will be obtained out of the filename the
888       is the type_of_message-field in the filename.
889     </item>
890     <item>
891       Objectid: This data is given in the filename it can be found
892       in the <emph>objectid</emph>-part of the filename.
893     </item>
894     <item>
895       Logdata: The data is saved as follows: filename (unaltered)
896       &lt;CR&gt;textual data of the file.
897     </item>
898 </enumerate>
899 <para>
900 The daemon application that delivers the data is called <strong>gcm-input</strong>.
901 It performs the following steps with no extra functionality:
902 </para>
903
904 <enumerate>
905     <item>
906       <para>Detect if a file is available.</para>
907     </item>
908     <item>
909       <para>Write the data in the database.</para>
910     </item>
911 </enumerate>
912
913 <para>
914 To write the data in the database a database user gcm_input exists.
915 This user has only the right to enter data into the database.
916 There are no deletion, update or select-permissions.
917 </para>
918
919 </chapter>
920
921 <chapter>
922   <heading><label name='database'/>The database.</heading>
923
924 <para>
925 The database is the heart of the system.
926 It will contain all event-data of multiple computers.
927 The intelligence that can be performed on the database will be placed there.
928 To do this as integrated as possible stored procedures and triggers will be used.
929 To begin with we have selected checks to be performed that will be
930 expanded throughout time.
931 </para>
932 <para>
933 Since the gnucomo database and files contain sensitive data
934 security measures have to be in place. Several database users
935 will be exist that have limited rights to perform a certain task
936 ensuring some protection against unauthorized access.
937 However these mechanisms on it's own will work fine, bad maintenance may still
938 screw-up good security. Good database maintenance is needed.
939 For the gnucomo the protection of the valid authentic nature of
940 the data in the database has our highest priority.
941 </para>
942 <para>
943 A <emph>table-name</emph> in this chapter is written in cursive writing.
944 </para>
945
946 <section>
947   <heading>Database conventions.</heading>
948
949 <para>
950 The database will be built according the following conventions:
951 </para>
952 <itemize>
953   <item>
954     All names for tables, indexes and fields will be written in lower
955     case and will be singular. Spaces in names are not allowed.
956   </item>
957   <item>
958     If a table contains field referring to other tables the mother-tables are
959     mentioned in alphabetical order with an underscore between the table-names.
960     So <emph>object</emph> and <emph>user</emph>
961     will make a third table <emph>object_user</emph>
962   </item>
963   <item>
964     A data access user (being the interface) is not allowed to write to
965     the log-entries and the warnings. To change the state of a warning
966     a stored procedure will do so by having a different entry in a table.
967     This should make it possible to discover who did what at which moment in time.
968   </item>
969   <item>
970     The name of two related fields that make the relationship between two
971     tables will be the same to avoid confusion.
972   </item>
973 </itemize>
974 </section>
975
976 <section>
977   <heading>Database design.</heading>
978
979 <para>
980 In the design we anticipate to deliver an as best as possible database performance.
981 That means that data that needs to be entered occasionally can be heavily indexed
982 to increase performance. However data that is mainly stored will only be indexed
983 marginally to have the best possible performance on data entry. If during one of
984 the checks on data-entry a notification is made, the information related to that
985 notification will be indexed very well to increase retrieval performance.
986 What we will try to avoid is that the user interface will cause full table
987 scan and affect the performance of the overall system dramatically.
988 One of the techniques to increase performance on display is to work with views.
989 So where it is feasible we will use them.
990 </para>
991 <para>
992 In general the database must also be maintained well.
993 So daily maintenance scripts should keep the performance good<footnote>PostgreSQL seems
994 to have very good features to do proper maintenance and they have to be exploited to
995 the full extend.</footnote>.
996 </para>
997
998 </section>
999 <section>
1000   <heading>Actual design.</heading>
1001
1002 <para>
1003 In this part of the chapter the tables will be explained and then described
1004 with all important elements. Per table a sub-chapter will be created.
1005 Each table will have a table design, indexes, relationships and the required data
1006 (for those tables where the data itself is relevant in the design or sample data
1007 (for those cases where no set data is needed). For the relationships beside a
1008 description the subset of the total schema has been incorporated in
1009 the document so that it is more clear what exactly is meant.
1010 Due to the complex nature of the design those drawings sometimes will seem funny.
1011 </para>
1012 <para>
1013 For the fieldtypes the types of PostgreSQL will be used.
1014 These values can be found in Chapter 3 of the PostgreSQL User Manual
1015 (<reference href="http://www.postgresql.org/">http://www.postgresql.org</reference>).
1016 </para>
1017 <para>
1018 For indexes primary keys are always <emph>unique</emph> and called
1019 primary key in the name. Since unique indexes within PostgreSQL only
1020 work on B-Tree indexes (which is default) we will use B-Tree for all indexes.
1021 In cases where an exception is made the used type of index will be indicated
1022 in the characteristics. A footnote will explain why a different type of
1023 index has been selected.
1024 </para>
1025
1026 <subsection>
1027 <heading>action</heading>
1028
1029 <para>
1030 In the table action all recognized actions that can be taken are stored.
1031 Several actions will lead to change in <emph>statuscode</emph>.
1032 However this doesn't apply to all actions<footnote>A status NEW
1033 of a notification that cannot be dealt with automatically will
1034 <strong>not</strong> change before a user looked at it.</footnote>.
1035 Actions take place through background processes and the interface.
1036 This table mainly is used for retrieval so indexing will be done as much as possible.
1037 </para>
1038
1039 <subsubsection>
1040   <heading>The fields.</heading>
1041
1042 <para>
1043 The table below describes the fields:
1044 </para>
1045 <para/>
1046 <para>
1047 <table cpos='lllp{6cm}'>
1048   <thead>
1049     <col> Fieldname </col> <col> Fieldtype </col> <col> Size </col>
1050     <col>
1051       Remarks
1052     </col>
1053   </thead>
1054   <row>
1055     <col> actionid </col> <col> Bigserial </col> <col> 8 </col>
1056     <col>
1057       Autonumber bigint (eight bit)
1058     </col>
1059   </row>
1060   <row>
1061     <col> actionname </col> <col> Text </col> <col> <para/> </col>
1062     <col>
1063       Short descriptive name for the type of action
1064     </col>
1065   </row>
1066   <row>
1067     <col> statuscode </col> <col> Varchar </col> <col> 3 </col>
1068     <col>
1069       New status that will be given to a notification when this action takes place.
1070     </col>
1071   </row>
1072   <row>
1073     <col> description </col> <col> Text </col> <col> <para/> </col>
1074     <col>
1075       A longer description (without limit) on the action.
1076     </col>
1077   </row>
1078 </table>
1079 </para>
1080
1081 </subsubsection>
1082
1083 <subsubsection>
1084   <heading>The indexes.</heading>
1085
1086 <para>
1087 Indices for this table are:
1088 </para>
1089     <table cpos='lll'>
1090       <thead>
1091         <col> Indexname </col> <col> Field </col> <col> Characteristics </col>
1092       </thead>
1093       <row>
1094         <col> act_pk </col> <col> actionID </col> <col> Primary key </col>
1095       </row>
1096       <row>
1097         <col> act_actionname </col> <col> actionname </col> <col> Unique </col>
1098       </row>
1099       <row>
1100         <col> act_statuscode </col> <col> statuscode </col> <col> <para/> </col>
1101       </row>
1102     </table>
1103     <para/>
1104
1105 </subsubsection>
1106 <subsubsection>
1107   <heading>The relationships.</heading>
1108
1109 <para>
1110 Relationships with other tables:
1111 </para>
1112     <table cpos='llp{7cm}'>
1113       <thead>
1114         <col> Fieldname </col> <col> Remote Table </col> <col> Remarks </col>
1115       </thead>
1116       <row>
1117         <col> actionid </col> <col> action_notification_user </col>
1118         <col>
1119           Each action that takes place will be log. The Actionid will bring
1120           classification to the individual records. This relationship has to be enforced.
1121         </col>
1122       </row>
1123     </table>
1124     <para>In the model this looks like this:</para>
1125     <para>
1126       <picture src="erd-action.png" eps="erd-action"/>
1127     </para>
1128 </subsubsection>
1129
1130 <subsubsection>
1131   <heading>Default data in table.</heading>
1132
1133 <para>
1134 The data in this table is standard for the system and part of the design.
1135 The user cannot change this or add value to it.
1136 </para>
1137
1138 <table cpos='p{1cm}p{2cm}p{1.5cm}p{6cm}'>
1139   <thead>
1140     <col> Actionid </col> <col> Actionname </col> <col> Statuscode </col>
1141     <col>
1142       Description
1143     </col>
1144   </thead>
1145   <row>
1146     <col> 1 </col> <col> Entry in the system </col> <col> NEW </col>
1147     <col>
1148       This indicates that a notification is entered into the system. The status is a <strong>NEW</strong>.
1149     </col>
1150   </row>
1151   <row>
1152     <col> 2 </col> <col> Displayed to user </col> <col> OPN </col>
1153     <col>
1154       The notification has been displayed to the user. It is not guaranteed that the user has read the notification, but he/she should be aware of it. The status will now be changed to <strong>OPEN</strong> if the current status is <strong>NEW</strong>.
1155     </col>
1156   </row>
1157   <row>
1158     <col> 3 </col> <col> Remarks added </col> <col> PEN </col>
1159     <col>
1160       Remarks have been added to the notification. The status has now been changed to <strong>PENDING</strong>.
1161     </col>
1162   </row>
1163   <row>
1164     <col> 4 </col> <col> Priority changed manually </col> <col> PEN </col>
1165     <col>
1166       The priority of the notification has been changed by the user. The new status is now <strong>PENDING</strong>.
1167     </col>
1168   </row>
1169   <row>
1170     <col> 5 </col> <col> Priority changed automatically </col> <col> PEN </col>
1171     <col>
1172       The priority of the notification has been changed by the system. If the status is not <strong>OPEN</strong> or <strong>NEW</strong> the new status is become <strong>PENDING</strong>.
1173     </col>
1174   </row>
1175   <row>
1176     <col> 6 </col> <col> Action taken </col> <col> PEN </col>
1177     <col>
1178       A action has been taken. The status is now <strong>PENDING</strong>.
1179     </col>
1180   </row>
1181   <row>
1182     <col> 7 </col> <col> Assignment to user </col> <col> PEN </col>
1183     <col>
1184       A notification has been explicitly assigned to another user. The status is now <strong>PENDING</strong>.
1185     </col>
1186   </row>
1187   <row>
1188     <col> 8 </col> <col> More information or research needed.  </col> <col> INV </col>
1189     <col>
1190       The notification is relevant and will be handled, however more information or research will be needed. The status is <strong>UNDER INVESTIGATION</strong>.
1191     </col>
1192   </row>
1193   <row>
1194     <col> 9 </col> <col> Make output reference.  </col> <col> REF </col>
1195     <col>
1196       Automated output from an object has been sent to gnucomo. The input has been identified as a valid reference for future. Status is now <strong>REFERENCE</strong><footnote>A reference is used to find differences in output. This feature must reduce the number of wrongful alerts. Only if a change has taken place a notification is generated. First time reports will always generate a notification. By signing this off the system will be silent again.</footnote>.
1197     </col>
1198   </row>
1199   <row>
1200     <col> 10 </col> <col> Job output no longer reference.  </col> <col> CLS </col>
1201     <col>
1202   By making a newer job output reference this output has been obsoleted. Since once it was a reference the notification can be closed. The new status for the notification is now <strong>CLOSED</strong>.
1203     </col>
1204   </row>
1205   <row>
1206     <col> 11 </col> <col> Action taken please verify.  </col> <col> VRF </col>
1207     <col>
1208       An action has been taken and things should have been resolved. Before the notification can be closed a verification has to be done. New status is now <strong>VERIFY</strong>.
1209     </col>
1210   </row>
1211   <row>
1212     <col> 12 </col> <col> Action not accepted.  </col> <col> PEN </col>
1213     <col>
1214       A check has been done and the results were not good. New verification is needed. New status is now <strong>PENDING</strong>.
1215     </col>
1216   </row>
1217   <row>
1218     <col> 13 </col> <col> Action verified </col> <col> CLS </col>
1219     <col>
1220       The verification for the action has been done and the action is approved. The new status is now <strong>CLOSED</strong>.
1221     </col>
1222   </row>
1223   <row>
1224     <col> 14 </col> <col> E-mail sent </col> <col> OPN<footnote>Only if the status is <strong>NEW</strong>.</footnote> </col>
1225     <col>
1226       An e-mail has been sent.
1227     </col>
1228   </row>
1229   <row>
1230     <col> 15 </col> <col> SMS sent </col> <col> OPN<footnote>Only if the status is <strong>NEW</strong>.</footnote> </col>
1231     <col>
1232       A SMS has been sent.
1233     </col>
1234   </row>
1235   <row>
1236     <col> 16 </col> <col> Fax sent </col> <col> OPN<footnote>Only if the status is <strong>NEW</strong>.</footnote> </col>
1237     <col>
1238       A fax has been sent.
1239     </col>
1240   </row>
1241   <row>
1242     <col> 17 </col> <col> Log-entries shown </col> <col> XXXX </col>
1243     <col>
1244       The log entries have been shown. No changes to the status made.
1245     </col>
1246   </row>
1247   <row>
1248     <col> 18 </col> <col> Notification closed </col> <col> CLS </col>
1249     <col>
1250       Notification has been closed.
1251     </col>
1252   </row>
1253   <row>
1254     <col> 19 </col> <col> Notification reopened </col> <col> OPN </col>
1255     <col>
1256       Notification has been re-opened
1257     </col>
1258   </row>
1259 </table>
1260 </subsubsection>
1261
1262 </subsection>
1263
1264 <subsection>
1265    <heading>Action_notification_user.</heading>
1266
1267 <para>
1268 In the table action_notification_user each step that is taken regarding a
1269 notification is logged. This table is very important for later use if
1270 something goes wrong, but is also relevant for the interface.
1271 All steps of a notification can be traced here.
1272 There will be a lot of entries here, but retrieval is more crucial for
1273 performance than data entry. So indexing on logic fields is very relevant.
1274 Processing might be slower, but that's worth the price.
1275 </para>
1276
1277 <subsubsection>
1278   <heading>The fields.</heading>
1279
1280 <para>
1281 The table below describes the fields:
1282 </para>
1283
1284 <table cpos='lllp{6cm}'>
1285   <thead>
1286     <col> Fieldname </col> <col> Fieldtype </col> <col> Size </col>
1287     <col>
1288       Remarks
1289     </col>
1290   </thead>
1291   <row>
1292     <col> actionstepid </col> <col> Bigserial </col> <col> 8 </col>
1293     <col>
1294       Autonumber bigint (eight bit)
1295     </col>
1296   </row>
1297   <row>
1298     <col> actionid </col> <col> Bigint </col> <col> 8 </col>
1299     <col>
1300       Reference to the action that is being registered here.
1301     </col>
1302   </row>
1303   <row>
1304     <col> username </col> <col> Text </col> <col> <para/> </col>
1305     <col>
1306       The username of the user that is involved in the action.
1307     </col>
1308   </row>
1309   <row>
1310     <col> notificationid </col> <col> Bigint </col> <col> 8 </col>
1311     <col>
1312       Reference to the notification.
1313     </col>
1314   </row>
1315   <row>
1316     <col> timestamp </col> <col> Timestamp </col> <col> <para/> </col>
1317     <col>
1318       The time when the action has been entered into the system. This is the time without the timezone<footnote>The timestamp without time has been selected, since this is the system time. To have the system functioning without any physical borders one of the settings on the system is time in GMT (UTC). This ensures also the added value of the system log.</footnote>. This will be automatically added when the record is added into the database.
1319     </col>
1320   </row>
1321   <row>
1322     <col> statuscode </col> <col> Varchar </col> <col> 3 </col>
1323     <col>
1324       The status of the Notification
1325     </col>
1326   </row>
1327   <row>
1328     <col> remarks </col> <col> Text </col> <col> <para/> </col>
1329     <col>
1330       Remarks entered by the user if it concerns a manual action or the text of automatically generated warnings.
1331     </col>
1332   </row>
1333 </table>
1334
1335 </subsubsection>
1336
1337 <subsubsection>
1338   <heading>The indexes.</heading>
1339
1340 <para>
1341 The table is indexed on the following fields:
1342 </para>
1343
1344 <table cpos='lll'>
1345   <thead>
1346     <col> Indexname </col> <col> Field </col> <col> Characteristics </col>
1347   </thead>
1348   <row>
1349     <col> anu_pk (action_user_actionstepid_key) </col> <col> actionstepid </col>
1350     <col> Primary key </col>
1351   </row>
1352   <row>
1353     <col> anu_actionid </col> <col> actionid </col> <col> <para/> </col>
1354   </row>
1355   <row>
1356     <col> anu_username </col> <col> username </col> <col> <para/> </col>
1357   </row>
1358   <row>
1359     <col> anu_notificationid </col> <col> notificationid </col> <col> <para/> </col>
1360   </row>
1361   <row>
1362     <col> anu_timestamp </col> <col> timestamp </col> <col> <para/> </col>
1363   </row>
1364   <row>
1365     <col> anu_statuscode </col> <col> statuscode </col> <col> <para/> </col>
1366   </row>
1367 </table>
1368 </subsubsection>
1369
1370 <subsubsection>
1371   <heading>The relationships.</heading>
1372
1373 <para>
1374 Relationships with other tables:
1375 </para>
1376 <table cpos='llp{7cm}'>
1377   <thead>
1378     <col> Fieldname </col> <col> Remote Table </col>
1379     <col> Remarks </col>
1380   </thead>
1381   <row>
1382     <col> actionid </col> <col> action </col>
1383     <col>
1384       Indicates the action that has been taken. The relationship has to be enforced.
1385     </col>
1386   </row>
1387   <row>
1388     <col> notificationid </col> <col> notification </col>
1389     <col>
1390       Each action that takes place is registered in this table. By using the notification the relevant notification. The relationship has to be enforced.
1391     </col>
1392   </row>
1393   <row>
1394     <col> username </col> <col> user </col>
1395     <col>
1396       Each step in the process has to be related to the user. If the system itself generates an action the user will be <strong>gnucomo</strong><footnote>This implies that the system automatically has an username gnucomo.</footnote>.
1397     </col>
1398   </row>
1399 </table>
1400
1401 <para>
1402 In the model this looks like this:
1403 </para>
1404 <para>
1405 <picture src="erd-anu.png" eps="erd-anu"/>
1406 </para>
1407
1408 </subsubsection>
1409
1410 <subsubsection>
1411   <heading>Sample data.</heading>
1412
1413 <para>
1414 Since no data is delivered automatically a couple of sample records are shown here.
1415 </para>
1416
1417     <table cpos='p{1cm}p{1cm}p{1cm}lllp{4cm}'>
1418       <thead>
1419         <col> Actionstepid </col> <col> Actionid </col> <col> Notificationid </col>
1420         <col> Username </col> <col> Timestamp </col> <col> Status </col>
1421         <col> Remarks </col>
1422       </thead>
1423       <row>
1424         <col> 1 </col> <col> 1 </col> <col> 1 </col> <col> Gnucomo </col>
1425         <col> 2002-07-14 16:14:09 </col> <col> NEW </col>
1426         <col>
1427           Gnucomo detected a portscan
1428         </col>
1429       </row>
1430       <row>
1431         <col> 2 </col> <col> 5 </col> <col> 1 </col> <col> Gnucomo </col>
1432         <col> 2002-07-14 16:14:09 </col> <col> NEW </col>
1433         <col>
1434           Priority set to: 3
1435         </col>
1436       </row>
1437       <row>
1438         <col> 3 </col> <col> 5 </col> <col> 1 </col> <col> Gnucomo </col>
1439         <col> 2002-07-14 16:14:09 </col> <col> OPN </col>
1440         <col>
1441           <para>Automatic e-mail to user: <reference href="mailto:brenno@dewinter.com">brenno@dewinter.com</reference>:</para>
1442           <para>Gnucomo detected a portscan on system <reference href="http://gnucomo.dewinter.com/">gnucomo.dewinter.com</reference></para>
1443         </col>
1444       </row>
1445       <row>
1446         <col> 4 </col> <col> 2 </col> <col> 1 </col> <col> Brenno </col>
1447         <col> 2002-07-14 16:18:09 </col> <col> OPN </col>
1448         <col>
1449           Notification shown through webinterface.
1450         </col>
1451       </row>
1452       <row>
1453         <col> 5 </col> <col> 17 </col> <col> 1 </col> <col> Brenno </col>
1454         <col> 2002-07-14 16:18:12 </col> <col> PEN </col>
1455         <col>
1456           <para/>
1457         </col>
1458       </row>
1459       <row>
1460         <col> 6 </col> <col> 4 </col> <col> 1 </col> <col> Brenno </col>
1461         <col> 2002-07-14 16:20:37 </col> <col> PEN </col>
1462         <col>
1463           Priority set to: 1
1464         </col>
1465       </row>
1466       <row>
1467         <col> 7 </col> <col> 3 </col> <col> 1 </col> <col> Brenno </col>
1468         <col> 2002-07-1416:21:58 </col> <col> PEN </col>
1469         <col>
1470           After reviewing the logs I see a portscan. On very specific ports. More analysis needed.
1471         </col>
1472       </row>
1473       <row>
1474         <col> 8 </col> <col> 3 </col> <col> 1 </col> <col> Brenno </col>
1475         <col> 2002-07-14 16:24:59 </col> <col> PEN </col>
1476         <col>
1477           Services tables learns me that all services are aimed at Windows-based services. Attempts for platform specific expoits.
1478         </col>
1479       </row>
1480       <row>
1481         <col> 9 </col> <col> 4 </col> <col> 1 </col> <col> Brenno </col>
1482         <col> 2002-07-14 16:25:03 </col> <col> PEN </col>
1483         <col>
1484           Priority set to: 4
1485         </col>
1486       </row>
1487       <row>
1488         <col> 10 </col> <col> 2 </col> <col> 1 </col> <col> Brenno </col>
1489         <col> 2002-07-14 16:30:09 </col> <col> PEN </col>
1490         <col>
1491           Notification shown through webinterface.
1492         </col>
1493       </row>
1494       <row>
1495         <col> 11 </col> <col> 3 </col> <col> 1 </col> <col> Brenno </col>
1496         <col> 2002-07-14 16:31:48 </col> <col> PEN </col>
1497         <col>
1498           Portscan has finished and no other action seems to take place now.
1499         </col>
1500       </row>
1501       <row>
1502         <col> 12 </col> <col> 18 </col> <col> 1 </col> <col> Brenno </col>
1503         <col> 2002-07-14 16:43:03 </col> <col> CLS </col>
1504         <col>
1505           <para/>
1506         </col>
1507       </row>
1508     </table>
1509     </subsubsection>
1510 </subsection>
1511
1512 <subsection>
1513   <heading>log &amp; log_adv. </heading>
1514
1515 <para>
1516 To store the log-data there are two tables in use that have a one-on-one relationship. The logic behind this is the difference between raw-always needed data and the somewhat processed data to support basic retrieval. The last category isn't always used and when it's used it is redundant. Also the raw log is very important to the integrity of the system. For these reasons the processed data has been physically separated in a second table called <emph>log_adv</emph>. If needed a view will be available that combines the two tables. Despite the load indexing on <emph>log_adv</emph> will be done thoroughly.
1517 </para>
1518 </subsection>
1519
1520 <subsection>
1521   <heading>log.</heading>
1522
1523 <subsubsection>
1524   <heading>The fields of log.</heading>
1525
1526 <para>
1527 The fields in log are focussed around the raw data and the data needed to link this to other tables in the system.
1528 </para>
1529
1530 <table cpos='lllp{6cm}'>
1531   <thead>
1532     <col> Fieldname </col> <col> Fieldtype </col> <col> Size </col>
1533     <col>
1534       Remarks
1535     </col>
1536   </thead>
1537   <row>
1538     <col> logid </col> <col> Bigserial </col> <col> 8 </col>
1539     <col>
1540       Autonumber bigint (eight bit)
1541     </col>
1542   </row>
1543   <row>
1544     <col> objectid </col> <col> Bigint </col> <col> 8 </col>
1545     <col>
1546       Reference to the object that submitted this log entry
1547     </col>
1548   </row>
1549   <row>
1550     <col> original_filename </col> <col> Text </col> <col> <para/> </col>
1551     <col>
1552       This field refers to the filename that contained this entry. The original entries as received by the gnucomo-server (flat files). The files are sent in batches, which makes it very hard to find where the original logline is. This will enable to see the files to detect bugs in gnucomo if any occur. It may well be that in a later stage this functionality becomes obsolete.
1553     </col>
1554   </row>
1555   <row>
1556     <col> servicecode </col> <col> Text </col> <col> <para/> </col>
1557     <col>
1558       This field explains what service was recognized (for instance 'kernel, 'httpd' or 'smtp')
1559     </col>
1560   </row>
1561   <row>
1562     <col> type_of_logid </col> <col> Bigint </col> <col> 8 </col>
1563     <col>
1564       Reference to the table type_of_log that contains information on what type of log/report we have here (how gnucomo recognized it).
1565     </col>
1566   </row>
1567   <row>
1568     <col> object_timestamp </col> <col> Timestamp </col> <col> 8 </col>
1569     <col>
1570       Timestamp as has been written into the log.
1571     </col>
1572   </row>
1573   <row>
1574     <col> timestamp </col> <col> Timestamp </col> <col> <para/> </col>
1575     <col>
1576       The time when the action has been entered into the system. This is the time without the timezone<footnote>The timestamp without time has been selected, since this is the system time. To have the system functioning without any physical borders one of the settings on the system is time in GMT (UTC). This ensures also the added value of the system log.</footnote>. This will be generated upon entry into the database.
1577     </col>
1578   </row>
1579   <row>
1580     <col> rawdata </col> <col> TEXT </col> <col> <para/> </col>
1581     <col>
1582       The raw log data
1583     </col>
1584   </row>
1585 </table>
1586 </subsubsection>
1587
1588 <subsubsection>
1589   <heading>The indexes.</heading>
1590
1591 <para>
1592 The indices of the table:
1593 </para>
1594
1595 <table cpos='lll'>
1596   <thead>
1597     <col> Indexname </col> <col> Field </col> <col> Characteristics </col>
1598   </thead>
1599   <row>
1600     <col> log_pk (log_logid_key) </col> <col> logid </col> <col> Primary key </col>
1601   </row>
1602   <row>
1603     <col> log_objectid </col> <col> objectid </col> <col> <para/> </col>
1604   </row>
1605   <row>
1606     <col> log_original_filename </col> <col> original_filename </col> <col> <para/> </col>
1607   </row>
1608   <row>
1609     <col> log_servicecode </col> <col> servicecode </col> <col> <para/> </col>
1610   </row>
1611   <row>
1612     <col> log_type_of_logid </col> <col> type_of_logid </col> <col> <para/> </col>
1613   </row>
1614   <row>
1615     <col> log_object_timestamp </col> <col> object_timestamp </col> <col> <para/> </col>
1616   </row>
1617   <row>
1618     <col> log_timestamp </col> <col> timestamp </col> <col> <para/> </col>
1619   </row>
1620 </table>
1621 </subsubsection>
1622
1623 <subsubsection>
1624   <heading>The relationships.</heading>
1625
1626 <para>
1627 Relationships with other tables:
1628 </para>
1629
1630 <table cpos='llp{6cm}'>
1631   <thead>
1632     <col> Fieldname </col> <col> Remote Table </col>
1633     <col>
1634       Remarks
1635     </col>
1636   </thead>
1637   <row>
1638     <col> objectid </col> <col> object </col>
1639     <col>
1640       This make the link from what object the logline came
1641     </col>
1642   </row>
1643   <row>
1644     <col> type_of_logid </col> <col> type_of_log </col>
1645     <col>
1646       Each logbook has a certain type of reporting. This explains what type of log was received (and thus which rules for detection was applied).
1647     </col>
1648   </row>
1649   <row>
1650     <col> systemuser </col> <col> user </col>
1651     <col>
1652       Links a registered user of an object to this log entry<footnote>Upon entry of an object most of the times the passwd-file (UNIX-systems) or the userlist will serve as the entrypoint of users. Non existing users will be added and will have to be verified by an administrator before this entry become definite.</footnote>.
1653     </col>
1654   </row>
1655 </table>
1656
1657 <para>In the model this looks like this:</para>
1658     
1659 <para>
1660   <picture src="erd-log.png" eps="erd-log"/>
1661 </para>
1662
1663     
1664 </subsubsection>
1665 <subsubsection>
1666   <heading>The fields of log_adv.</heading>
1667
1668 <para>
1669 The fields of the table <emph>log_adv</emph> are shown below:
1670 </para>
1671
1672 <table cpos='lllp{6cm}'>
1673   <thead>
1674     <col> Fieldname </col> <col> Fieldtype </col> <col> Size </col>
1675     <col>
1676       Remarks
1677     </col>
1678   </thead>
1679   <row>
1680     <col> logid </col> <col> Bigint </col> <col> 8 </col>
1681     <col>
1682       Bigint (eight bit) 1-to-1 relationship with log
1683     </col>
1684   </row>
1685   <row>
1686     <col> source_ip </col> <col> Inet </col> <col> <para/> </col>
1687     <col>
1688       This is the IP-address (V4) of the host that sended the data.
1689     </col>
1690   </row>
1691   <row>
1692     <col> destination_ip </col> <col> Inet </col> <col> <para/> </col>
1693     <col>
1694       This is the IP-address (V4) of the host that was targetted.
1695     </col>
1696   </row>
1697   <row>
1698     <col> mac_address </col> <col> Macaddr </col> <col> <para/> </col>
1699     <col>
1700       This is the MAC-address logged
1701     </col>
1702   </row>
1703   <row>
1704     <col> packetlength </col> <col> Int </col> <col> <para/> </col>
1705     <col>
1706       The length of the packet
1707     </col>
1708   </row>
1709   <row>
1710     <col> protocol </col> <col> Text </col> <col> <para/> </col>
1711     <col>
1712       The protocol used for transmission(mostly TCP/UDP/ICMP).
1713     </col>
1714   </row>
1715   <row>
1716     <col> source_port </col> <col> Int </col> <col> <para/> </col>
1717     <col>
1718       The portnumber used at origin.
1719     </col>
1720   </row>
1721   <row>
1722     <col> destination_port </col> <col> Int </col> <col> <para/> </col>
1723     <col>
1724       The portnumber for the target
1725     </col>
1726   </row>
1727   <row>
1728     <col> messageid </col> <col> Text </col> <col> <para/> </col>
1729     <col>
1730       Messageid for e-mails
1731     </col>
1732   </row>
1733   <row>
1734     <col> system_username </col> <col> Text </col> <col> <para/> </col>
1735     <col>
1736       Username on the object
1737     </col>
1738   </row>
1739   <row>
1740     <col> networkdevice </col> <col> Text </col> <col> <para/> </col>
1741     <col>
1742       When this is about network-traffic the device that worked the data
1743     </col>
1744   </row>
1745 </table>
1746 </subsubsection>
1747
1748 <subsubsection>
1749   <heading>The indexes.</heading>
1750
1751 <para>
1752 The table is indexed on the following fields:
1753 </para>
1754
1755 <table cpos='lll'>
1756   <thead>
1757     <col> Indexname </col> <col> Field </col> <col> Characteristics </col>
1758   </thead>
1759   <row>
1760     <col> loa_logid </col> <col> logid </col> <col> Primary key </col>
1761   </row>
1762   <row>
1763     <col> loa_source_ip </col> <col> source_ip </col> <col> <para/> </col>
1764   </row>
1765   <row>
1766     <col> loa_destination_ip </col> <col> destination_ip </col> <col> <para/> </col>
1767   </row>
1768   <row>
1769     <col> loa_mac_address </col> <col> mac_address </col> <col> <para/> </col>
1770   </row>
1771   <row>
1772     <col> loa_packetlength </col> <col> packetlength </col> <col> <para/> </col>
1773   </row>
1774   <row>
1775     <col> loa_protocol </col> <col> protocol </col> <col> <para/> </col>
1776   </row>
1777   <row>
1778     <col> loa_source_port </col> <col> source_port </col> <col> <para/> </col>
1779   </row>
1780   <row>
1781     <col> loa_destination_port </col> <col> destination_port </col> <col> <para/> </col>
1782   </row>
1783   <row>
1784     <col> loa_messageid </col> <col> messageid </col> <col> <para/> </col>
1785   </row>
1786   <row>
1787     <col> loa_system_username </col> <col> system_username </col> <col> <para/> </col>
1788   </row>
1789   <row>
1790     <col> networkdevice </col> <col> networkdevice </col> <col> <para/> </col>
1791   </row>
1792 </table>
1793 </subsubsection>
1794
1795 <subsubsection>
1796   <heading>The relationships.</heading>
1797
1798 <para>
1799 There is only one relation with this table.
1800 </para>
1801
1802 <table cpos='llp{6cm}'>
1803   <thead>
1804     <col> Fieldname </col> <col> Remote Table </col>
1805     <col>
1806       Remarks
1807     </col>
1808   </thead>
1809   <row>
1810     <col> Logid </col> <col> Log </col>
1811     <col>
1812       This will make a link to the table <emph>log</emph>. The relationship is a one-on-one relationship.
1813     </col>
1814   </row>
1815 </table>
1816 </subsubsection>
1817
1818 <subsubsection>
1819   <heading>Sample data combined from log and log_adv.</heading>
1820
1821 <para>
1822 The sample data derrived here has been gathered in logs. Since the tablestructure is very long the representation is somewhat different:
1823 </para>
1824
1825 <table cpos='lp{8cm}'>
1826   <thead>
1827     <col> Fieldname </col> <col> Value.  </col>
1828   </thead>
1829   <row>
1830     <col> Logid </col> <col> 1 </col>
1831   </row>
1832   <row>
1833     <col> Objectid </col> <col> 1 </col>
1834   </row>
1835   <row>
1836     <col> Original_filename </col> <col> 7f0100.messages.20020714231801 </col>
1837   </row>
1838   <row>
1839     <col> Rawdata </col>
1840     <col>
1841       Jul 14 18:16:42 webber kernel: IN=eth0 OUT= MAC=00:60:67:36:61:a5:00:90:69:60:c0:5d:08:00 SRC=193.79.237.146 DST=212.204.216.11 LEN=40 TOS=0x00 PREC=0x00 TTL=245 id=19308 DF PROTO=TCP SPT=36375 DPT=113 WINDOW=8760 RES=0x00 RST URGP=0
1842     </col>
1843   </row>
1844   <row>
1845     <col> Type_of_logid </col> <col> 1 </col>
1846   </row>
1847   <row>
1848     <col> Timestamp </col> <col> 2002-07-14 23:29:01 </col>
1849   </row>
1850   <row>
1851     <col> Object_timestamp </col> <col> 2002-07-14 18:16:42 </col>
1852   </row>
1853   <row>
1854     <col> Source_ip </col> <col> 193.79.237.146 </col>
1855   </row>
1856   <row>
1857     <col> Destination_ip </col> <col> 212.204.216.11 </col>
1858   </row>
1859   <row>
1860     <col> Mac_address </col> <col> 00:60:67:36:61:a5:00:90:69:60:c0:5d:08:00 </col>
1861   </row>
1862   <row>
1863     <col> Packetlength </col> <col> 40 </col>
1864   </row>
1865   <row>
1866     <col> Protocol </col> <col> TCP </col>
1867   </row>
1868   <row>
1869     <col> Source_port </col> <col> 36375 </col>
1870   </row>
1871   <row>
1872     <col> Destination_port </col> <col> 113 </col>
1873   </row>
1874   <row>
1875     <col> Messageid </col> <col> <para/> </col>
1876   </row>
1877   <row>
1878     <col> Systemuser </col> <col> <para/> </col>
1879   </row>
1880   <row>
1881     <col> Networkdevice </col> <col> eth0 </col>
1882   </row>
1883 </table>
1884 </subsubsection>
1885 </subsection>
1886
1887 <subsection>
1888   <heading>log_notification. </heading>
1889
1890 <para>
1891 In the log_notification the logbook entries that have caused an alert to occur are saved. When this table is used something has been detected. As this is clearly an intermediate table we anticipate to design checks where multiple entries in a log-file can lead to one notification. For forensics indexing will be focussed on retrieval speed.
1892 </para>
1893
1894 <subsubsection>
1895   <heading>The fields.</heading>
1896
1897 <para>
1898 The fields are listed below:
1899 </para>
1900
1901 <table cpos='lllp{6cm}'>
1902   <thead>
1903     <col> Fieldname </col> <col> Fieldtype </col> <col> Size </col>
1904     <col>
1905       Remarks
1906     </col>
1907   </thead>
1908   <row>
1909     <col> notificationid </col> <col> Bigint </col> <col> 8 </col>
1910     <col>
1911       Reference to the notification
1912     </col>
1913   </row>
1914   <row>
1915     <col> logid </col> <col> Bigint </col> <col> 8 </col>
1916     <col>
1917       Reference to the logbook
1918     </col>
1919   </row>
1920 </table>
1921
1922 </subsubsection>
1923 <subsubsection>
1924   <heading>The indexes.</heading>
1925
1926 <para>
1927 The table is indexed on the following fields:
1928 </para>
1929 <table cpos='lll'>
1930   <thead>
1931     <col> Indexname </col> <col> Field </col> <col> Characteristics </col>
1932   </thead>
1933   <row>
1934     <col> lon_pk </col> <col>notificationid </col> <col>Primary key </col>
1935   </row>
1936   <row>
1937     <col> <para/> </col> <col>logid </col> <col>Primary key (second field) </col>
1938   </row>
1939   <row>
1940     <col>lon_notificationid </col> <col> notificationid </col> <col> <para/> </col>
1941   </row>
1942   <row>
1943     <col> lon_logid </col> <col>logid </col> <col> <para/> </col>
1944   </row>
1945 </table>
1946 </subsubsection>
1947
1948 <subsubsection>
1949   <heading>The relationships.</heading>
1950
1951 <para>
1952 Relationships with other tables:
1953 </para>
1954
1955 <table cpos='llp{8cm}'>
1956   <thead>
1957     <col> Fieldname </col> <col> Remote Table </col>
1958     <col>
1959       Remarks
1960     </col>
1961   </thead>
1962   <row>
1963     <col> Logid </col> <col> Log </col>
1964     <col>
1965       Indicates the log-entry that was on of the triggers that led to the notification.
1966     </col>
1967   </row>
1968   <row>
1969     <col> NotificationID </col> <col> Notification </col>
1970     <col>
1971       Indicates the notification where the entry in the log was a trigger.
1972     </col>
1973   </row>
1974 </table>
1975
1976 <para>In the model this look like this:</para>
1977 <para>
1978   <picture src="erd-lognotif.png" eps="erd-lognotif"/>
1979 </para>
1980 </subsubsection>
1981
1982 <subsubsection>
1983   <heading>Sample data.</heading>
1984 <para>
1985 Some sample data:
1986 </para>
1987
1988 <table cpos='ll'>
1989   <thead>
1990     <col> LogID </col> <col> NotificationID </col>
1991   </thead>
1992   <row>
1993     <col> 4 </col> <col> 1 </col>
1994   </row>
1995   <row>
1996     <col> 5 </col> <col> 1 </col>
1997   </row>
1998   <row>
1999     <col> 8 </col> <col> 1 </col>
2000   </row>
2001   <row>
2002     <col> 9 </col> <col> 1 </col>
2003   </row>
2004   <row>
2005     <col> 5 </col> <col> 2 </col>
2006   </row>
2007   <row>
2008     <col> 6 </col> <col> 2 </col>
2009   </row>
2010   <row>
2011     <col> 11 </col> <col> 2 </col>
2012   </row>
2013 </table>
2014 </subsubsection>
2015 </subsection>
2016
2017 <subsection>
2018   <heading>notification. </heading>
2019
2020 <para>
2021 In this table all detected issues per object will be written. Issues are entered based on immediate detection, periodical detection or manually. Since this table is mostly used to work from in the interface being in control is crucial. When systems function properly more retrieval than data entry will take place. Also data retrieval will be done in all sorts of ways. Indexing must be huge to facilitate that.
2022 </para>
2023
2024 <subsubsection>
2025   <heading>The fields.</heading>
2026
2027 <para>
2028 The fields of the <emph>notification</emph> table are:
2029 </para>
2030
2031 <table cpos='lllp{6cm}'>
2032   <thead>
2033     <col> Fieldname </col> <col> Fieldtype </col> <col> Size </col>
2034     <col>
2035       Remarks
2036     </col>
2037   </thead>
2038   <row>
2039     <col> notificationid </col> <col> Bigserial </col> <col> 8 </col>
2040     <col>
2041       Autonumber
2042     </col>
2043   </row>
2044   <row>
2045     <col> objectid </col> <col> Bigint </col> <col> 8 </col>
2046     <col>
2047       Reference to the <emph>object</emph>
2048     </col>
2049   </row>
2050   <row>
2051     <col> type_of_notification_id </col> <col> Bigint </col> <col> 8 </col>
2052     <col>
2053       Reference to the <emph>type_of_notification</emph> indicating what type of notification we have here and what basic rules apply.
2054     </col>
2055   </row>
2056   <row>
2057     <col> timestamp </col> <col> Timestamp </col> <col> <para/> </col>
2058     <col>
2059       Timestamp that this notification was created.
2060     </col>
2061   </row>
2062   <row>
2063     <col> statuscode </col> <col> Varchar </col> <col> 3 </col>
2064     <col>
2065       The status the actual status a notification has.
2066     </col>
2067   </row>
2068   <row>
2069     <col> priority </col> <col> Int </col> <col> 4 </col>
2070     <col>
2071       The priority that is given to this issue<footnote>Basically there will be five priority levels. The rule is that the lower the number gets the more urgent the issue is. At the moment the priority level is set by the system pre-defined actions will take place.</footnote>.
2072     </col>
2073   </row>
2074   <row>
2075     <col> escalation_count_timestamp </col> <col> Timestamp </col> <col> <para/> </col>
2076     <col>
2077       Timestamp since the last escalation took place<footnote>The system offers the possibility to automatically escalate issue if no action has been taken within a certain amount of time. Based on the status and the type of notification escalation can take place.</footnote>.
2078     </col>
2079   </row>
2080   <row>
2081     <col> repeat_notification_timestamp </col> <col> Timestamp </col> <col> <para/> </col>
2082     <col>
2083       Timestamp at which moment in time a repeat notification should occur<footnote>After this time has passed a notification is being resent. After a resent automatically a new time is set for another resent. If any actions takes place (except automated entries of course) the time is emptied so that an administrator will no longer be bothered by the system.</footnote>.
2084     </col>
2085   </row>
2086   <row>
2087     <col> securitylevel_view </col> <col> Int </col> <col> 4 </col>
2088     <col>
2089       The securitylevel that is needed to view this entry.
2090     </col>
2091   </row>
2092   <row>
2093     <col> securitylevel_add </col> <col> Int </col> <col> 4 </col>
2094     <col>
2095       Securitylevel to add information to this item or to undertake action
2096     </col>
2097   </row>
2098   <row>
2099     <col> securitylevel_close </col> <col> Int </col> <col> 4 </col>
2100     <col>
2101       The securitylevel needed to be able to close this notification.
2102     </col>
2103   </row>
2104 </table>
2105 </subsubsection>
2106
2107 <subsubsection>
2108   <heading>The indexes.</heading>
2109
2110 <para>
2111 The indices are:
2112 </para>
2113 <table cpos='lll'>
2114   <thead>
2115     <col> Indexname </col> <col> Field </col> <col> Characteristics </col>
2116   </thead>
2117   <row>
2118     <col> not_pk (notification_notificationid_key) </col> <col> notificationid </col>
2119     <col> Primary key </col>
2120   </row>
2121   <row>
2122     <col> not_objectid </col> <col> objectid </col> <col> <para/> </col>
2123   </row>
2124   <row>
2125     <col> not_type_of_notificationid </col> <col> type_of_notificationid </col>
2126     <col> <para/> </col>
2127   </row>
2128   <row>
2129     <col> not_timestamp </col> <col> timestamp </col> <col> <para/> </col>
2130   </row>
2131   <row>
2132     <col> not_statuscode </col> <col> statuscode </col> <col> <para/> </col>
2133   </row>
2134   <row>
2135     <col> not_priority </col> <col> priority </col> <col> <para/> </col>
2136   </row>
2137   <row>
2138     <col> not_escalation_count_timestamp </col> <col> escalation_count_timestamp </col>
2139     <col> <para/> </col>
2140   </row>
2141   <row>
2142     <col>
2143       <para>not_repeat_notification_timestamp</para>
2144       <para>(not_repeat_notification_timesta)</para>
2145     </col>
2146     <col> repeat_notification_timestamp </col> <col> <para/> </col>
2147   </row>
2148 </table>
2149 </subsubsection>
2150
2151 <subsubsection>
2152   <heading>The relationships.</heading>
2153
2154 <para>
2155 Relationships with other tables:
2156 </para>
2157
2158 <table cpos='llp{8cm}'>
2159   <thead>
2160     <col> Fieldname </col> <col> Remote Table </col> <col> Remarks </col>
2161   </thead>
2162   <row>
2163     <col> Logid </col> <col> Log </col>
2164     <col>
2165       Indicates the log-entry that was on of the triggers that led to the notification.
2166     </col>
2167   </row>
2168   <row>
2169     <col> NotificationID </col> <col> Notification </col>
2170     <col>
2171       Indicates the notification where the entry in the log was a trigger.
2172     </col>
2173   </row>
2174 </table>
2175
2176 <para>In the model this look like this:</para>
2177 <para>
2178   <picture src="erd-notif.png" eps="erd-notif"/>
2179 </para>
2180 </subsubsection>
2181
2182 <subsubsection>
2183   <heading>Sample data.</heading>
2184
2185 <para>
2186 The following data is an example of a notification placed in the database.
2187 </para>
2188 <table cpos='ll'>
2189   <thead>
2190     <col> Fieldname </col> <col> Data </col>
2191   </thead>
2192   <row>
2193     <col> Notificationid </col> <col> 1 </col>
2194   </row>
2195   <row>
2196     <col> ObjectID </col> <col> 1 </col>
2197   </row>
2198   <row>
2199     <col> Type_of_notification_id </col> <col> 1 </col>
2200   </row>
2201   <row>
2202     <col> Timestamp </col> <col> 17-07-2002 16:07 </col>
2203   </row>
2204   <row>
2205     <col> Statuscode </col> <col> NEW </col>
2206   </row>
2207   <row>
2208     <col> Priority </col> <col> 3 </col>
2209   </row>
2210   <row>
2211     <col> Escalation_count_timestamp </col> <col> 17-07-2002 16:07 </col>
2212   </row>
2213   <row>
2214     <col> Repeat_notification_timestamp </col> <col> 17-07-2002 20:48PM </col>
2215   </row>
2216   <row>
2217     <col> Securitylevel_view </col> <col> 3 </col>
2218   </row>
2219   <row>
2220     <col> Securitylevel_add </col> <col> 3 </col>
2221   </row>
2222   <row>
2223     <col> Securitylevel_close </col> <col> 4 </col>
2224   </row>
2225 </table>
2226 </subsubsection>
2227 </subsection>
2228
2229 <subsection>
2230   <heading>object</heading>
2231
2232 <para>
2233 The <emph>object</emph> table contains general information on the objects being monitored. The table object will more be used for retrieval, since adding objects will be an occasional process. Anything that for some reason can be indexed ought to be indexed.
2234 </para>
2235
2236 <subsubsection>
2237   <heading>The fields.</heading>
2238
2239 <para>
2240 The fields are:
2241 </para>
2242 <table cpos='lllp{6cm}'>
2243   <thead>
2244     <col> Fieldname </col> <col> Fieldtype </col> <col> Size </col>
2245     <col>
2246       Remarks
2247     </col>
2248   </thead>
2249   <row>
2250     <col> objectid </col> <col> Bigserial </col> <col> 8 </col>
2251     <col>
2252       Autonumbering code for the computer or device.
2253     </col>
2254   </row>
2255   <row>
2256     <col> objectname </col> <col> Text </col> <col> <para/> </col>
2257     <col>
2258       The hostname of the object
2259     </col>
2260   </row>
2261   <row>
2262     <col> objectcode </col> <col> Text </col> <col> <para/> </col>
2263     <col>
2264       Unique identifier (if existent) on the system<footnote>In Linux this will typically be the <emph>hostid</emph>.</footnote>.
2265     </col>
2266   </row>
2267   <row>
2268     <col> scp_enabled </col> <col> Boolean </col> <col> <para/> </col>
2269     <col>
2270       Can communication occur through scp (T = Yes / F = No)
2271     </col>
2272   </row>
2273   <row>
2274     <col> scp_inet </col> <col> Inet </col> <col> <para/> </col>
2275     <col>
2276       IP Address of the object for scp-data transfer.
2277     </col>
2278   </row>
2279   <row>
2280     <col> mail_enabled </col> <col> Boolean </col> <col> <para/> </col>
2281     <col>
2282       Can communication occur through e-mail (T = Yes/F = No).
2283     </col>
2284   </row>
2285   <row>
2286     <col> mail_from </col> <col> Text </col> <col> <para/> </col>
2287     <col>
2288       The e-mail address where e-mail will come from.
2289     </col>
2290   </row>
2291   <row>
2292     <col> sms_enabled </col> <col> Boolean </col> <col> <para/> </col>
2293     <col>
2294       Can communication occur through SMS (T = Yes/F = No).
2295     </col>
2296   </row>
2297   <row>
2298     <col> sms_number </col> <col> Text </col> <col> <para/> </col>
2299     <col>
2300       The SMS-number to send a notification to.
2301     </col>
2302   </row>
2303   <row>
2304     <col> fax_enabled </col> <col> Boolean </col> <col> <para/> </col>
2305     <col>
2306       Can communication occur through Fax (T = Yes/F = No).
2307     </col>
2308   </row>
2309   <row>
2310     <col> fax_number </col> <col> Text </col> <col> <para/> </col>
2311     <col>
2312       The fax-number to send a notification to.
2313     </col>
2314   </row>
2315   <row>
2316     <col>
2317       object_description
2318     </col>
2319     <col>
2320       Text
2321     </col>
2322     <col>
2323       <para/>
2324     </col>
2325     <col>
2326       Description of the object. What type of system is it
2327     </col>
2328   </row>
2329   <row>
2330     <col> object_owner </col> <col> Text </col> <col> <para/> </col>
2331     <col>
2332       Owner-details
2333     </col>
2334   </row>
2335   <row>
2336     <col> physical_location </col> <col> Text </col> <col> <para/> </col>
2337     <col>
2338       Physical address and when applicable entry-details needed to get to the object.
2339     </col>
2340   </row>
2341   <row>
2342     <col> timezone </col> <col> Text </col> <col> <para/> </col>
2343     <col>
2344       The timezone where this object is located<footnote>For objects that move around like PDA's and laptops the timezone can be the place where a person is stationed or better GMT.</footnote>.
2345     </col>
2346   </row>
2347   <row>
2348     <col> remark </col> <col> Text </col> <col> <para/> </col>
2349     <col>
2350       Additional remarks that shouldn't be in the previous TEXT fields.
2351     </col>
2352   </row>
2353 </table>
2354 </subsubsection>
2355
2356 <subsubsection>
2357   <heading>The indexes.</heading>
2358
2359 <para>
2360 The <emph>object</emph> table is indexed on the following fields:
2361 </para>
2362
2363 <table cpos='lll'>
2364   <thead>
2365     <col> Indexname </col> <col> Field </col> <col> Characteristics </col>
2366   </thead>
2367   <row>
2368     <col> obj_pk (object_objectid_key) </col> <col> objectid </col> <col> Primary key </col>
2369   </row>
2370   <row>
2371     <col> obj_objectname </col> <col> objectname </col> <col> Unique </col>
2372   </row>
2373   <row>
2374     <col> obj_objectcode </col> <col> objectcode </col> <col> Unique </col>
2375   </row>
2376   <row>
2377     <col> obj_mail_from </col> <col> mail_from </col> <col> <para/> </col>
2378   </row>
2379 </table>
2380 </subsubsection>
2381
2382 <subsubsection>
2383   <heading>The relationships.</heading>
2384
2385 <para>
2386 The relationships with other tables are listed below:
2387 </para>
2388
2389 <table cpos='llp{8cm}'>
2390   <thead>
2391     <col> Fieldname </col> <col> Remote Table </col> <col> Remarks </col>
2392   </thead>
2393   <row>
2394     <col> ObjectID </col> <col> Log (adv) </col>
2395     <col> Reference to processed log-entries </col>
2396   </row>
2397   <row>
2398     <col> <para/> </col> <col> Notification </col>
2399     <col>
2400       Reference to the table <emph>notification</emph> that contains the notifications that have been created.
2401     </col>
2402   </row>
2403   <row>
2404     <col> <para/> </col> <col> Object_issue </col>
2405     <col>
2406       Reference to the <emph>object_issue</emph> that indicates how notifications have to be handled .
2407     </col>
2408   </row>
2409   <row>
2410     <col> <para/> </col> <col> Object_priority </col>
2411     <col>
2412       Reference to the <emph>object_priority</emph> table that indicates how a certain level of priority has to be dealt with.
2413     </col>
2414   </row>
2415   <row>
2416     <col> <para/> </col> <col> Object_system_user </col>
2417     <col>
2418       Reference to a list of system user to discover abnormalities in user behaviour.
2419     </col>
2420   </row>
2421   <row>
2422     <col> <para/> </col> <col> Object_user </col>
2423     <col> Reference to the <emph>object_user</emph> </col>
2424   </row>
2425   <row>
2426     <col> <para/> </col> <col> Unprocessed_log </col>
2427     <col>
2428       Reference to the entries that have not been processed at all.
2429     </col>
2430   </row>
2431 </table>
2432
2433 <para>In the relationshipmodel this looks like this:</para>
2434 <para>
2435   <picture src="erd-object.png" eps="erd-object"/>
2436 </para>
2437 </subsubsection>
2438
2439 <subsubsection>
2440   <heading>Sample data.</heading>
2441 <para>
2442 There is no preset data and therefor it's an example has been created. The table has quite some fields so the example has the fieldname in the left column and the data in the right column.
2443 </para>
2444 <table cpos='lp{6cm}'>
2445       <thead>
2446         <col>
2447           <para>Fieldname</para>
2448         </col>
2449         <col>
2450           <para>Sample data</para>
2451         </col>
2452       </thead>
2453       <row>
2454         <col>
2455           <para>Objectid</para>
2456         </col>
2457         <col>
2458           <para>1</para>
2459         </col>
2460       </row>
2461       <row>
2462         <col>
2463           <para>Objectname</para>
2464         </col>
2465         <col>
2466           <para>webber.dewinter.com</para>
2467         </col>
2468       </row>
2469       <row>
2470         <col>
2471           <para>Objectcode</para>
2472         </col>
2473         <col>
2474           <para>7f0100</para>
2475         </col>
2476       </row>
2477       <row>
2478         <col>
2479           <para>Scp_enabled</para>
2480         </col>
2481         <col>
2482           <para>T</para>
2483         </col>
2484       </row>
2485       <row>
2486         <col>
2487           <para>Scp_inet</para>
2488         </col>
2489         <col>
2490           <para>192.168.221.212</para>
2491         </col>
2492       </row>
2493       <row>
2494         <col>
2495           <para>Mail_enabled</para>
2496         </col>
2497         <col>
2498           <para>T</para>
2499         </col>
2500       </row>
2501       <row>
2502         <col>
2503           <para>Mail_from</para>
2504         </col>
2505         <col>
2506           <para>
2507             <reference href="mailto:gnucomo@maintenance.dewinter.com">gnucomo@maintenance.dewinter.com</reference>
2508           </para>
2509         </col>
2510       </row>
2511       <row>
2512         <col>
2513           <para>Sms_enabled</para>
2514         </col>
2515         <col>
2516           <para>T</para>
2517         </col>
2518       </row>
2519       <row>
2520         <col>
2521           <para>Sms_number</para>
2522         </col>
2523         <col>
2524           <para>06-XXXXXXXX</para>
2525         </col>
2526       </row>
2527       <row>
2528         <col>
2529           <para>Fax_enabled</para>
2530         </col>
2531         <col>
2532           <para>T</para>
2533         </col>
2534       </row>
2535       <row>
2536         <col>
2537           <para>Fax_number</para>
2538         </col>
2539         <col>
2540           <para>0318-XXXXXX</para>
2541         </col>
2542       </row>
2543       <row>
2544         <col>
2545           <para>Object_description</para>
2546         </col>
2547         <col>
2548           <para>19 inch 4 units, AMD-300 with two 27Gb disks (RAID-0), 256Mb memory</para>
2549         </col>
2550       </row>
2551       <row>
2552         <col>
2553           <para>Object_owner</para>
2554         </col>
2555         <col>
2556           <para>Brenno de Winter</para>
2557           <para>De Winter Information Solutions</para>
2558           <para>Your street here 32</para>
2559           <para>9999 XX YOUR CITY</para>
2560           <para>THE NETHERLANDS</para>
2561           <para>Phone: +31 XXX XXX XXX</para>
2562         </col>
2563       </row>
2564       <row>
2565         <col>
2566           <para>Physical_location</para>
2567         </col>
2568         <col>
2569           <para>Internet Provider XYZ</para>
2570           <para>Your street here 38</para>
2571           <para>9999 XX YOUR CITY</para>
2572           <para>THE NETHERLANDS</para>
2573           <para>Phone: +31 XXX XXX XXX</para>
2574           <para/>
2575           <para>Dataroom. System: Q7845</para>
2576         </col>
2577       </row>
2578       <row>
2579         <col>
2580           <para>Remark</para>
2581         </col>
2582         <col>
2583           <para>A replacement system is available at the office location. The following persons have been authorized to enter the data room at the ISP:</para>
2584           <para>* Arjen Baart</para>
2585           <para>* Peter Busser</para>
2586           <para>* Brenno de Winter</para>
2587         </col>
2588       </row>
2589     </table>
2590     <para/>
2591 </subsubsection>
2592 </subsection>
2593
2594 <subsection>
2595   <heading>object_issue. </heading>
2596 <para>
2597 This table will store the policy on a certain issue like the priority being recognized and special actions to take. Since policies are utilized by the systems continuously all other process will rely on this index, while users will change the values occasionally.
2598 </para>
2599
2600 <subsubsection>
2601   <heading>The fields.</heading>
2602
2603 <para>
2604 The fields of <emph>object_issue</emph>:
2605 </para>
2606
2607 <table cpos='lllp{6cm}'>
2608       <thead>
2609         <col>
2610           <para>Fieldname</para>
2611         </col>
2612         <col>
2613           <para>Fieldtype</para>
2614         </col>
2615         <col>
2616           <para>Size</para>
2617         </col>
2618         <col>
2619           <para>Remarks</para>
2620         </col>
2621       </thead>
2622       <row>
2623         <col>
2624           <para>objectid</para>
2625         </col>
2626         <col>
2627           <para>Bigint</para>
2628         </col>
2629         <col>
2630           <para>8</para>
2631         </col>
2632         <col>
2633           <para>Reference to the object</para>
2634         </col>
2635       </row>
2636       <row>
2637         <col>
2638           <para>type_of_notificationid</para>
2639         </col>
2640         <col>
2641           <para>Bigint</para>
2642         </col>
2643         <col>
2644           <para>8</para>
2645         </col>
2646         <col>
2647           <para>Reference to the <emph>type_of_notification</emph> indicating what type of notification we have here and what basic rules apply.</para>
2648         </col>
2649       </row>
2650       <row>
2651         <col>
2652           <para>default_priority</para>
2653         </col>
2654         <col>
2655           <para>Int</para>
2656         </col>
2657         <col>
2658           <para>4</para>
2659         </col>
2660         <col>
2661           <para>The priority that will be set automatically when this type of notification is entered into the system.</para>
2662         </col>
2663       </row>
2664       <row>
2665         <col>
2666           <para>escalation</para>
2667         </col>
2668         <col>
2669           <para>Boolean</para>
2670         </col>
2671         <col>
2672           <para/>
2673         </col>
2674         <col>
2675           <para>Will the system perform automatic escalation (T = Yes / F = No)</para>
2676         </col>
2677       </row>
2678       <row>
2679         <col>
2680           <para>escalation_time</para>
2681         </col>
2682         <col>
2683           <para>Time</para>
2684         </col>
2685         <col>
2686           <para/>
2687         </col>
2688         <col>
2689           <para>The time after which a higher priority is awarded to the notification.</para>
2690         </col>
2691       </row>
2692       <row>
2693         <col>
2694           <para>max_priority</para>
2695         </col>
2696         <col>
2697           <para>Int</para>
2698         </col>
2699         <col>
2700           <para/>
2701         </col>
2702         <col>
2703           <para>The maximum priority given to this type of notification.</para>
2704         </col>
2705       </row>
2706       <row>
2707         <col>
2708           <para>adjusted_setting</para>
2709         </col>
2710         <col>
2711           <para>Text</para>
2712         </col>
2713         <col>
2714           <para/>
2715         </col>
2716         <col>
2717           <para>Some checks can have a special settings (for instance alert after 5 failed login attempts instead of 3).</para>
2718         </col>
2719       </row>
2720 </table>
2721 </subsubsection>
2722
2723 <subsubsection>
2724   <heading>The indexes.</heading>
2725
2726 <para>
2727 These are the indices:
2728 </para>
2729 <table cpos='lll'>
2730       <thead>
2731         <col>
2732           <para>Indexname</para>
2733         </col>
2734         <col>
2735           <para>Field</para>
2736         </col>
2737         <col>
2738           <para>Characteristics</para>
2739         </col>
2740       </thead>
2741       <row>
2742         <col>
2743           <para>obi_pk</para>
2744         </col>
2745         <col>
2746           <para>objectid</para>
2747         </col>
2748         <col>
2749           <para>Primary key</para>
2750         </col>
2751       </row>
2752       <row>
2753         <col>
2754           <para/>
2755         </col>
2756         <col>
2757           <para>type_of_notification_id</para>
2758         </col>
2759         <col>
2760           <para>Primary key</para>
2761         </col>
2762       </row>
2763       <row>
2764         <col>
2765           <para>obi_objectid</para>
2766         </col>
2767         <col>
2768           <para>Objectid</para>
2769         </col>
2770         <col>
2771           <para/>
2772         </col>
2773       </row>
2774       <row>
2775         <col>
2776           <para>obi_type_of_notificationid</para>
2777         </col>
2778         <col>
2779           <para>type_of_notification_id</para>
2780         </col>
2781         <col>
2782           <para/>
2783         </col>
2784       </row>
2785     </table>
2786     </subsubsection>
2787
2788 <subsubsection>
2789    <heading>The relationships.</heading>
2790
2791 <para>
2792 Relationships with other tables:
2793 </para>
2794
2795 <table cpos='llp{6cm}'>
2796       <thead>
2797         <col>
2798           <para>Fieldname</para>
2799         </col>
2800         <col>
2801           <para>Remote Table</para>
2802         </col>
2803         <col>
2804           <para>Remarks</para>
2805         </col>
2806       </thead>
2807       <row>
2808         <col>
2809           <para>ObjectID</para>
2810         </col>
2811         <col>
2812           <para>Object</para>
2813         </col>
2814         <col>
2815           <para>Reference to the <emph>object</emph> (which object does this apply to).</para>
2816         </col>
2817       </row>
2818       <row>
2819         <col>
2820           <para>Type_of_issueid</para>
2821         </col>
2822         <col>
2823           <para>Type_of_issue</para>
2824         </col>
2825         <col>
2826           <para>Reference to the type of issue.</para>
2827         </col>
2828       </row>
2829     </table>
2830
2831 <para>In the model this look like this:</para>
2832 <para>
2833     <picture src="erd-objissue.png" eps="erd-objissue"/>
2834 </para>
2835
2836 </subsubsection>
2837 <subsubsection>
2838   <heading>Sample data.</heading>
2839
2840 <para>
2841 Some sample data:
2842 </para>
2843 <table cpos='lllllll'>
2844       <thead>
2845         <col>
2846           <para>Objectid</para>
2847         </col>
2848         <col>
2849           <para>Type_of_notification_id</para>
2850         </col>
2851         <col>
2852           <para>Default Priority</para>
2853         </col>
2854         <col>
2855           <para>Escalation</para>
2856         </col>
2857         <col>
2858           <para>Escalation_time</para>
2859         </col>
2860         <col>
2861           <para>Max_priority</para>
2862         </col>
2863         <col>
2864           <para>Adjusted_setting</para>
2865         </col>
2866       </thead>
2867       <row>
2868         <col>
2869           <para>1</para>
2870         </col>
2871         <col>
2872           <para>1</para>
2873         </col>
2874         <col>
2875           <para>3</para>
2876         </col>
2877         <col>
2878           <para>T</para>
2879         </col>
2880         <col>
2881           <para>00:15:00</para>
2882         </col>
2883         <col>
2884           <para>1</para>
2885         </col>
2886         <col>
2887           <para/>
2888         </col>
2889       </row>
2890       <row>
2891         <col>
2892           <para>1</para>
2893         </col>
2894         <col>
2895           <para>2</para>
2896         </col>
2897         <col>
2898           <para>4</para>
2899         </col>
2900         <col>
2901           <para>T</para>
2902         </col>
2903         <col>
2904           <para>00:30:00</para>
2905         </col>
2906         <col>
2907           <para>2</para>
2908         </col>
2909         <col>
2910           <para/>
2911         </col>
2912       </row>
2913       <row>
2914         <col>
2915           <para>1</para>
2916         </col>
2917         <col>
2918           <para>3</para>
2919         </col>
2920         <col>
2921           <para>5</para>
2922         </col>
2923         <col>
2924           <para>F</para>
2925         </col>
2926         <col>
2927           <para/>
2928         </col>
2929         <col>
2930           <para/>
2931         </col>
2932         <col>
2933           <para>7</para>
2934         </col>
2935       </row>
2936       <row>
2937         <col>
2938           <para>2</para>
2939         </col>
2940         <col>
2941           <para>1</para>
2942         </col>
2943         <col>
2944           <para>4</para>
2945         </col>
2946         <col>
2947           <para>T</para>
2948         </col>
2949         <col>
2950           <para>00:45:00</para>
2951         </col>
2952         <col>
2953           <para>2</para>
2954         </col>
2955         <col>
2956           <para/>
2957         </col>
2958       </row>
2959       <row>
2960         <col>
2961           <para>2</para>
2962         </col>
2963         <col>
2964           <para>3</para>
2965         </col>
2966         <col>
2967           <para>5</para>
2968         </col>
2969         <col>
2970           <para>F</para>
2971         </col>
2972         <col>
2973           <para/>
2974         </col>
2975         <col>
2976           <para/>
2977         </col>
2978         <col>
2979           <para>8</para>
2980         </col>
2981       </row>
2982     </table>
2983 </subsubsection>
2984 </subsection>
2985
2986 <subsection>
2987   <heading>object_priority. </heading>
2988
2989 <para>
2990 This table stores per object how a certain level of priority is being dealt with. What policies do apply. This table is mostly used for retrieval, so firm indexing is logic.
2991 </para>
2992
2993 <subsubsection>
2994   <heading>The fields.</heading>
2995
2996 <para>
2997 The fields are listed below:
2998 </para>
2999 <table cpos='lllp{6cm}'>
3000       <thead>
3001         <col>
3002           <para>Fieldname</para>
3003         </col>
3004         <col>
3005           <para>Fieldtype</para>
3006         </col>
3007         <col>
3008           <para>Size</para>
3009         </col>
3010         <col>
3011           <para>Remarks</para>
3012         </col>
3013       </thead>
3014       <row>
3015         <col>
3016           <para>objectid</para>
3017         </col>
3018         <col>
3019           <para>Bigint</para>
3020         </col>
3021         <col>
3022           <para>8</para>
3023         </col>
3024         <col>
3025           <para>Reference to the object</para>
3026         </col>
3027       </row>
3028       <row>
3029         <col>
3030           <para>priorityid</para>
3031         </col>
3032         <col>
3033           <para>Int</para>
3034         </col>
3035         <col>
3036           <para>4</para>
3037         </col>
3038         <col>
3039           <para>Priority.</para>
3040         </col>
3041       </row>
3042       <row>
3043         <col>
3044           <para>send_mail</para>
3045         </col>
3046         <col>
3047           <para>Boolean</para>
3048         </col>
3049         <col>
3050           <para/>
3051         </col>
3052         <col>
3053           <para>Send an e-mail if this priority is set? Yes = T / No = F</para>
3054         </col>
3055       </row>
3056       <row>
3057         <col>
3058           <para>send_sms</para>
3059         </col>
3060         <col>
3061           <para>Boolean</para>
3062         </col>
3063         <col>
3064           <para/>
3065         </col>
3066         <col>
3067           <para>Send a sms message if this priority is set? Yes = T / No = F</para>
3068         </col>
3069       </row>
3070       <row>
3071         <col>
3072           <para>send_fax</para>
3073         </col>
3074         <col>
3075           <para>Boolean</para>
3076         </col>
3077         <col>
3078           <para/>
3079         </col>
3080         <col>
3081           <para>Send a fax if this priority is set? Yes = T / No = F</para>
3082         </col>
3083       </row>
3084       <row>
3085         <col>
3086           <para>repeat_notification</para>
3087         </col>
3088         <col>
3089           <para>Boolean</para>
3090         </col>
3091         <col>
3092           <para/>
3093         </col>
3094         <col>
3095           <para>Repeat this notification if no action occurs since the notification. Yes = T / No = F</para>
3096         </col>
3097       </row>
3098       <row>
3099         <col>
3100           <para>interval_for_repeat</para>
3101         </col>
3102         <col>
3103           <para>Time</para>
3104         </col>
3105         <col>
3106           <para/>
3107         </col>
3108         <col>
3109           <para>Time interval that is set to wait for a response.</para>
3110         </col>
3111       </row>
3112     </table>
3113     </subsubsection>
3114
3115 <subsubsection>
3116   <heading>The indexes.</heading>
3117
3118 <para>
3119 Indices of the <emph>object_priority</emph> table:
3120 </para>
3121
3122 <table cpos='lll'>
3123       <thead>
3124         <col>
3125           <para>Indexname</para>
3126         </col>
3127         <col>
3128           <para>Field</para>
3129         </col>
3130         <col>
3131           <para>Characteristics</para>
3132         </col>
3133       </thead>
3134       <row>
3135         <col>
3136           <para>obi_pk</para>
3137         </col>
3138         <col>
3139           <para>objectid</para>
3140         </col>
3141         <col>
3142           <para>Primary key</para>
3143         </col>
3144       </row>
3145       <row>
3146         <col>
3147           <para/>
3148         </col>
3149         <col>
3150           <para>priorityid</para>
3151         </col>
3152         <col>
3153           <para>Primary key</para>
3154         </col>
3155       </row>
3156       <row>
3157         <col>
3158           <para>obi_objectid</para>
3159         </col>
3160         <col>
3161           <para>Objectid</para>
3162         </col>
3163         <col>
3164           <para/>
3165         </col>
3166       </row>
3167       <row>
3168         <col>
3169           <para>obi_type_of_notification_id</para>
3170         </col>
3171         <col>
3172           <para>type_of_notification_id</para>
3173         </col>
3174         <col>
3175           <para/>
3176         </col>
3177       </row>
3178     </table>
3179 </subsubsection>
3180
3181 <subsubsection>
3182   <heading>The relationships.</heading>
3183
3184 <para>
3185 Relationships with other tables:
3186 </para>
3187
3188 <table cpos='llp{6cm}'>
3189       <thead>
3190         <col>
3191           <para>Fieldname</para>
3192         </col>
3193         <col>
3194           <para>Remote Table</para>
3195         </col>
3196         <col>
3197           <para>Remarks</para>
3198         </col>
3199       </thead>
3200       <row>
3201         <col>
3202           <para>ObjectID</para>
3203         </col>
3204         <col>
3205           <para>Object</para>
3206         </col>
3207         <col>
3208           <para>Reference to the object (which object does this apply to).</para>
3209         </col>
3210       </row>
3211       <row>
3212         <col>
3213           <para>Priorityid</para>
3214         </col>
3215         <col>
3216           <para>Priority</para>
3217         </col>
3218         <col>
3219           <para>Reference to the priority.</para>
3220         </col>
3221       </row>
3222     </table>
3223
3224 <para>
3225 In the model this look like this:
3226 </para>
3227 <para>
3228 <picture src="erd-objprior.png" eps="erd-objprior"/>
3229 </para>
3230 </subsubsection>
3231 </subsection>
3232
3233 <subsection>
3234   <heading>object_service</heading>
3235
3236 <para>
3237 The object service table indicates which services can be expected on the system If input fails to show up a notification can be generated.
3238 </para>
3239
3240 <subsubsection>
3241   <heading>The fields.</heading>
3242
3243 <para>
3244 The fields are listed below:
3245 </para>
3246
3247 <table cpos='lllp{6cm}'>
3248       <thead>
3249         <col>
3250           <para>Fieldname</para>
3251         </col>
3252         <col>
3253           <para>Fieldtype</para>
3254         </col>
3255         <col>
3256           <para>Size</para>
3257         </col>
3258         <col>
3259           <para>Remarks</para>
3260         </col>
3261       </thead>
3262       <row>
3263         <col>
3264           <para>objectid</para>
3265         </col>
3266         <col>
3267           <para>Bigint</para>
3268         </col>
3269         <col>
3270           <para>8</para>
3271         </col>
3272         <col>
3273           <para>Reference to the object</para>
3274         </col>
3275       </row>
3276       <row>
3277         <col>
3278           <para>servicecode</para>
3279         </col>
3280         <col>
3281           <para>Text</para>
3282         </col>
3283         <col>
3284           <para/>
3285         </col>
3286         <col>
3287           <para>Reference to service.</para>
3288         </col>
3289       </row>
3290       <row>
3291         <col>
3292           <para>expected_interval</para>
3293         </col>
3294         <col>
3295           <para>Bigint</para>
3296         </col>
3297         <col>
3298           <para>8</para>
3299         </col>
3300         <col>
3301           <para>The expected interval in minutes between two log entries. If this gives a time-out a notification is generated<footnote>To avoid many false positives it may be wise to give the system always 1 or 2 minutes extra time. If for some reason a connection is slow or a mail-daemon restarted the effect would generate tuns of notifications.</footnote>. The following values can be considered the most common:</para>
3302           <para>* 60 hourly entries</para>
3303           <para>* 120 two hourly entries</para>
3304           <para>* 240 four hourly entries</para>
3305           <para>* 480 eight hourly entries</para>
3306           <para>* 920 twelve hourly entries</para>
3307           <para>* 1840 daily entries</para>
3308           <para>* 12880 weekly entries</para>
3309         </col>
3310       </row>
3311       <row>
3312         <col>
3313           <para>last_entry</para>
3314         </col>
3315         <col>
3316           <para>Timestamp</para>
3317         </col>
3318         <col>
3319           <para/>
3320         </col>
3321         <col>
3322           <para>The timestamp of the last entry (for detecting exceeded interval). This field could be derived from the log-table as well, but the redundance gives a performance on detection that is useful, since a check should run every minute.</para>
3323         </col>
3324       </row>
3325       <row>
3326         <col>
3327           <para>default_priority</para>
3328         </col>
3329         <col>
3330           <para>Int</para>
3331         </col>
3332         <col>
3333           <para>4</para>
3334         </col>
3335         <col>
3336           <para>Priority given if this service didn't occur.</para>
3337         </col>
3338       </row>
3339       <row>
3340         <col>
3341           <para>maximum_priority</para>
3342         </col>
3343         <col>
3344           <para>Int</para>
3345         </col>
3346         <col>
3347           <para>4</para>
3348         </col>
3349         <col>
3350           <para>Maximum priority (in case of escalation)</para>
3351         </col>
3352       </row>
3353       <row>
3354         <col>
3355           <para>accepted</para>
3356         </col>
3357         <col>
3358           <para>Boolean</para>
3359         </col>
3360         <col>
3361           <para/>
3362         </col>
3363         <col>
3364           <para>If a service hasn't been set, the application user should indicate that this is valid (logs shouldn't just appear). New entries will be added automatically but still have to be verified.</para>
3365         </col>
3366       </row>
3367     </table>
3368 </subsubsection>
3369
3370 <subsubsection>
3371   <heading>The indexes.</heading>
3372
3373 <para>
3374 The table is indexed on the following fields:
3375 </para>
3376 <table cpos='lll'>
3377       <thead>
3378         <col>
3379           <para>Indexname</para>
3380         </col>
3381         <col>
3382           <para>Field</para>
3383         </col>
3384         <col>
3385           <para>Characteristics</para>
3386         </col>
3387       </thead>
3388       <row>
3389         <col>
3390           <para>obs_pk</para>
3391         </col>
3392         <col>
3393           <para>objectid</para>
3394         </col>
3395         <col>
3396           <para>Primary key</para>
3397         </col>
3398       </row>
3399       <row>
3400         <col>
3401           <para/>
3402         </col>
3403         <col>
3404           <para>servicecode</para>
3405         </col>
3406         <col>
3407           <para>Primary key</para>
3408         </col>
3409       </row>
3410       <row>
3411         <col>
3412           <para>obs_objectid</para>
3413         </col>
3414         <col>
3415           <para>objectid</para>
3416         </col>
3417         <col>
3418           <para/>
3419         </col>
3420       </row>
3421       <row>
3422         <col>
3423           <para>obs_servicecode</para>
3424         </col>
3425         <col>
3426           <para>servicecode</para>
3427         </col>
3428         <col>
3429           <para/>
3430         </col>
3431       </row>
3432       <row>
3433         <col>
3434           <para>obs_accepted</para>
3435         </col>
3436         <col>
3437           <para>accepted</para>
3438         </col>
3439         <col>
3440           <para/>
3441         </col>
3442       </row>
3443     </table>
3444 </subsubsection>
3445
3446 <subsubsection>
3447    <heading>The relationships.</heading>
3448
3449 <para>
3450 Relationships with other tables:
3451 </para>
3452
3453 <table cpos='llp{8cm}'>
3454       <thead>
3455         <col>
3456           <para>Fieldname</para>
3457         </col>
3458         <col>
3459           <para>Remote Table</para>
3460         </col>
3461         <col>
3462           <para>Remarks</para>
3463         </col>
3464       </thead>
3465       <row>
3466         <col>
3467           <para>objectID</para>
3468         </col>
3469         <col>
3470           <para>Object</para>
3471         </col>
3472         <col>
3473           <para>Reference to the object (which object does this apply to).</para>
3474         </col>
3475       </row>
3476       <row>
3477         <col>
3478           <para>servicecode</para>
3479         </col>
3480         <col>
3481           <para>Service</para>
3482         </col>
3483         <col>
3484           <para>Reference to the service table. </para>
3485         </col>
3486       </row>
3487     </table>
3488
3489 <para>In the model this look like this:</para>
3490 <para>
3491   <picture src="erd-objservice.png" eps="erd-objservice"/>
3492 </para>
3493 </subsubsection>
3494 </subsection>
3495
3496 <subsection>
3497   <heading>object_system_user</heading>
3498
3499 <para>
3500 This table will derive a list of users that can be identified based on the log-files in the system. This table is filled during data entry. But the filling of the table is dependent on the fact if the user has been entered before. So during the processing the read will be done more than the data entry and that makes heavy indexing logic.
3501 </para>
3502 <subsubsection>
3503   <heading>The fields.</heading>
3504
3505 <para>
3506 The fields of <emph>object_system_user</emph> are listed below:
3507 </para>
3508
3509 <table cpos='lllp{6cm}'>
3510       <thead>
3511         <col>
3512           <para>Fieldname</para>
3513         </col>
3514         <col>
3515           <para>Fieldtype</para>
3516         </col>
3517         <col>
3518           <para>Size</para>
3519         </col>
3520         <col>
3521           <para>Remarks</para>
3522         </col>
3523       </thead>
3524       <row>
3525         <col>
3526           <para>objectid</para>
3527         </col>
3528         <col>
3529           <para>Bigint</para>
3530         </col>
3531         <col>
3532           <para>8</para>
3533         </col>
3534         <col>
3535           <para>Reference to the object</para>
3536         </col>
3537       </row>
3538       <row>
3539         <col>
3540           <para>system_username</para>
3541         </col>
3542         <col>
3543           <para>Text</para>
3544         </col>
3545         <col>
3546           <para/>
3547         </col>
3548         <col>
3549           <para>Username on the object/system.</para>
3550         </col>
3551       </row>
3552       <row>
3553         <col>
3554           <para>can_login</para>
3555         </col>
3556         <col>
3557           <para>Boolean</para>
3558         </col>
3559         <col>
3560           <para/>
3561         </col>
3562         <col>
3563           <para>Can this user login (T = Yes / F = No)?</para>
3564         </col>
3565       </row>
3566       <row>
3567         <col>
3568           <para>can_be_root</para>
3569         </col>
3570         <col>
3571           <para>Boolean</para>
3572         </col>
3573         <col>
3574           <para/>
3575         </col>
3576         <col>
3577           <para>Can this user become root (T = Yes / F = No)?</para>
3578         </col>
3579       </row>
3580     </table>
3581     </subsubsection>
3582
3583 <subsubsection>
3584   <heading>The indexes.</heading>
3585
3586 <para>
3587 The table is indexed on the following fields:
3588 </para>
3589 <table cpos='lll'>
3590       <thead>
3591         <col>
3592           <para>Indexname</para>
3593         </col>
3594         <col>
3595           <para>Field</para>
3596         </col>
3597         <col>
3598           <para>Characteristics</para>
3599         </col>
3600       </thead>
3601       <row>
3602         <col>
3603           <para>osu_pk</para>
3604         </col>
3605         <col>
3606           <para>objectid</para>
3607         </col>
3608         <col>
3609           <para>Primary key</para>
3610         </col>
3611       </row>
3612       <row>
3613         <col>
3614           <para/>
3615         </col>
3616         <col>
3617           <para>system_username</para>
3618         </col>
3619         <col>
3620           <para>Primary key</para>
3621         </col>
3622       </row>
3623       <row>
3624         <col>
3625           <para>osu_objectid</para>
3626         </col>
3627         <col>
3628           <para>objectid</para>
3629         </col>
3630         <col>
3631           <para/>
3632         </col>
3633       </row>
3634       <row>
3635         <col>
3636           <para>osu_system_username</para>
3637         </col>
3638         <col>
3639           <para>system_username</para>
3640         </col>
3641         <col>
3642           <para/>
3643         </col>
3644       </row>
3645     </table>
3646     </subsubsection>
3647
3648 <subsubsection>
3649   <heading>The relationships.</heading>
3650
3651 <para>
3652 Relationships with other tables:
3653 </para>
3654 <table cpos='llp{8cm}'>
3655       <thead>
3656         <col>
3657           <para>Fieldname</para>
3658         </col>
3659         <col>
3660           <para>Remote Table</para>
3661         </col>
3662         <col>
3663           <para>Remarks</para>
3664         </col>
3665       </thead>
3666       <row>
3667         <col>
3668           <para>ObjectID</para>
3669         </col>
3670         <col>
3671           <para>Object</para>
3672         </col>
3673         <col>
3674           <para>Reference to the object (which object does this apply to).</para>
3675         </col>
3676       </row>
3677       <row>
3678         <col>
3679           <para>System_username</para>
3680         </col>
3681         <col>
3682           <para>Log</para>
3683         </col>
3684         <col>
3685           <para>Log entries can refer to the system username.</para>
3686         </col>
3687       </row>
3688     </table>
3689     <para>In the model this look like this:</para>
3690     <para/>
3691
3692     <para>
3693       <picture src="erd-objsysusr.png" eps="erd-objsysusr"/>
3694     </para>
3695     </subsubsection>
3696 </subsection>
3697
3698 <subsection>
3699   <heading>object_user</heading>
3700
3701 <para>
3702 This table will enable users to get access to the information belonging to an object. Also this table is mainly used for data retrieval and will rely on the indexes.
3703 </para>
3704 <subsubsection>
3705   <heading>The fields.</heading>
3706
3707 <para>
3708 The fields of <emph>object_user</emph> are listed below:
3709 </para>
3710
3711 <table cpos='lllp{6cm}'>
3712       <thead>
3713         <col>
3714           <para>Fieldname</para>
3715         </col>
3716         <col>
3717           <para>Fieldtype</para>
3718         </col>
3719         <col>
3720           <para>Size</para>
3721         </col>
3722         <col>
3723           <para>Remarks</para>
3724         </col>
3725       </thead>
3726       <row>
3727         <col>
3728           <para>Objectid</para>
3729         </col>
3730         <col>
3731           <para>Bigint</para>
3732         </col>
3733         <col>
3734           <para>8</para>
3735         </col>
3736         <col>
3737           <para>Reference to the <emph>object</emph></para>
3738         </col>
3739       </row>
3740       <row>
3741         <col>
3742           <para>Username</para>
3743         </col>
3744         <col>
3745           <para>Text</para>
3746         </col>
3747         <col>
3748           <para/>
3749         </col>
3750         <col>
3751           <para>Username in gnucomo. A reference to <emph>user</emph>.</para>
3752         </col>
3753       </row>
3754       <row>
3755         <col>
3756           <para>Security_level</para>
3757         </col>
3758         <col>
3759           <para>Int</para>
3760         </col>
3761         <col>
3762           <para/>
3763         </col>
3764         <col>
3765           <para>The security-level granted to this user.</para>
3766         </col>
3767       </row>
3768     </table>
3769 </subsubsection>
3770
3771 <subsubsection>
3772   <heading>The indexes.</heading>
3773 <para>
3774 The indices of the <emph>object_user</emph> table:
3775 </para>
3776 <table cpos='lll'>
3777       <thead>
3778         <col>
3779           <para>Indexname</para>
3780         </col>
3781         <col>
3782           <para>Field</para>
3783         </col>
3784         <col>
3785           <para>Characteristics</para>
3786         </col>
3787       </thead>
3788       <row>
3789         <col>
3790           <para>ous_pk</para>
3791         </col>
3792         <col>
3793           <para>objectid</para>
3794         </col>
3795         <col>
3796           <para>Primary key</para>
3797         </col>
3798       </row>
3799       <row>
3800         <col>
3801           <para/>
3802         </col>
3803         <col>
3804           <para>username</para>
3805         </col>
3806         <col>
3807           <para>Primary key</para>
3808         </col>
3809       </row>
3810       <row>
3811         <col>
3812           <para>ous_objectid</para>
3813         </col>
3814         <col>
3815           <para>objectid</para>
3816         </col>
3817         <col>
3818           <para/>
3819         </col>
3820       </row>
3821       <row>
3822         <col>
3823           <para>ous_username</para>
3824         </col>
3825         <col>
3826           <para>username</para>
3827         </col>
3828         <col>
3829           <para/>
3830         </col>
3831       </row>
3832       <row>
3833         <col>
3834           <para>ous_security_level</para>
3835         </col>
3836         <col>
3837           <para>ous_security_level</para>
3838         </col>
3839         <col>
3840           <para/>
3841         </col>
3842       </row>
3843     </table>
3844 </subsubsection>
3845
3846 <subsubsection>
3847   <heading>The relationships.</heading>
3848
3849 <para>
3850 Relationshiips with other tables:
3851 </para>
3852
3853 <table cpos='llp{8cm}'>
3854       <thead>
3855         <col>
3856           <para>Fieldname</para>
3857         </col>
3858         <col>
3859           <para>Remote Table</para>
3860         </col>
3861         <col>
3862           <para>Remarks</para>
3863         </col>
3864       </thead>
3865       <row>
3866         <col>
3867           <para>objectID</para>
3868         </col>
3869         <col>
3870           <para>object</para>
3871         </col>
3872         <col>
3873           <para>Reference to the object (which object does this apply to).</para>
3874         </col>
3875       </row>
3876       <row>
3877         <col>
3878           <para>username</para>
3879         </col>
3880         <col>
3881           <para>user</para>
3882         </col>
3883         <col>
3884           <para>Reference to the user.</para>
3885         </col>
3886       </row>
3887     </table>
3888
3889     <para>In the model this look like this:</para>
3890     <picture src="erd-objusr.png" eps="erd-objusr"/>
3891
3892 </subsubsection>
3893 </subsection>
3894
3895 <subsection>
3896   <heading>priority</heading>
3897
3898 <para>
3899 The priority table contains information on the levels that are recognized by the system. Mainly data retrieval so depending on indexing. It needs to be said that most likely only a couple of states will exist<footnote>By default we will use five states, but many states can be given to enable all types of differentiation.</footnote>.
3900 </para>
3901
3902 <subsubsection>
3903   <heading>The fields.</heading>
3904
3905 <para>
3906 The fields of the <emph>priority</emph> table are listed below:
3907 </para>
3908
3909 <table cpos='lllp{6cm}'>
3910       <thead>
3911         <col>
3912           <para>Fieldname</para>
3913         </col>
3914         <col>
3915           <para>Fieldtype</para>
3916         </col>
3917         <col>
3918           <para>Size</para>
3919         </col>
3920         <col>
3921           <para>Remarks</para>
3922         </col>
3923       </thead>
3924       <row>
3925         <col>
3926           <para>priority</para>
3927         </col>
3928         <col>
3929           <para>Int</para>
3930         </col>
3931         <col>
3932           <para>4</para>
3933         </col>
3934         <col>
3935           <para>Priority</para>
3936         </col>
3937       </row>
3938       <row>
3939         <col>
3940           <para>send_mail</para>
3941         </col>
3942         <col>
3943           <para>Boolean</para>
3944         </col>
3945         <col>
3946           <para/>
3947         </col>
3948         <col>
3949           <para>Send an e-mail if this priority is set? Yes = T / No = F</para>
3950         </col>
3951       </row>
3952       <row>
3953         <col>
3954           <para>send_sms</para>
3955         </col>
3956         <col>
3957           <para>Boolean</para>
3958         </col>
3959         <col>
3960           <para/>
3961         </col>
3962         <col>
3963           <para>Send a sms message if this priority is set? Yes = T / No = F</para>
3964         </col>
3965       </row>
3966       <row>
3967         <col>
3968           <para>send_fax</para>
3969         </col>
3970         <col>
3971           <para>Boolean</para>
3972         </col>
3973         <col>
3974           <para/>
3975         </col>
3976         <col>
3977           <para>Send a fax if this priority is set? Yes = T / No = F</para>
3978         </col>
3979       </row>
3980       <row>
3981         <col>
3982           <para>repeat_notification</para>
3983         </col>
3984         <col>
3985           <para>Boolean</para>
3986         </col>
3987         <col>
3988           <para/>
3989         </col>
3990         <col>
3991           <para>Repeat this notification if no action occurs since the notification. Yes = T / No = F</para>
3992         </col>
3993       </row>
3994       <row>
3995         <col>
3996           <para>interval_for_repeat</para>
3997         </col>
3998         <col>
3999           <para>Time</para>
4000         </col>
4001         <col>
4002           <para/>
4003         </col>
4004         <col>
4005           <para>Time interval that is set to wait for a response.</para>
4006         </col>
4007       </row>
4008     </table>
4009 </subsubsection>
4010
4011 <subsubsection>
4012   <heading>The indexes.</heading>
4013
4014 <para>
4015 The table is indexed on the following fields:
4016 </para>
4017
4018 <table cpos='lll'>
4019       <thead>
4020         <col>
4021           <para>Indexname</para>
4022         </col>
4023         <col>
4024           <para>Field</para>
4025         </col>
4026         <col>
4027           <para>Characteristics</para>
4028         </col>
4029       </thead>
4030       <row>
4031         <col>
4032           <para>pri_pk</para>
4033         </col>
4034         <col>
4035           <para>priority</para>
4036         </col>
4037         <col>
4038           <para>Primary key</para>
4039         </col>
4040       </row>
4041     </table>
4042 </subsubsection>
4043
4044 <subsubsection>
4045   <heading>The relationships.</heading>
4046
4047 <para>
4048 Relationships with other tables:
4049 </para>
4050 <table cpos='llp{8cm}'>
4051       <thead>
4052         <col>
4053           <para>Fieldname</para>
4054         </col>
4055         <col>
4056           <para>Remote Table</para>
4057         </col>
4058         <col>
4059           <para>Remarks</para>
4060         </col>
4061       </thead>
4062       <row>
4063         <col>
4064           <para>priority</para>
4065         </col>
4066         <col>
4067           <para>object_priority</para>
4068         </col>
4069         <col>
4070           <para>Reference to the object (which object does this apply to). </para>
4071         </col>
4072       </row>
4073     </table>
4074
4075     <para>In the model this look like this:</para>
4076     <para>
4077       <picture src="erd-prior.png" eps="erd-prior"/>
4078     </para>
4079 </subsubsection>
4080 </subsection>
4081
4082 <subsection>
4083   <heading>service</heading>
4084
4085 <para>
4086 The table <emph>service</emph> indicates the service that can be handled by the system. Out of the servicelist the administrator can indicate what services to expect.
4087 </para>
4088 <subsubsection>
4089   <heading>The fields.</heading>
4090
4091 <para>
4092 The fields are listed below:
4093 </para>
4094 <table cpos='lllp{6cm}'>
4095       <thead>
4096         <col>
4097           <para>Fieldname</para>
4098         </col>
4099         <col>
4100           <para>Fieldtype</para>
4101         </col>
4102         <col>
4103           <para>Size</para>
4104         </col>
4105         <col>
4106           <para>Remarks</para>
4107         </col>
4108       </thead>
4109       <row>
4110         <col>
4111           <para>servicecode</para>
4112         </col>
4113         <col>
4114           <para>Text</para>
4115         </col>
4116         <col>
4117           <para/>
4118         </col>
4119         <col>
4120           <para>The code that is written for the service</para>
4121         </col>
4122       </row>
4123       <row>
4124         <col>
4125           <para>servicename</para>
4126         </col>
4127         <col>
4128           <para>Text</para>
4129         </col>
4130         <col>
4131           <para/>
4132         </col>
4133         <col>
4134           <para>The expanded name for the service</para>
4135         </col>
4136       </row>
4137       <row>
4138         <col>
4139           <para>default_priority</para>
4140         </col>
4141         <col>
4142           <para>Int</para>
4143         </col>
4144         <col>
4145           <para>4</para>
4146         </col>
4147         <col>
4148           <para>The advised priority if these log-entries don't come in<footnote>Advised priorities can be changed in the object_service table per object. </footnote>.</para>
4149         </col>
4150       </row>
4151       <row>
4152         <col>
4153           <para>max_priority</para>
4154         </col>
4155         <col>
4156           <para>Int</para>
4157         </col>
4158         <col>
4159           <para>4</para>
4160         </col>
4161         <col>
4162           <para>The maximum priority advised for this service<footnote>Advised priorities can be changed in the object_service table per object.</footnote>.</para>
4163         </col>
4164       </row>
4165     </table>
4166 </subsubsection>
4167
4168 <subsubsection>
4169   <heading>The indexes.</heading>
4170
4171 <para>
4172 The table is indexed on the following fields:
4173 </para>
4174 <table cpos='lll'>
4175       <thead>
4176         <col>
4177           <para>Indexname</para>
4178         </col>
4179         <col>
4180           <para>Field</para>
4181         </col>
4182         <col>
4183           <para>Characteristics</para>
4184         </col>
4185       </thead>
4186       <row>
4187         <col>
4188           <para>ser_pk</para>
4189         </col>
4190         <col>
4191           <para>servicecode</para>
4192         </col>
4193         <col>
4194           <para>Primary key</para>
4195         </col>
4196       </row>
4197       <row>
4198         <col>
4199           <para>ser_servicename</para>
4200         </col>
4201         <col>
4202           <para>servicename</para>
4203         </col>
4204         <col>
4205           <para>Unique</para>
4206         </col>
4207       </row>
4208     </table>
4209 </subsubsection>
4210
4211 <subsubsection>
4212   <heading>The relationships.</heading>
4213 <para>
4214 Relationships with other tables:
4215 </para>
4216 <table cpos='llp{8cm}'>
4217       <thead>
4218         <col>
4219           <para>Fieldname</para>
4220         </col>
4221         <col>
4222           <para>Remote Table</para>
4223         </col>
4224         <col>
4225           <para>Remarks</para>
4226         </col>
4227       </thead>
4228       <row>
4229         <col>
4230           <para>servicecode</para>
4231         </col>
4232         <col>
4233           <para>log</para>
4234         </col>
4235         <col>
4236           <para>What log entries have been tied to this type of service.</para>
4237         </col>
4238       </row>
4239       <row>
4240         <col>
4241           <para/>
4242         </col>
4243         <col>
4244           <para>object_service</para>
4245         </col>
4246         <col>
4247           <para>Settings for this service per object.</para>
4248         </col>
4249       </row>
4250       <row>
4251         <col>
4252           <para/>
4253         </col>
4254         <col>
4255           <para>unprocessed_log</para>
4256         </col>
4257         <col>
4258           <para>What unprocessed log entries have been tied to this type of service.</para>
4259         </col>
4260       </row>
4261     </table>
4262  
4263     <para>In the model this look like this:</para>
4264     <para>
4265       <picture src="erd-service.png" eps="erd-service"/>
4266     </para>
4267 </subsubsection>
4268 </subsection>
4269
4270 <subsection>
4271   <heading>status.</heading>
4272
4273 <para>
4274 The table <emph>status</emph> contains the possible states that a notification can have. As with the table <emph>priority</emph> these statuses are limited in number by default but can be expanded. Also here retrieval prevails above data entry and therefor indexing is important.
4275 </para>
4276
4277 <subsubsection>
4278   <heading>The fields.</heading>
4279
4280 <para>
4281 The fields of the <emph>status</emph> table are listed below:
4282 </para>
4283
4284 <table cpos='lllp{6cm}'>
4285       <thead>
4286         <col>
4287           <para>Fieldname</para>
4288         </col>
4289         <col>
4290           <para>Fieldtype</para>
4291         </col>
4292         <col>
4293           <para>Size</para>
4294         </col>
4295         <col>
4296           <para>Remarks</para>
4297         </col>
4298       </thead>
4299       <row>
4300         <col>
4301           <para>statuscode</para>
4302         </col>
4303         <col>
4304           <para>Varchar</para>
4305         </col>
4306         <col>
4307           <para>3</para>
4308         </col>
4309         <col>
4310           <para>The code for the status</para>
4311         </col>
4312       </row>
4313       <row>
4314         <col>
4315           <para>statusname</para>
4316         </col>
4317         <col>
4318           <para>Text</para>
4319         </col>
4320         <col>
4321           <para/>
4322         </col>
4323         <col>
4324           <para>What is the correct name for the status</para>
4325         </col>
4326       </row>
4327       <row>
4328         <col>
4329           <para>open_notification</para>
4330         </col>
4331         <col>
4332           <para>Boolean</para>
4333         </col>
4334         <col>
4335           <para/>
4336         </col>
4337         <col>
4338           <para>Is the notification still open when this status is set? Yes = T / No = F</para>
4339         </col>
4340       </row>
4341       <row>
4342         <col>
4343           <para>description</para>
4344         </col>
4345         <col>
4346           <para>Text</para>
4347         </col>
4348         <col>
4349           <para/>
4350         </col>
4351         <col>
4352           <para>Explanation of the code</para>
4353         </col>
4354       </row>
4355     </table>
4356 </subsubsection>
4357
4358 <subsubsection>
4359   <heading>The indexes.</heading>
4360 <para>
4361 The table is indexed on the following fields:
4362 </para>
4363
4364 <table cpos='lll'>
4365       <thead>
4366         <col>
4367           <para>Indexname</para>
4368         </col>
4369         <col>
4370           <para>Field</para>
4371         </col>
4372         <col>
4373           <para>Characteristics</para>
4374         </col>
4375       </thead>
4376       <row>
4377         <col>
4378           <para>sta_pk</para>
4379         </col>
4380         <col>
4381           <para>statuscode</para>
4382         </col>
4383         <col>
4384           <para>Primary key</para>
4385         </col>
4386       </row>
4387       <row>
4388         <col>
4389           <para>sta_statusname</para>
4390         </col>
4391         <col>
4392           <para>statusname</para>
4393         </col>
4394         <col>
4395           <para>Unique</para>
4396         </col>
4397       </row>
4398       <row>
4399         <col>
4400           <para>sta_open_notification</para>
4401         </col>
4402         <col>
4403           <para>open_notification</para>
4404         </col>
4405         <col>
4406           <para/>
4407         </col>
4408       </row>
4409     </table>
4410 </subsubsection>
4411
4412 <subsubsection>
4413   <heading>The relationships.</heading>
4414 <para>
4415 Relationships with other tables
4416 </para>
4417
4418 <table cpos='lll'>
4419       <thead>
4420         <col>
4421           <para>Fieldname</para>
4422         </col>
4423         <col>
4424           <para>Remote Table</para>
4425         </col>
4426         <col>
4427           <para>Remarks</para>
4428         </col>
4429       </thead>
4430       <row>
4431         <col>
4432           <para/>
4433         </col>
4434         <col>
4435           <para/>
4436         </col>
4437         <col>
4438           <para/>
4439         </col>
4440       </row>
4441     </table>
4442     <para>In the model this look like this:</para>
4443     <para>
4444       <picture src="erd-status.png" eps="erd-status"/>
4445     </para>
4446 </subsubsection>
4447
4448 <subsubsection>
4449   <heading>Default values.</heading>
4450 <para>The status values are default for the system and for that reason are predefined.</para>
4451 <table cpos='p{2cm}lp{1cm}p{6cm}'>
4452       <thead>
4453         <col>
4454           <para>Statuscode</para>
4455         </col>
4456         <col>
4457           <para>Statusname</para>
4458         </col>
4459         <col>
4460           <para>Open Notification</para>
4461         </col>
4462         <col>
4463           <para/>
4464         </col>
4465       </thead>
4466       <row>
4467         <col>
4468           <para>new</para>
4469         </col>
4470         <col>
4471           <para>New entry</para>
4472         </col>
4473         <col>
4474           <para>T</para>
4475         </col>
4476         <col>
4477           <para>Just detected nothing has been done yet.</para>
4478         </col>
4479       </row>
4480       <row>
4481         <col>
4482           <para>opn</para>
4483         </col>
4484         <col>
4485           <para>Open</para>
4486         </col>
4487         <col>
4488           <para>T</para>
4489         </col>
4490         <col>
4491           <para>The notification has been displayed, but nothing has been done yet.</para>
4492         </col>
4493       </row>
4494       <row>
4495         <col>
4496           <para>pen</para>
4497         </col>
4498         <col>
4499           <para>Pending</para>
4500         </col>
4501         <col>
4502           <para>T</para>
4503         </col>
4504         <col>
4505           <para>The notification is currently being worked on.</para>
4506         </col>
4507       </row>
4508       <row>
4509         <col>
4510           <para>ver</para>
4511         </col>
4512         <col>
4513           <para>Waiting for verification</para>
4514         </col>
4515         <col>
4516           <para>T</para>
4517         </col>
4518         <col>
4519           <para>The notification has been worked on. After it has been verified the notification can be closed.</para>
4520         </col>
4521       </row>
4522       <row>
4523         <col>
4524           <para>cls</para>
4525         </col>
4526         <col>
4527           <para>Closed</para>
4528         </col>
4529         <col>
4530           <para>F</para>
4531         </col>
4532         <col>
4533           <para>The notification has been closed</para>
4534         </col>
4535       </row>
4536       <row>
4537         <col>
4538           <para>rej</para>
4539         </col>
4540         <col>
4541           <para>Rejected</para>
4542         </col>
4543         <col>
4544           <para>F</para>
4545         </col>
4546         <col>
4547           <para>This was a false positive and has been rejected.</para>
4548         </col>
4549       </row>
4550       <row>
4551         <col>
4552           <para>inv</para>
4553         </col>
4554         <col>
4555           <para>Investigate</para>
4556         </col>
4557         <col>
4558           <para>T</para>
4559         </col>
4560         <col>
4561           <para>The notification is under investigation and awaiting additional details.</para>
4562         </col>
4563       </row>
4564     </table>
4565 </subsubsection>
4566 </subsection>
4567
4568 <subsection>
4569   <heading>type_of_issue.</heading>
4570
4571 <para>This table will contain a list of all available issues that can be detected. All issues have a suggested priority setting. This is typically data retrieval and good indexing is needed.</para>
4572
4573 <subsubsection>
4574   <heading>The fields.</heading>
4575
4576 <para>
4577 Fields of <emph>type_of_issue</emph> are:
4578 </para>
4579
4580 <table cpos='lllp{6cm}'>
4581       <thead>
4582         <col>
4583           <para>Fieldname</para>
4584         </col>
4585         <col>
4586           <para>Fieldtype</para>
4587         </col>
4588         <col>
4589           <para>Size</para>
4590         </col>
4591         <col>
4592           <para>Remarks</para>
4593         </col>
4594       </thead>
4595       <row>
4596         <col>
4597           <para>type_of_issueid</para>
4598         </col>
4599         <col>
4600           <para>Bigserial</para>
4601         </col>
4602         <col>
4603           <para>8</para>
4604         </col>
4605         <col>
4606           <para>The sequential code for the issue.</para>
4607         </col>
4608       </row>
4609       <row>
4610         <col>
4611           <para>name</para>
4612         </col>
4613         <col>
4614           <para>Text</para>
4615         </col>
4616         <col>
4617           <para/>
4618         </col>
4619         <col>
4620           <para>Name for the issue</para>
4621         </col>
4622       </row>
4623       <row>
4624         <col>
4625           <para>suggested_priority</para>
4626         </col>
4627         <col>
4628           <para>Int</para>
4629         </col>
4630         <col>
4631           <para>4</para>
4632         </col>
4633         <col>
4634           <para>The advised priority setting.</para>
4635         </col>
4636       </row>
4637       <row>
4638         <col>
4639           <para>description</para>
4640         </col>
4641         <col>
4642           <para>Text</para>
4643         </col>
4644         <col>
4645           <para/>
4646         </col>
4647         <col>
4648           <para>Description of the method and how this can be set.</para>
4649         </col>
4650       </row>
4651       <row>
4652         <col>
4653           <para>active</para>
4654         </col>
4655         <col>
4656           <para>Boolean</para>
4657         </col>
4658         <col>
4659           <para/>
4660         </col>
4661         <col>
4662           <para>Is this check currently being used in the system.</para>
4663         </col>
4664       </row>
4665     </table>
4666 </subsubsection>
4667
4668 <subsubsection>
4669   <heading>The indexes.</heading>
4670 <para>
4671 The table is indexed on the following fields:
4672 </para>
4673
4674 <table cpos='lll'>
4675       <thead>
4676         <col>
4677           <para>Indexname</para>
4678         </col>
4679         <col>
4680           <para>Field</para>
4681         </col>
4682         <col>
4683           <para>Characteristics</para>
4684         </col>
4685       </thead>
4686       <row>
4687         <col>
4688           <para>toi_pk</para>
4689           <para>(type_of_issue_type_of_issue_key)</para>
4690         </col>
4691         <col>
4692           <para>type_of_issueid</para>
4693         </col>
4694         <col>
4695           <para>Primary key</para>
4696         </col>
4697       </row>
4698       <row>
4699         <col>
4700           <para>toi_name</para>
4701         </col>
4702         <col>
4703           <para>name</para>
4704         </col>
4705         <col>
4706           <para>Unique</para>
4707         </col>
4708       </row>
4709       <row>
4710         <col>
4711           <para>toi_active</para>
4712         </col>
4713         <col>
4714           <para>active</para>
4715         </col>
4716         <col>
4717           <para/>
4718         </col>
4719       </row>
4720     </table>
4721 </subsubsection>
4722
4723 <subsubsection>
4724   <heading>The relationships.</heading>
4725 <table cpos='lll'>
4726       <thead>
4727         <col>
4728           <para>Fieldname</para>
4729         </col>
4730         <col>
4731           <para>Remote Table</para>
4732         </col>
4733         <col>
4734           <para>Remarks</para>
4735         </col>
4736       </thead>
4737       <row>
4738         <col>
4739           <para>type_of_issueid</para>
4740         </col>
4741         <col>
4742           <para>object_issue</para>
4743         </col>
4744         <col>
4745           <para/>
4746         </col>
4747       </row>
4748     </table>
4749
4750     <para>In the model this look like this:</para>
4751     <para>
4752       <picture src="erd-toi.png" eps="erd-toi"/>
4753     </para>
4754 </subsubsection>
4755
4756 <subsubsection>
4757   <heading>Default values.</heading>
4758
4759 <para>
4760 All checks are entered as code into the system. This table only works for the application only. The user can set specifics in the application only.
4761 </para>
4762 <table cpos='lllll'>
4763       <thead>
4764         <col>
4765           <para>Type_of_issueid</para>
4766         </col>
4767         <col>
4768           <para>Name</para>
4769         </col>
4770         <col>
4771           <para>Suggested_priority</para>
4772         </col>
4773         <col>
4774           <para>Description</para>
4775         </col>
4776         <col>
4777           <para>Active</para>
4778         </col>
4779       </thead>
4780       <row>
4781         <col>
4782           <para>1</para>
4783         </col>
4784         <col>
4785           <para>Manual entry</para>
4786         </col>
4787         <col>
4788           <para>4</para>
4789         </col>
4790         <col>
4791           <para>A manual entry of a notification.</para>
4792         </col>
4793         <col>
4794           <para>T</para>
4795         </col>
4796       </row>
4797 </table>
4798 </subsubsection>
4799 </subsection>
4800
4801 <subsection>
4802   <heading>unprocessed_log</heading>
4803
4804 <para>
4805 The <emph>user</emph> table contains the users that can login the monitoring application. It will also store if the users maintains the system. Mainly used for retrieval so properly indexed.
4806 </para>
4807
4808 <subsubsection>
4809   <heading>The fields.</heading>
4810
4811 <para>
4812 The fields are listed below:
4813 </para>
4814
4815 <table cpos='lllp{6cm}'>
4816       <thead>
4817         <col>
4818           <para>Fieldname</para>
4819         </col>
4820         <col>
4821           <para>Fieldtype</para>
4822         </col>
4823         <col>
4824           <para>Size</para>
4825         </col>
4826         <col>
4827           <para>Remarks</para>
4828         </col>
4829       </thead>
4830       <row>
4831         <col>
4832           <para>unprocessedid</para>
4833         </col>
4834         <col>
4835           <para>Bigserial</para>
4836         </col>
4837         <col>
4838           <para/>
4839         </col>
4840         <col>
4841           <para>Autonumber entry</para>
4842         </col>
4843       </row>
4844       <row>
4845         <col>
4846           <para>objectid</para>
4847         </col>
4848         <col>
4849           <para>Bigint</para>
4850         </col>
4851         <col>
4852           <para/>
4853         </col>
4854         <col>
4855           <para>Reference to the object</para>
4856         </col>
4857       </row>
4858       <row>
4859         <col>
4860           <para>servicecode</para>
4861         </col>
4862         <col>
4863           <para>Text</para>
4864         </col>
4865         <col>
4866           <para/>
4867         </col>
4868         <col>
4869           <para>The service that entered this data.</para>
4870         </col>
4871       </row>
4872       <row>
4873         <col>
4874           <para>logdata</para>
4875         </col>
4876         <col>
4877           <para>Text</para>
4878         </col>
4879         <col>
4880           <para/>
4881         </col>
4882         <col>
4883           <para>The data that comes from the file.</para>
4884         </col>
4885       </row>
4886     </table>
4887 </subsubsection>
4888
4889 <subsubsection>
4890   <heading>The indexes.</heading>
4891 <para>
4892 The indices of the table:
4893 </para>
4894
4895 <table cpos='lll'>
4896       <thead>
4897         <col>
4898           <para>Indexname</para>
4899         </col>
4900         <col>
4901           <para>Field</para>
4902         </col>
4903         <col>
4904           <para>Characteristics</para>
4905         </col>
4906       </thead>
4907       <row>
4908         <col>
4909           <para>unl_pk</para>
4910           <para>(unprocessed_l_unprocessedid_key)</para>
4911         </col>
4912         <col>
4913           <para>unprocessedid</para>
4914         </col>
4915         <col>
4916           <para>Primary key</para>
4917         </col>
4918       </row>
4919     </table>
4920 </subsubsection>
4921
4922 <subsubsection>
4923   <heading>The relationships.</heading>
4924 <para>
4925 Relationships with other tables:
4926 </para>
4927
4928 <table cpos='llp{8cm}'>
4929       <thead>
4930         <col>
4931           <para>Fieldname</para>
4932         </col>
4933         <col>
4934           <para>Remote Table</para>
4935         </col>
4936         <col>
4937           <para>Remarks</para>
4938         </col>
4939       </thead>
4940       <row>
4941         <col>
4942           <para>objectid</para>
4943         </col>
4944         <col>
4945           <para>object</para>
4946         </col>
4947         <col>
4948           <para>Reference to the object that is reporting the data</para>
4949         </col>
4950       </row>
4951       <row>
4952         <col>
4953           <para>servicecode</para>
4954         </col>
4955         <col>
4956           <para>service</para>
4957         </col>
4958         <col>
4959           <para>Reference to the servicecode that is mentioned in the filename.</para>
4960         </col>
4961       </row>
4962     </table>
4963     <para>In the model this look like this:</para>
4964     <para>
4965       <picture src="erd-unplog.png" eps="erd-unplog"/>
4966     </para>
4967 </subsubsection>
4968
4969 <subsubsection>
4970   <heading>Sample values.</heading>
4971     <para>To do</para>
4972 </subsubsection>
4973 </subsection>
4974
4975 <subsection>
4976   <heading>user_gnucomo</heading>
4977
4978 <para>The <emph>user</emph> table contains the users that can login the monitoring application. It will also store if the users maintains the system. Mainly used for retrieval so properly indexed.</para>
4979 <subsubsection>
4980   <heading>The fields.</heading>
4981 <para>
4982 The fields are listed in the table below:
4983 </para>
4984
4985 <table cpos='lllp{6cm}'>
4986       <thead>
4987         <col>
4988           <para>Fieldname</para>
4989         </col>
4990         <col>
4991           <para>Fieldtype</para>
4992         </col>
4993         <col>
4994           <para>Size</para>
4995         </col>
4996         <col>
4997           <para>Remarks</para>
4998         </col>
4999       </thead>
5000       <row>
5001         <col>
5002           <para>username</para>
5003         </col>
5004         <col>
5005           <para>Text</para>
5006         </col>
5007         <col>
5008           <para/>
5009         </col>
5010         <col>
5011           <para>Name the user is known by</para>
5012         </col>
5013       </row>
5014       <row>
5015         <col>
5016           <para>password</para>
5017         </col>
5018         <col>
5019           <para>Text</para>
5020         </col>
5021         <col>
5022           <para/>
5023         </col>
5024         <col>
5025           <para>Password</para>
5026         </col>
5027       </row>
5028       <row>
5029         <col>
5030           <para>active_sessionid</para>
5031         </col>
5032         <col>
5033           <para>Bigint</para>
5034         </col>
5035         <col>
5036           <para/>
5037         </col>
5038         <col>
5039           <para>Sessionnumber currently used by user. If this is set to 0 a user is not present on the system. Only one session can be open at a time.</para>
5040         </col>
5041       </row>
5042       <row>
5043         <col>
5044           <para>account_active</para>
5045         </col>
5046         <col>
5047           <para>Boolean</para>
5048         </col>
5049         <col>
5050           <para/>
5051         </col>
5052         <col>
5053           <para>Is the account currently active?</para>
5054         </col>
5055       </row>
5056       <row>
5057         <col>
5058           <para>security_level</para>
5059         </col>
5060         <col>
5061           <para>Int</para>
5062         </col>
5063         <col>
5064           <para/>
5065         </col>
5066         <col>
5067           <para>Given securitylevel to this user</para>
5068         </col>
5069       </row>
5070     </table>
5071 </subsubsection>
5072
5073 <subsubsection>
5074   <heading>The indexes</heading>
5075 <para>
5076 The table is indexed on the following fields:
5077 </para>
5078 <table cpos='lll'>
5079       <thead>
5080         <col>
5081           <para>Indexname</para>
5082         </col>
5083         <col>
5084           <para>Field</para>
5085         </col>
5086         <col>
5087           <para>Characteristics</para>
5088         </col>
5089       </thead>
5090       <row>
5091         <col>
5092           <para>usr_pk</para>
5093         </col>
5094         <col>
5095           <para>username</para>
5096         </col>
5097         <col>
5098           <para>Primary key</para>
5099         </col>
5100       </row>
5101       <row>
5102         <col>
5103           <para>usr_active_sessionid</para>
5104         </col>
5105         <col>
5106           <para>active_sessionid</para>
5107         </col>
5108         <col>
5109           <para>Unique</para>
5110         </col>
5111       </row>
5112     </table>
5113 </subsubsection>
5114
5115 <subsubsection>
5116   <heading>The relationships.</heading>
5117 <para>
5118 Relationships with other tables
5119 </para>
5120 <table cpos='lll'>
5121       <thead>
5122         <col>
5123           <para>Fieldname</para>
5124         </col>
5125         <col>
5126           <para>Remote Table</para>
5127         </col>
5128         <col>
5129           <para>Remarks</para>
5130         </col>
5131       </thead>
5132       <row>
5133         <col>
5134           <para>ObjectID</para>
5135         </col>
5136         <col>
5137           <para>Object</para>
5138         </col>
5139         <col>
5140           <para>Link to the object</para>
5141         </col>
5142       </row>
5143     </table>
5144     <para>In the model this look like this:</para>
5145     <para>
5146       <picture src="erd-usr.png" eps="erd-usr"/>
5147     </para>
5148 </subsubsection>
5149 </subsection>
5150 </section>
5151
5152 <section>
5153   <heading>Model of table-relations.</heading>
5154
5155 <para>The following model pictures the database as it has been described before.</para>
5156 <para>
5157       <picture src="erd.png" eps="erd" scale="0.7"/>
5158 </para>
5159
5160 </section>
5161 </chapter>
5162
5163 <chapter>
5164   <heading>Warnings that can be detected.</heading>
5165 </chapter>
5166
5167     <chapter>
5168       <heading>User Interface.</heading>
5169
5170     <para>To be determined in the near future.</para>
5171     </chapter>
5172
5173     <chapter>
5174       <heading>The installation process.</heading>
5175
5176     <para>Since the system must make maintenance and security easier to use, the burden of installation should as easy as possible. Where possible the installation script should take away as much work as possible. Where settings need to be done, this should be done through an interface. However at no point we take the user's right to understand and work with system. Configuration-files should be easy to understand and the choice must be there to do installation manually. </para>
5177
5178     <section>
5179       <heading>Supported platforms.</heading>
5180
5181     <para>The following two Linux distributions have been selected to be actively supported:</para>
5182     <itemize>
5183       <item>
5184         <para>Debian GNU/Linux (.deb packages)</para>
5185       </item>
5186       <item>
5187         <para>RedHat Linux (.rpm packages)</para>
5188       </item>
5189     </itemize>
5190     <para>We will try and facilitate as many operating systems client-side and as many unices server-side, but efforts on testing out of the projects will be very minimalistic to ensure that the project keeps delivering new version and new features. </para>
5191     </section>
5192
5193     <section>
5194       <heading>Installation on the server.</heading>
5195
5196     <para>The following steps will be part of a script, that can automatically perform these steps:</para>
5197
5198 <enumerate>
5199     <item>
5200       <para>Create the user <emph>gnucomo</emph>.</para>
5201     </item>
5202     <item>
5203       <para>Make the directory as described in the chapter <emph>Sending messages to the central gnucomo system</emph> in the subchapter <emph>directories</emph>.(server-side).</para>
5204     </item>
5205 </enumerate>
5206     </section>
5207
5208     <section>
5209       <heading>Installation on a UNIX-client.</heading>
5210
5211     <para>The following steps will be part of a script, that can automatically perform these steps:</para>
5212 <enumerate>
5213     <item>
5214       <para>Create the user <emph>gcm_client</emph>.</para>
5215     </item>
5216     <item>
5217       <para>Make the directory as described in the chapter <emph>Sending messages to the central gnucomo system</emph> in the subchapter <emph>directories</emph> (client-side).</para>
5218     </item>
5219     <item>
5220       <para>Creation of the database user gcm_input. This user has only the right to enter data into the database. There are no deletion, update or select-permissions.</para>
5221     </item>
5222 </enumerate>
5223
5224     </section>
5225     </chapter>
5226
5227 <chapter>
5228   <heading>Dependency on other free software.</heading>
5229
5230 <para>The following list is a set of applications that will be used on to make our application work:</para>
5231     <table cpos='lp{8cm}l'>
5232       <thead>
5233         <col>
5234           <para>Application</para>
5235         </col>
5236         <col>
5237           <para>Needed for</para>
5238         </col>
5239         <col>
5240           <para>Client/Server</para>
5241         </col>
5242       </thead>
5243       <row>
5244         <col>
5245           <para>gpg</para>
5246         </col>
5247         <col>
5248           <para>The encryption of the information being transferred between the two systems.</para>
5249         </col>
5250         <col>
5251           <para>Client</para>
5252           <para>Server</para>
5253         </col>
5254       </row>
5255       <row>
5256         <col>
5257           <para>GNU/Linux</para>
5258         </col>
5259         <col>
5260           <para>The basic operating system. Allthough the system might work very well on all types on versions of Linux, FreeBSD, OpenBSD or any unices the main focus for distribution is given to: Debian GNU/Linux and RedHat Linux (the downloadable iso-version). </para>
5261         </col>
5262         <col>
5263           <para>Server</para>
5264         </col>
5265       </row>
5266       <row>
5267         <col>
5268           <para>mail</para>
5269         </col>
5270         <col>
5271           <para>The application enabling the sending of messages.</para>
5272         </col>
5273         <col>
5274           <para>Client</para>
5275           <para>Server</para>
5276         </col>
5277       </row>
5278       <row>
5279         <col>
5280           <para>openssh</para>
5281         </col>
5282         <col>
5283           <para>If e-mail is not used this application will deliver the file-copy</para>
5284         </col>
5285         <col>
5286           <para>Client</para>
5287           <para>Server</para>
5288         </col>
5289       </row>
5290       <row>
5291         <col>
5292           <para>PostgreSQL</para>
5293         </col>
5294         <col>
5295           <para>The database where all the signals from client will be stored.</para>
5296         </col>
5297         <col>
5298           <para>Client</para>
5299         </col>
5300       </row>
5301     </table>
5302 <section>
5303 <heading>Related projects</heading>
5304
5305 <para>
5306 There are a number of projects that can help <strong>Gnucomo</strong> or perform
5307 similar funtions:
5308
5309 <itemize>
5310    <item>
5311    <reference href='http://crm114.sourceforge.net/'>CRM114</reference> - The Controllable
5312    Regex Mutilator.
5313    </item>
5314 </itemize>
5315 </para>
5316 </section>
5317 </chapter>
5318
5319     <chapter>
5320       <heading>Settings on the server machine.</heading>
5321
5322     <section>
5323       <heading>Required.</heading>
5324
5325     <para>The following settings are required to ensure that the functionality is as much as expected.</para>
5326
5327     <subsection>
5328       <heading>Timezone in GMT (UTC).</heading>
5329
5330     <para>Since all international traffic registers all entries in UTC (Universal Time Coordinate) this system will do so as well. Therefore the clock has to be adjusted to that as well as the system settings.</para>
5331     <para>These settings can found on a RedHat computer in the <code>/etc/sysconfig/clock-file</code>. On Debian this stored in the file <code>/etc/timezone</code>.</para>
5332     </subsection>
5333     </section>
5334
5335     <section>
5336       <heading>Suggested.</heading>
5337
5338     <subsection>
5339       <heading>Use NTP.</heading>
5340
5341     <para>If a computer is running for some time the clocks tend to be off the correct time. This makes it harder to detect what exactly happened exactly at what moment in time and reduce value of log-entries. Especially considering that ultimately all data is gathered in one central system. To overcome this Network Time Protocol (NTP RFC 13025 March 1992) has been created that explains a protocol to synchronize clocks through the Internet. Many operating systems like Microsoft Windows 2000 Server and FreeBSD, OpenBSD and Linux  support this. A ntp-server (or ntpd) can be found at: http://www.eecis.udel.edu/~ntp/ It is strongly recommended that you use this.</para>
5342
5343     </subsection>
5344     </section>
5345     </chapter>
5346
5347     <chapter>
5348       <heading>Settings on the client machine.</heading>
5349
5350     <section>
5351       <heading>Required.</heading>
5352     </section>
5353
5354     <section>
5355       <heading>Suggested.</heading>
5356
5357     <subsection>
5358       <heading>Use NTP.</heading>
5359
5360     <para>If a computer is running for some time the clocks tend to be off the correct time. This makes it harder to detect what exactly happened exactly at what moment in time and reduce value of log-entries. Especially considering that ultimately all data is gathered in one central system. To overcome this Network Time Protocol (NTP RFC 13025 March 1992) has been created that explains a protocol to synchronize clocks through the Internet. Many operating systems like Microsoft Windows 2000 Server and FreeBSD, OpenBSD and Linux  support this. A ntp-server (or ntpd) can be found at: http://www.eecis.udel.edu/~ntp/ It is strongly recommended that you use this.</para>
5361
5362     </subsection>
5363     </section>
5364     </chapter>
5365
5366     <chapter>
5367       <heading>Appendices.</heading>
5368
5369     <section>
5370       <heading>Appendix A. GNU Public License Version 2, June 1991.</heading>
5371
5372     <para>Copyright (C) 1989, 1991 Free Software Foundation, Inc.</para>
5373     <para>59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</para>
5374     <para>Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.</para>
5375
5376     <subsection>
5377       <heading>Preamble</heading>
5378     <para>The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. </para>
5379     <para>When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.</para>
5380     <para>To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.</para>
5381     <para>For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.</para>
5382     <para>We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. </para>
5383     <para>Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.</para>
5384     <para>Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.</para>
5385     <para>The precise terms and conditions for copying, distribution and modification follow.</para>
5386     <para>GNU GENERAL PUBLIC LICENSE</para>
5387     </subsection>
5388
5389     <subsection>
5390       <heading>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</heading>
5391
5392 <enumerate>
5393     <item>
5394       <para>This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The &quot;Program&quot;, below, refers to any such program or work, and a &quot;work based on the Program&quot; means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term &quot;modification&quot;.) Each licensee is addressed as &quot;you&quot;.</para>
5395     <para>Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. </para>
5396     </item>
5397     <item>
5398       <para>You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.</para>
5399     <para>You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.</para>
5400     </item>
5401     <item>
5402       <para>You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:</para>
5403     <para>a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.</para>
5404     <para>b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.</para>
5405     <para>c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)</para>
5406     <para>These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.</para>
5407     <para>Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.</para>
5408     <para>In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.</para>
5409     </item>
5410     <item>
5411       <para>You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:</para>
5412     <para>a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, </para>
5413     <para>b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,</para>
5414     <para>c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)</para>
5415     <para>The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.</para>
5416     <para>If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.</para>
5417     </item>
5418     <item>
5419       <para>You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.</para>
5420     </item>
5421     <item>
5422       <para>You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.</para>
5423     </item>
5424     <item>
5425       <para>Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein.</para>
5426     <para>You are not responsible for enforcing compliance by third parties to this License.</para>
5427     </item>
5428     <item>
5429       <para>If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.</para>
5430     <para>If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.</para>
5431     <para>It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.</para>
5432     <para>This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.</para>
5433     </item>
5434     <item>
5435       <para>If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.</para>
5436     </item>
5437     <item>
5438       <para>The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.</para>
5439     <para>Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and &quot;any later version&quot;, you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.</para>
5440     </item>
5441     <item>
5442       <para>If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.</para>
5443     </item>
5444 </enumerate>
5445     </subsection>
5446     <subsection>
5447       <heading>NO WARRANTY</heading>
5448 <enumerate>
5449     <item>
5450       <para>BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVidE THE PROGRAM &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</para>
5451     </item>
5452     <item>
5453       <para>IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</para>
5454     </item>
5455 </enumerate>
5456     <para>END OF TERMS AND CONDITIONS</para>
5457     </subsection>
5458     <subsection>
5459       <heading>How to Apply These Terms to Your New Programs</heading>
5460     <para>If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. </para>
5461     <para>To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the &quot;copyright&quot; line and a pointer to where the full notice is found.</para>
5462     <para>&lt;one line to give the program's name and a brief idea of what it does.&gt; Copyright (C) &lt;year&gt; &lt;name of author&gt; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.</para>
5463     <para>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</para>
5464     <para>You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</para>
5465     <para>Also add information on how to contact you by electronic and paper mail.</para>
5466     <para>If the program is interactive, make it output a short notice like this when it starts in an interactive mode:</para>
5467     <para>Gnomovision version 69, Copyright (C) year name of author</para>
5468     <para>Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.</para>
5469     <para>This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.</para>
5470     <para/>
5471     <para>The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.</para>
5472     <para>You should also get your employer (if you work as a programmer) or your school, if any, to sign a &quot;copyright disclaimer&quot; for the program, if necessary. Here is a sample; alter the names:</para>
5473     <para>Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. </para>
5474     <para>&lt;signature of Ty Coon&gt;, 1 April 1989 Ty Coon, President of Vice</para>
5475     <para>This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License.</para>
5476     </subsection>
5477     </section>
5478     </chapter>
5479   </book>
5480 </doc>