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