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