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">
8 <subtitle>GNU COMPUTER MONITORING</subtitle>
9 <subtitle>A system for interactive system monitoring.</subtitle>
10 <subtitle>Development manifest</subtitle>
12 <author>Brenno J.S.A.A.F. de Winter, De Winter Information Solutions</author>
13 <author>Arjen Baart, Andromeda Technology & Automation</author>
14 <date>August 28, 2002.</date>
16 <infoitem label="Version">0.19</infoitem>
24 <heading>About this document.</heading>
26 <para>This document describes the technical specifications for the Gnucomo project. It will describe the functionality achieved, design specifications and choices made. The document will be the manifest for the developers to work in the same direction and not run into unneeded disappointments.</para>
29 <heading>History of the document.</heading>
31 <table cpos='lp{3cm}lp{4cm}'>
33 <col> Version </col> <col> Author </col> <col> Date </col> <col> Remarks </col>
36 <col> 0.l </col> <col> Brenno de Winter </col> <col> July 11th 2002 </col>
42 <col> 0.11 </col> <col> Arjen Baart </col> <col> July 12th 2002 </col>
44 Additional guidelines and dataflow diagram.
48 <col> 0.12 </col> <col> Brenno de Winter </col> <col> July 15th 2002 </col>
54 <col> 0.13 </col> <col> Arjen Baart </col> <col> July 16th 2002 </col>
56 Entity-relationship model added.
60 <col> 0.14 </col> <col> Brenno de Winter </col> <col> July 17th 2002 </col>
62 Based on feedback. Small changes to the datamodel and finishing touches
63 in lay-out of the tables. Added some examples.
67 <col> 0.15 </col> <col> Brenno de Winter, Arjen Baart </col> <col> July 21st 2002 </col>
69 Additional feedback processed, indexes added, ERD added and SQL-script created.
73 <col> 0.16 </col> <col> Brenno de Winter </col> <col> August 7th 2002 </col>
75 Communication handling added.
79 <col> 0.17 </col> <col> Brenno de Winter </col> <col> August 11th 2002 </col>
81 <para>* Description of the client-side for communications.</para>
82 <para>* Several updates to the database descriptions, drawings added.</para>
83 <para>* More work on the installation chapter.</para>
84 <para>* Created an extra field to the unprocessed_log table and added
85 a between the table service and unprocessed_log.</para>
89 <col> 0.18 </col> <col> Brenno de Winter, Peter Roozemaal </col> <col> August 15th 2002 </col>
91 <para>* Review done by Peter Roozemaal: adjusted intro and several clarifications made</para>
92 <para>* Arjen Baart: Adjustments to database drawings</para>
93 <para>* New installation recommendations</para>
97 <col> 0.19 </col> <col> Arjen Baart </col> <col> August 27 2002 </col>
108 <heading>Aim of the project.</heading>
111 The number of log-files in a system and the tools in general do not make
112 monitoring a system simple. Quite often there is so much information that
113 attention for logfiles seems to fade away. For that reason monitoring routers
114 and clients is often not an option. Instead of timely detection of problems,
115 logs more often are used to find out what went wrong. When a system is
116 under attack early signals can often easily be detected<footnote>Just as in
117 real life there a signals that things are not going in the right direction.
118 For the attacks on September 11th 2001 there were many signals available
119 that could to have led to early detection: warnings of several intelligence
120 agencies, warnings within the FBI, flight schools that report strange
121 customers that want to steer a plane and don't seem to care about take
122 off and landing, people opening accounts under fake names.</footnote>
123 and preventive measures could have been taken if the time was only available.
127 The Gnucomo project is meant to make pro-active monitoring of computers
128 and devices easier. It will contain a set of applications that will
129 retrieve all types of monitoring information from devices and place
130 it into a database. Devices can be server computers, desktop computers,
131 PBX'es or other systems. By running checks the manual process of
132 watching log files can be reduced. Also an intelligent script can
133 see things that a human being will easy overlook. Gnucomo won't
134 relieve an administrator of all manual work on log-files, but will
135 increase the changes on actual monitoring.
138 With all this data being available at one central location the gnucomo-server
139 acts as some kind of black box for computer systems. If something does
140 happen the evidence will be available at a remote location available
141 for exploration<footnote>This analogy is based on a remarkable anecdote:
142 One a trip to US I spoke to a 747-captain of Air France. While talking
143 over several subjects we touched security. When we went some deeper I
144 touched the subject gnucomo and he told me that Air France was doing
145 the very same with real black boxes. By sending all the data to Paris
146 errors can be detected earlier and be resolved. In any less fortunate
147 case the cause of the crash might be detected sooner (or fuller).
148 For me this was a signal there is a point in working gnucomo because
149 the analogy is valid.</footnote>. Forensics will be made easier.
150 Also the collected data is available from multiple locations make
151 it easier to found more about an attack. The change that you overlook
152 things will be reduced.
155 Based on the entered data all sorts of analysis will be performed to discover
156 abnormalities a normal maintenance tool or IDS wouldn't be looking at.
157 An example could be a website in Dutch that suddenly obtains a lot of
158 attention from Greek visitors (based on the location of their
159 IP<footnote>That IP could also warn for other things like: excessive
160 data traffic from wireless connections at times that you wouldn't be
161 expecting traffic at all, absence of traffic when you would be expecting
162 some traffic at least or even what article is liked in which part of the world,
163 what regions poses the highest threat to the security of the system (based
164 on the location of the IP address).</footnote>). These abnormalities will
165 be presented as user-friendly as possible to increase awareness of the
166 state of the system. By doing that the system can also be used for more
167 complex analysis. One than can look at long-term trends like hacking
168 attempts that take place, new exploits that are tried all of a sudden
169 or signs of distributed attacks or a certain pattern of attempts<footnote>A portscan
170 that last three days is hard to detect with a real-time IDS,
171 while gnucomo would discover this anyhow. With correct intelligence
172 one portscan from multiple IP-addresses can be related.</footnote>.
175 Also extra data will be gathered where ever possible to save time to
176 the administrator. If IP address attract attention of gnucomo the next
177 logical step would be to use tools like dig, whois and visiting arin-related
178 websites. This data will automatically be collected in an early stage and
179 stored in the database.
182 The results will be gathered in a warning system.
183 Those warnings will be presented to the administrative person
184 who is responsible for that particular machine or network.
185 Having multiple systems in the system can add to the intelligence that
186 can be gathered. The interface will be web-based and aimed at user-friendliness.
189 Since multiple systems can enter data into the Gnucomo database more
190 intelligent hardware and security detection can be done.
191 When things do go wrong Gnucomo contains as much information as
192 possible to figure out what happened and assist in the forensics.
193 Since research on the signals afterwards is broader more attention
194 will be given as much data as possible and do less filtering.
197 With the data in the database also policies can be checked automatically
198 retro-actively so that the security leaves some room to stretch some rules.
199 This may sound not logic, because one of the main functions of security is
200 to enforce rules. But some rules are made with the different meanings.
201 For instance: a rule may be that private browsing isn't allowed.
202 The background of such a rule might be to try and reduce the amount
203 of data traffic (too many people downloading mp3's, or people not
204 getting to work anymore). By monitoring that specific fact
205 (bandwidth spent on non-business related Internet use)
206 it's possible to be relaxed on that rule and enable many good-willing
207 users reading his/hers daily newspaper.
210 The scope of the project is clearly limited to monitoring and not to
211 offer automated maintenance or web-based maintenance.
212 There are other projects currently being able to provide that
213 functionality. We will focus on intelligence and user-friendliness
214 of representation of facts presented. A warning should trigger
215 an administrator to get up and do something using the tools he or she values the most.
218 Also we are not aiming to replace great tools like SNORT as a real-time IDS.
219 These tools can do thing, that in the beginning won't be a part of gnucomo
220 out of performance reasons. Also there is no need to duplicate what they
221 already did. If that energy is placed in intelligent we're very complimentary.
222 Gnucomo can however be a reality check on an existing NIDS (Network Intrusion
223 Detection System). For instance if warnings keep coming it may be time to
224 rethink the rules that have been set.
228 This evolves to the following list of functions gnucomo can provide:
235 Detecting hacker attempts
238 Early detection of system failures
241 Exhaustion of system resources
244 Capacity planning for future expansion
247 Spotting bottlenecks in a system.
250 Verifying system integrity
253 Assistance with troubleshooting
256 Perform post-mortem forensics
259 Incident response system.
265 <heading>Decisions for the overall system.</heading>
266 <para>In order to get the project running we have to make some decisions before we can start. Of course are the decisions always open for review, but initially our main aim is to get a system running. This doesn't mean that we allow a lesser architecture, but more that we create an environment that will lead to results. </para>
267 <para>The following decisions apply to the system in general:</para>
270 The major part of the system will be used for security features.
271 The solution itself has to be secure.
274 <para>In general we strive to be as platform and application independent as possible. However to achieve software to get ready and to assure progress some selections will have to be made excluding options for applications<footnote>An example is in the database. By using stored procedures and triggers MySQL cannot be used. However the data integrity at that point is more important than the ability to use MySQL.</footnote>. Where possible we will enable ports to other applications and platforms.</para>
277 The computers collecting the data will only be Linux machines, with future support for other Unices. However it is not aim our to port this part of the project to other platforms just now.
280 The database system will make heavy use of stored procedures and triggers and thus lock out some less feature-full database.
283 Although we're not married to a database system initially this will be PostgreSQL only so that we can build for results. The code however shouldn't be build to deliberately lock outer systems. Other database that might be interesting to add: DB2, Oracle (if the rainfall of security advisories seems to be over) and Informix.
286 The interface for the user will be a web-interface written in PHP with PostgreSQL-database access. Despite the fact that initially this will be the preferred way to communicate with our system, other interfaces are welcome and should be supported.
289 The technologies used for the daemons on the central site and remote site are open for discussion. A decision is made when it is clear what exactly will be needed to code.
292 The original logfiles on systems will not be harmed in any way, but will be saved the way they presented to gnucomo.
295 In the database processed data as well as raw data will be stored.
298 Our main aim is to ease the life of the administrator when dealing with the symptoms of a machine so that he doesn't miss important notifications. The project will be made around detection. We won't focus on making a maintenance applications but solely on monitoring, because other applications like webmin or linuxconf do already deliver such functionality. We are complementary to those applications. This doesn't mean that the system cannot send SMS'es, e-mails or make alarms sound.
301 Any output of the logbook will be stored and sent within a certain interval which can be set. By doing that the mechanism will not flood the total mechanism and overload machines.
304 When applications for gnucomo we will try and do the non-server part as platform independent as possible. This in order to prevent writing a same application multiple times. For instance one for Unices, one for Macintosh and one for Microsoft.
307 To ensure the quality of software and to prevent any unwanted functionality rolling into the project all code will be reviewed by one of the lead members before it is accepted. Since this project is aimed at throughput speed no formal procedures will be enforced, but we promise not to let software in that hasn't been checked.
314 <heading>Overall system.</heading>
316 <para>The overall systems aims to make maintenance data better accessible and by doing that lowering the barrier to be on alert for intrusions, system failure and other misery that can happen to computer systems. Also more systems can be monitored and even focus can be placed on desktop computers, something that nowadays rarely happens. Since the solution is only aimed at monitoring (with some responses possible) other people can watch their system(s) without being Administrator<footnote>This can be interesting for people using this service and not doing their own maintenance (smaller companies). If technical action needs to be taken a warning can be send to an administrator. This saves costs and time.</footnote>.</para>
317 <para>The main system will know to sides:</para>
320 <item> Central Application - server </item>
321 <item> Monitored System - client </item>
324 <para>The project has been setup as a two sided system in order to be able to guard many computers at the same time. However it may be obvious that both sides of the application can very well be installed on a single system.</para>
325 <para>When events<footnote>A signal can be the outcome of process that finished, logbook entries, warnings from intrusion detection systems, etc. </footnote> happen they will be stored in a file. When this file is delivered to a certain directory a daemon will detect this and start the transfer of the file. The file will be transferred to the central application or the client. This transfer will be triggered immediately after a process has finished or with a certain time-interval when it concerns a logbook. All output will be placed in a directory where the daemon detects it and ensures the transport. For transport currently only two mechanisms will be supported:</para>
328 Encrypted file copy relying on the SSH protocol. On Unix-based systems this will scp (secure copy).
331 E-Mail. The e-mail is encrypted and signed using gpg and then sent to the server. Since the file format will identify the type-of-output the Subject-field of the e-mail is not really needed.
336 <heading>Priority mechanism.</heading>
337 <para>Each notification has a certain priority that requires a different handling of the issue. How each priority will be dealt with is something that can be set per server. The priority mechanism is a simple system of five categories (can be more or less). </para>
342 <heading>The dataflow diagram.</heading>
343 <para>The main dataflow will be as follows.</para>
345 <picture src="dataflow.png" eps="dataflow" scale="0.7"/>
352 <heading>Central Application: signal handler.</heading>
357 <picture src="architecture.png" eps="architecture"/>
358 Illustration 1 Basic overview of the processes on the server.
361 On one machine signals from the network will come in. These signals can be logfiles, result files from applications, remarks entered by the administrator or whatever. Data delivery takes place into a certain directory. A daemon detects that data has come in and will enter it into the database. Once in the database stored procedures and triggers will recognize certain behavior and generate alerts. The user responsible for the server will be confronted with the alerts and can mark them, add comments to it or ignore them. Also it will be possible to do intelligent analysis on not so logical relations per computer or across computers<footnote>A good example could be a portscan on a system that takes place during a week. Normal a simple portscan takes place in a couple of minutes and will thus be easy to detect. By taking a longer period such a scan is harder to detect. </footnote>. Such scripts make detection possible, that is too time consuming to do during processing of the data. </para>
364 <heading>Data processing.</heading>
365 <para>The data processing has four tasks:</para>
368 <para>Extracting data from e-mail and store it in the input-buffer. This can be done by a daemon that checks the e-mail<footnote>It would be logical to place an e-mail server like sendmail or postfix on the server. In many cases the monitored computer will be featuring a SMTP daemon. If a system is comprimised no evidence that comes through will be really trustworthy. By sending it to another machine all evidence that is available will have left the system the moment a hack takes place.</footnote> with a certain interval extracts the e-mails and leave the content in a file in the input buffer. This daemon has only rights to write to the directory it has to write to. <emph>We may as well have the email captured directly by a program with a "gnucomo: |/usr/local/bin/gnucomo-input" - like alias.</emph></para>
371 <para>Detect files in the input buffer decrypt the content and verify the signature. Another daemon will see the log-files and starts checking if the origin is correct (by verifying the signature) and decrypting the content. The legible files will be processed by entering the data into the database.</para>
374 <para>The database will accept the data and perform a certain number of checks as the data comes in. During the processing of the data abnormalities will be detected and entered into a notification table. The database system will also carry out more complex tasks on given moments in time and enter them as well in the notification table.</para>
377 <para>The database system must be able to undertake action when high alerts are being entered into the database. This can be a couple of things to begin with: send an e-mail or SMS. In a later stage other technologies may be added as well. In this scheme we also make a possibility to escalate problems when no action is taken in a certain amount of time.</para>
382 <heading>Web interface.</heading>
383 <para>The web interface will used to interact with the user. The interface should be intuitive and easy to understand. More important warnings should directly draw attention. The user must be able to perform settings so that warnings can be rated differently than the original settings. </para>
384 <para>The interface will do the following things:</para>
387 <para>Show a list of warnings that are currently open.</para>
390 <para>It must be possible to sort the list on all the fields shown.</para>
393 <para>Deliver detailed information (logbook entries) upon request that have led to the warning. </para>
396 <para>Undertake certain actions like sending <reference href="mailto:abuse@internet-provider.net">abuse@internet-provider.net</reference> e-mails with information.</para>
399 <para>Monitor actions on outstanding issues. </para>
407 <heading>Sending messages to the central gnucomo system.</heading>
409 <para>One of the main tasks is getting all the messages to the database. Ultimately gnucomo will support multiple ways of receiving the data. Basically anything goes, but two mechanisms will be supported in the project to begin with:</para>
412 <para>E-mail. Messages and elements from logfiles will be sent through e-mail.</para>
415 <para>File copy. Using technologies like scp or ftp (not preferred due to the insecure nature) can place files directly in the receiving directory. </para>
420 <heading>Ensuring data integrity.</heading>
421 <para><TO BE DESCRIBED></para>
425 <heading>Directories and filenames on the server.</heading>
428 Files will be dealt with as if gnucomo were a user (actually there will
429 be a user gnucomo). The files will be placed in the <code>/home/gnucomo/</code> directory.
430 Only <code>/home/gnucomo/incoming/dropbox/</code> can be used to save data in
431 from external systems. All other directories are only available for the user gnucomo.
432 The filename will represent the data that is received. The details are seperated with
433 underscores. When data is sent by e-mail the filename will be written in the first
434 line of the e-mail. A typical filename looks like this:
438 <strong>3_messages_20020807235208_1.asc</strong>
442 the logic behind this is following:
446 <emph>urgency_typeofmessage_timestamp_objectid.typeoffile.</emph>
449 <table cpos='lp{10cm}'>
452 <para>Part of filename</para>
455 <para>Explanation</para>
463 <para>This indicates the urgency of the file. The lower the number the higher it will rank when an overview is given. Standard files are ranked value 3. The ranking works as follows:</para>
464 <para>* 1 <strong>Urgent flash message.</strong> Something urgent needs to be reported. This is only used for emergencies like serious alarms.</para>
465 <para>* 2 <strong>Rapid delivery.</strong> An important message has to get through that is more important than normal delivery, but is not top priority like an emergency.</para>
466 <para>* 3 <strong>Normal.</strong> This is used in most case for normal messages.</para>
467 <para>* 4 <strong>Low priority.</strong> This is data would be useful to place into the system as nice to have.</para>
472 <para>TypeOfMessage</para>
475 <para>This is an indicator what type of data is delivered to gnucomo. There are several categories:</para>
476 <para>* <strong>cron.</strong> This data comes from the /var/log/cron-log (unix).</para>
477 <para>* <strong>httpaccess.</strong> This data comes from the normal http-log (Apache).</para>
478 <para>* <strong>httperror.</strong> This data comes from the http_error-log (Apache).</para>
479 <para>* <strong>maillog.</strong> This data comes from the /var/log/maillog (unix).</para>
480 <para>* <strong>messages.</strong> The data delivered here comes from the /var/log/messages file (unix)</para>
481 <para>* <strong>text.</strong> This file contains a message in plaintext generated by a gnucomo-client and can be anything. It will be dealt with as plaintext.</para>
486 <para>Timestamp</para>
489 <para>The timestamp is made in war-log (YYYYMMDDHHMMSS) format. The timestamp is generated on the client in GMT (to discover discrepancies in timing).</para>
494 <para>Objectid</para>
497 <para>The objectid is the id that is used within the central gnucomo system to recognize the client. Based on this entry the database can link the data to the correct object. Also gpg can obtain the correct e-mail address (by running a query in the database) for verification of the signature of the crypted message.</para>
502 <para>TypeOfFile</para>
505 <para>Indicates the file type:</para>
506 <para>* <strong>asc.</strong> Plaintext ASCII</para>
507 <para>* <strong>gpg.</strong> gpg-crypted data.</para>
508 <para>* <strong>und.</strong> Undertermined data. When files come in by e-mail it is not 100% sure if they are crypted or not. These data has first to be analyzed before it is moved to the correct queue. </para>
514 <heading>Directory for incoming data.</heading>
516 <para>For incoming messages there will be separate directories (<code>/home/gnucomo/incoming/</code>)for:</para>
519 <para>Dropbox. This directory is ready to receive data from all sorts of systems. This directory is world writeable (<strong><emph>but not deleteable!</emph></strong>): <code>/home/gnucomo/incoming/dropbox/</code></para>
522 <para>Encrypted messages. In this directory messages will be placed that are still gpg-crypted. In this directory the files await decryption and verification of the signature. This directory is: <code>/home/gnucomo/incoming/crypted/</code></para>
525 <para>Decrypted with errors. During the decryption exercise anything can go wrong. Decrypting can fail or the signature may show errors. If this happens the original message is moved to a different directory: <code>/home/gnucomo/incoming/cryptfail/</code></para>
528 <para>Inbox. After successful decryption the decrypted message is moved to the inbox. Data that is not encrypted can be moved here from the dropbox after certain verifications. The directory is: <code>/home/gnucomo/incoming/inbox/</code></para>
531 <para>Processed. After processing the data the file is stored in the directory processed for further reference for a certain amount of time. The directory is: <code>/home/gnucomo/incoming/processed/</code></para>
534 <para>Archive. After a certain period the files will be archived. Since not every system will archive everything this directory may also be a symbolic link to <code>/dev/null</code>. The used directory is: <code>/home/gnucomo/archive/</code></para>
540 <heading>Directory for outgoing data.</heading>
542 <para>For outgoing messages the directory <code>/home/gnucomo/outgoing</code> will be used. This directory knows a couple of sub directories:</para>
546 <para>Dropbox. This directory is used by the central gnucomo system to place outgoing messages in. The used directory is: <code>/home/gnucomo/outgoing/dropbox/</code></para>
549 <para>Outbox. After processing the message (including signing and encrypting when applicable) the messages are placed in the outbox: <code>/home/gnucomo/outgoing/outbox/</code></para>
552 <para>Processed. After processing the data the file is stored in the directory processed for further reference for a certain amount of time. After sending a message a confirmation will be made that is saved as an incoming message. The directory is: <code>/home/gnucomo/outgoing/processed/</code></para>
555 <para>Archive. After a certain period the files will be archived. Since not every system will archive everything this directory may also be a symbolic link to <code>/dev/null</code>. The used directory is: <code>/home/gnucomo/archive/</code></para>
562 <heading>Overview. </heading>
564 <para>The total directory-structure looks like this:</para>
568 /home/gnucomo/archive
569 /home/gnucomo/incoming
570 /home/gnucomo/incoming/crypted
571 /home/gnucomo/incoming/cryptfail
572 /home/gnucomo/incoming/dropbox
573 /home/gnucomo/incoming/inbox
574 /home/gnucomo/incoming/processed
575 /home/gnucomo/outgoing
576 /home/gnucomo/outgoing/dropbox
577 /home/gnucomo/outgoing/outbox
578 /home/gnucomo/outgoing/processed
585 <heading>Directories on the client-side.</heading>
587 <para>On the client-side the files that need to be transmitted will be placed in a directory system as well. In the future this system may not be in use at all devices (routers, certain MS Windows-machine, IP Telephones, etc.). For those systems a different mechanism will become be described here. Initially we focus on Linux systems that will enter data into the database.</para>
588 <para>The filename convention will be totally identical to the filename convention on the server, since this the same mechanism.</para>
589 <para>To facilitate gnucomo client and server on one and the same machine the gnucomo-client should have a different default user. For this purpose the user <strong>gcm_client</strong> will be created. </para>
592 <heading>Directory for incoming data.</heading>
593 <para>For incoming messages there will be separate directories (<code>/home/gnucomo/incoming/</code>)for:</para>
596 <para>Dropbox. This directory is ready to receive data from all sorts of systems. This directory is world writeable (<emph><strong>but not deleteable!</strong></emph>): <code>/home/gcm_client/incoming/dropbox/</code></para>
599 <para>Encrypted messages. In this directory messages will be placed that are still gpg-crypted. In this directory the files await decryption and verification of the signature. This directory is: <code>/home/gcm_client/incoming/crypted/</code></para>
602 <para>Decrypted with errors. During the decryption exercise anything can go wrong. Decrypting can fail or the signature may show errors. If this happens the original message is moved to a different directory: <code>/home/gcm_client/incoming/cryptfail/</code></para>
605 <para>Inbox. After successful decryption the decrypted message is moved to the inbox. Data that is not encrypted can be moved here from the dropbox after certain verifications. The directory is: <code>/home/gcm_client/incoming/inbox/</code></para>
608 <para>Processed. After processing the data the file is stored in the directory processed for further reference for a certain amount of time. The directory is: <code>/home/gcm_client/incoming/processed/</code></para>
615 <heading>Directory for outgoing data.</heading>
617 <para>For outgoing messages the directory <code>/home/gcm_client/outgoing</code> will be used. This directory knows a couple of sub directories:</para>
620 <para>Dropbox. This directory is used by the central gnucomo system to place outgoing messages in. The used directory is: <code>/home/gcm_client/outgoing/dropbox/</code></para>
623 <para>Outbox. After processing the message (including signing and encrypting when applicable) the messages are placed in the outbox: <code>/home/gcm_client/outgoing/outbox/</code></para>
626 <para>Processed. After processing the data the file is stored in the directory processed for further reference for a certain amount of time. After sending a message a confirmation will be made that is saved as an incoming message. The directory is: <code>/home/gcm_client/outgoing/processed/</code></para>
632 <heading>Overview. </heading>
633 <para>The total directory-structure looks like this:</para>
637 /home/gcm_client/archive
638 /home/gcm_client /incoming
639 /home/gcm_client/incoming/crypted
640 /home/gcm_client/incoming/cryptfail
641 /home/gcm_client/incoming/dropbox
642 /home/gcm_client/incoming/inbox
643 /home/gcm_client/incoming/processed
644 /home/gcm_client/outgoing
645 /home/gcm_client/outgoing/dropbox
646 /home/gcm_client/outgoing/outbox
647 /home/gcm_client/outgoing/processed
654 <heading>Getting data into the database.</heading>
655 <para>The files in the /home/gnucomo/incoming/inbox/ should be stored in the database. For this purpose there is a table <emph>unprocessed_log</emph>. The data of the filename as well as the content of the file need to be placed in one record.</para>
656 <para>There are some fields that have to be addressed immediately:</para>
659 <para>Servicecode: The servicecode will be obtained out of the filename the is the type_of_message-field in the filename. </para>
662 <para>Objectid: This data is given in the filename it can be found in the <emph>objectid</emph>-part of the filename.</para>
665 <para>Logdata: The data is saved as follows: filename (unaltered) <CR>textual data of the file.</para>
668 <para>The daemon application that delivers the data is called <strong>gcm-input</strong>. It performs the following steps with no extra functionality:</para>
672 <para>Detect if a file is available.</para>
675 <para>Write the data in the database.</para>
679 <para>To write the data in the database a database user gcm_input exists. This user has only the right to enter data into the database. There are no deletion, update or select-permissions.</para>
684 <heading>The database.</heading>
686 <para>The database is the heart of the system. It will contain all event-data of multiple computers. The intelligence that can be performed on the database will be placed there. To do this as integrated as possible stored procedures and triggers will be used. To begin with we have selected checks to be performed that will be expanded throughout time.</para>
687 <para>Since the gnucomo database and files contain sensitive data security measures have to be in place. Several database users will be exist that have limited rights to perform a certain task ensuring some protection against unauthorized access. However these mechanisms on it's own will work fine, bad maintenance may still screw-up good security. Good database maintenance is needed. For the gnucomo the protection of the valid authentic nature of the data in the database has our highest priority.</para>
688 <para>A <emph>table-name</emph> in this chapter is written in cursive writing.</para>
691 <heading>Database conventions.</heading>
692 <para>The database will be built according the following conventions:</para>
695 <para>All names for tables, indexes and fields will be written in lower case and will be singular. Spaces in names are not allowed.</para>
698 <para>If a table contains field referring to other tables the mother-tables are mentioned in alphabetical order with an underscore between the table-names. So <emph>object</emph> and <emph>user</emph> will make a third table <emph>object_user</emph></para>
701 <para>A data access user (being the interface) is not allowed to write to the log-entries and the warnings. To change the state of a warning a stored procedure will do so by having a different entry in a table. This should make it possible to discover who did what at which moment in time.</para>
704 <para>The name of two related fields that make the relationship between two tables will be the same to avoid confusion.</para>
710 <heading>Database design.</heading>
712 <para>In the design we anticipate to deliver an as best as possible database performance. That means that data that needs to be entered occasionally can be heavily indexed to increase performance. However data that is mainly stored will only be indexed marginally to have the best possible performance on data entry. If during one of the checks on data-entry a notification is made, the information related to that notification will be indexed very well to increase retrieval performance. What we will try to avoid is that the user interface will cause full table scan and affect the performance of the overall system dramatically. One of the techniques to increase performance on display is to work with views. So where it is feasible we will use them.</para>
713 <para>In general the database must also be maintained well. So daily maintenance scripts should keep the performance good<footnote>PostgreSQL seems to have very good features to do proper maintenance and they have to be exploited to the full extend.</footnote>. </para>
716 <heading>Actual design.</heading>
718 <para>In this part of the chapter the tables will be explained and then described with all important elements. Per table a sub-chapter will be created. Each table will have a table design, indexes, relationships and the required data (for those tables where the data itself is relevant in the design or sample data (for those cases where no set data is needed). For the relationships beside a description the subset of the total schema has been incorporated in the document so that it is more clear what exactly is meant. Due to the complex nature of the design those drawings sometimes will seem funny.</para>
719 <para>For the fieldtypes the types of PostgreSQL will be used. These values can be found in Chapter 3 of the PostgreSQL User Manual (<reference href="http://www.postgresql.org/">http://www.postgresql.org</reference>). </para>
720 <para>For indexes primary keys are always <emph>unique</emph> and called primary key in the name. Since unique indexes within PostgreSQL only work on B-Tree indexes (which is default) we will use B-Tree for all indexes. In cases where an exception is made the used type of index will be indicated in the characteristics. A footnote will explain why a different type of index has been selected.</para>
723 <heading>action</heading>
726 In the table action all recognized actions that can be taken are stored. Several actions will lead to change in <emph>statuscode</emph>. However this doesn't apply to all actions<footnote>A status NEW of a notification that cannot be dealt with automatically will <strong>not</strong> change before a user looked at it.</footnote>. Actions take place through background processes and the interface. This table mainly is used for retrieval so indexing will be done as much as possible.
730 <heading>The fields.</heading>
733 The table below describes the fields:
737 <table cpos='lllp{6cm}'>
739 <col> Fieldname </col> <col> Fieldtype </col> <col> Size </col>
745 <col> actionid </col> <col> Bigserial </col> <col> 8 </col>
747 Autonumber bigint (eight bit)
751 <col> actionname </col> <col> Text </col> <col> <para/> </col>
753 Short descriptive name for the type of action
757 <col> statuscode </col> <col> Varchar </col> <col> 3 </col>
759 New status that will be given to a notification when this action takes place.
763 <col> description </col> <col> Text </col> <col> <para/> </col>
765 A longer description (without limit) on the action.
774 <heading>The indexes.</heading>
777 Indices for this table are:
781 <col> Indexname </col> <col> Field </col> <col> Characteristics </col>
784 <col> act_pk </col> <col> actionID </col> <col> Primary key </col>
787 <col> act_actionname </col> <col> actionname </col> <col> Unique </col>
790 <col> act_statuscode </col> <col> statuscode </col> <col> <para/> </col>
797 <heading>The relationships.</heading>
800 Relationships with other tables:
802 <table cpos='llp{7cm}'>
804 <col> Fieldname </col> <col> Remote Table </col> <col> Remarks </col>
807 <col> actionid </col> <col> action_notification_user </col>
809 Each action that takes place will be log. The Actionid will bring
810 classification to the individual records. This relationship has to be enforced.
814 <para>In the model this looks like this:</para>
816 <picture src="erd-action.png" eps="erd-action"/>
821 <heading>Default data in table.</heading>
824 The data in this table is standard for the system and part of the design.
825 The user cannot change this or add value to it.
828 <table cpos='llp{4cm}p{6cm}'>
830 <col> Actionid </col> <col> Actionname </col> <col> Statuscode </col>
836 <col> 1 </col> <col> Entry in the system </col> <col> NEW </col>
838 This indicates that a notification is entered into the system. The status is a <strong>NEW</strong>.
842 <col> 2 </col> <col> Displayed to user </col> <col> OPN </col>
844 The notification has been displayed to the user. It is not guaranteed that the user has read the notification, but he/she should be aware of it. The status will now be changed to <strong>OPEN</strong> if the current status is <strong>NEW</strong>.
848 <col> 3 </col> <col> Remarks added </col> <col> PEN </col>
850 Remarks have been added to the notification. The status has now been changed to <strong>PENDING</strong>.
854 <col> 4 </col> <col> Priority changed manually </col> <col> PEN </col>
856 The priority of the notification has been changed by the user. The new status is now <strong>PENDING</strong>.
860 <col> 5 </col> <col> Priority changed automatically </col> <col> PEN </col>
862 The priority of the notification has been changed by the system. If the status is not <strong>OPEN</strong> or <strong>NEW</strong> the new status is become <strong>PENDING</strong>.
866 <col> 6 </col> <col> Action taken </col> <col> PEN </col>
868 A action has been taken. The status is now <strong>PENDING</strong>.
872 <col> 7 </col> <col> Assignment to user </col> <col> PEN </col>
874 A notification has been explicitly assigned to another user. The status is now <strong>PENDING</strong>.
878 <col> 8 </col> <col> More information or research needed. </col> <col> INV </col>
880 The notification is relevant and will be handled, however more information or research will be needed. The status is <strong>UNDER INVESTIGATION</strong>.
884 <col> 9 </col> <col> Make output reference. </col> <col> REF </col>
886 Automated output from an object has been sent to gnucomo. The input has been identified as a valid reference for future. Status is now <strong>REFERENCE</strong><footnote>A reference is used to find differences in output. This feature must reduce the number of wrongful alerts. Only if a change has taken place a notification is generated. First time reports will always generate a notification. By signing this off the system will be silent again.</footnote>.
890 <col> 10 </col> <col> Job output no longer reference. </col> <col> CLS </col>
892 By making a newer job output reference this output has been obsoleted. Since once it was a reference the notification can be closed. The new status for the notification is now <strong>CLOSED</strong>.
896 <col> 11 </col> <col> Action taken please verify. </col> <col> VRF </col>
898 An action has been taken and things should have been resolved. Before the notification can be closed a verification has to be done. New status is now <strong>VERIFY</strong>.
902 <col> 12 </col> <col> Action not accepted. </col> <col> PEN </col>
904 A check has been done and the results were not good. New verification is needed. New status is now <strong>PENDING</strong>.
908 <col> 13 </col> <col> Action verified </col> <col> CLS </col>
910 The verification for the action has been done and the action is approved. The new status is now <strong>CLOSED</strong>.
914 <col> 14 </col> <col> E-mail sent </col> <col> OPN<footnote>Only if the status is <strong>NEW</strong>.</footnote> </col>
916 An e-mail has been sent.
920 <col> 15 </col> <col> SMS sent </col> <col> OPN<footnote>Only if the status is <strong>NEW</strong>.</footnote> </col>
926 <col> 16 </col> <col> Fax sent </col> <col> OPN<footnote>Only if the status is <strong>NEW</strong>.</footnote> </col>
932 <col> 17 </col> <col> Log-entries shown </col> <col> XXXX </col>
934 The log entries have been shown. No changes to the status made.
938 <col> 18 </col> <col> Notification closed </col> <col> CLS </col>
940 Notification has been closed.
944 <col> 19 </col> <col> Notification reopened </col> <col> OPN </col>
946 Notification has been re-opened
955 <heading>Action_notification_user.</heading>
958 In the table action_notification_user each step that is taken regarding a
959 notification is logged. This table is very important for later use if
960 something goes wrong, but is also relevant for the interface.
961 All steps of a notification can be traced here.
962 There will be a lot of entries here, but retrieval is more crucial for
963 performance than data entry. So indexing on logic fields is very relevant.
964 Processing might be slower, but that's worth the price.
968 <heading>The fields.</heading>
971 The table below describes the fields:
974 <table cpos='lllp{6cm}'>
976 <col> Fieldname </col> <col> Fieldtype </col> <col> Size </col>
982 <col> actionstepid </col> <col> Bigserial </col> <col> 8 </col>
984 Autonumber bigint (eight bit)
988 <col> actionid </col> <col> Bigint </col> <col> 8 </col>
990 Reference to the action that is being registered here.
994 <col> username </col> <col> Text </col> <col> <para/> </col>
996 The username of the user that is involved in the action.
1000 <col> notificationid </col> <col> Bigint </col> <col> 8 </col>
1002 Reference to the notification.
1006 <col> timestamp </col> <col> Timestamp </col> <col> <para/> </col>
1008 The time when the action has been entered into the system. This is the time without the timezone<footnote>The timestamp without time has been selected, since this is the system time. To have the system functioning without any physical borders one of the settings on the system is time in GMT (UTC). This ensures also the added value of the system log.</footnote>. This will be automatically added when the record is added into the database.
1012 <col> statuscode </col> <col> Varchar </col> <col> 3 </col>
1014 The status of the Notification
1018 <col> remarks </col> <col> Text </col> <col> <para/> </col>
1020 Remarks entered by the user if it concerns a manual action or the text of automatically generated warnings.
1028 <heading>The indexes.</heading>
1031 The table is indexed on the following fields:
1036 <col> Indexname </col> <col> Field </col> <col> Characteristics </col>
1039 <col> anu_pk (action_user_actionstepid_key) </col> <col> actionstepid </col>
1040 <col> Primary key </col>
1043 <col> anu_actionid </col> <col> actionid </col> <col> <para/> </col>
1046 <col> anu_username </col> <col> username </col> <col> <para/> </col>
1049 <col> anu_notificationid </col> <col> notificationid </col> <col> <para/> </col>
1052 <col> anu_timestamp </col> <col> timestamp </col> <col> <para/> </col>
1055 <col> anu_statuscode </col> <col> statuscode </col> <col> <para/> </col>
1061 <heading>The relationships.</heading>
1063 <table cpos='llp{7cm}'>
1065 <col> Fieldname </col> <col> Remote Table </col>
1066 <col> Remarks </col>
1069 <col> actionid </col> <col> action </col>
1071 Indicates the action that has been taken. The relationship has to be enforced.
1075 <col> notificationid </col> <col> notification </col>
1077 Each action that takes place is registered in this table. By using the notification the relevant notification. The relationship has to be enforced.
1081 <col> username </col> <col> user </col>
1083 Each step in the process has to be related to the user. If the system itself generates an action the user will be <strong>gnucomo</strong><footnote>This implies that the system automatically has an username gnucomo.</footnote>.
1089 In the model this looks like this:
1092 <picture src="erd-anu.png" eps="erd-anu"/>
1098 <heading>Sample data.</heading>
1101 Since no data is delivered automatically a couple of sample records are shown here.
1104 <table cpos='llllllp{4cm}'>
1106 <col> Actionstepid </col> <col> Actionid </col> <col> Notificationid </col>
1107 <col> Username </col> <col> Timestamp </col> <col> Status </col>
1108 <col> Remarks </col>
1111 <col> 1 </col> <col> 1 </col> <col> 1 </col> <col> Gnucomo </col>
1112 <col> 2002-07-14 16:14:09 </col> <col> NEW </col>
1114 Gnucomo detected a portscan
1118 <col> 2 </col> <col> 5 </col> <col> 1 </col> <col> Gnucomo </col>
1119 <col> 2002-07-14 16:14:09 </col> <col> NEW </col>
1125 <col> 3 </col> <col> 5 </col> <col> 1 </col> <col> Gnucomo </col>
1126 <col> 2002-07-14 16:14:09 </col> <col> OPN </col>
1128 <para>Automatic e-mail to user: <reference href="mailto:brenno@dewinter.com">brenno@dewinter.com</reference>:</para>
1129 <para>Gnucomo detected a portscan on system <reference href="http://gnucomo.dewinter.com/">gnucomo.dewinter.com</reference></para>
1133 <col> 4 </col> <col> 2 </col> <col> 1 </col> <col> Brenno </col>
1134 <col> 2002-07-14 16:18:09 </col> <col> OPN </col>
1136 Notification shown through webinterface.
1140 <col> 5 </col> <col> 17 </col> <col> 1 </col> <col> Brenno </col>
1141 <col> 2002-07-14 16:18:12 </col> <col> PEN </col>
1147 <col> 6 </col> <col> 4 </col> <col> 1 </col> <col> Brenno </col>
1148 <col> 2002-07-14 16:20:37 </col> <col> PEN </col>
1154 <col> 7 </col> <col> 3 </col> <col> 1 </col> <col> Brenno </col>
1155 <col> 2002-07-1416:21:58 </col> <col> PEN </col>
1157 After reviewing the logs I see a portscan. On very specific ports. More analysis needed.
1161 <col> 8 </col> <col> 3 </col> <col> 1 </col> <col> Brenno </col>
1162 <col> 2002-07-14 16:24:59 </col> <col> PEN </col>
1164 Services tables learns me that all services are aimed at Windows-based services. Attempts for platform specific expoits.
1168 <col> 9 </col> <col> 4 </col> <col> 1 </col> <col> Brenno </col>
1169 <col> 2002-07-14 16:25:03 </col> <col> PEN </col>
1175 <col> 10 </col> <col> 2 </col> <col> 1 </col> <col> Brenno </col>
1176 <col> 2002-07-14 16:30:09 </col> <col> PEN </col>
1178 Notification shown through webinterface.
1182 <col> 11 </col> <col> 3 </col> <col> 1 </col> <col> Brenno </col>
1183 <col> 2002-07-14 16:31:48 </col> <col> PEN </col>
1185 Portscan has finished and no other action seems to take place now.
1189 <col> 12 </col> <col> 18 </col> <col> 1 </col> <col> Brenno </col>
1190 <col> 2002-07-14 16:43:03 </col> <col> CLS </col>
1200 <heading>log & log_adv. </heading>
1203 To store the log-data there are two tables in use that have a one-on-one relationship. The logic behind this is the difference between raw-always needed data and the somewhat processed data to support basic retrieval. The last category isn't always used and when it's used it is redundant. Also the raw log is very important to the integrity of the system. For these reasons the processed data has been physically separated in a second table called <emph>log_adv</emph>. If needed a view will be available that combines the two tables. Despite the load indexing on <emph>log_adv</emph> will be done thoroughly.
1208 <heading>log.</heading>
1211 <heading>The fields of log.</heading>
1214 The fields in log are focussed around the raw data and the data needed to link this to other tables in the system.
1217 <table cpos='lllp{6cm}'>
1219 <col> Fieldname </col> <col> Fieldtype </col> <col> Size </col>
1225 <col> logid </col> <col> Bigserial </col> <col> 8 </col>
1227 Autonumber bigint (eight bit)
1231 <col> objectid </col> <col> Bigint </col> <col> 8 </col>
1233 Reference to the object that submitted this log entry
1237 <col> original_filename </col> <col> Text </col> <col> <para/> </col>
1239 This field refers to the filename that contained this entry. The original entries as received by the gnucomo-server (flat files). The files are sent in batches, which makes it very hard to find where the original logline is. This will enable to see the files to detect bugs in gnucomo if any occur. It may well be that in a later stage this functionality becomes obsolete.
1243 <col> servicecode </col> <col> Text </col> <col> <para/> </col>
1245 This field explains what service was recognized (for instance 'kernel, 'httpd' or 'smtp')
1249 <col> type_of_logid </col> <col> Bigint </col> <col> 8 </col>
1251 Reference to the table type_of_log that contains information on what type of log/report we have here (how gnucomo recognized it).
1255 <col> object_timestamp </col> <col> Timestamp </col> <col> 8 </col>
1257 Timestamp as has been written into the log.
1261 <col> timestamp </col> <col> Timestamp </col> <col> <para/> </col>
1263 The time when the action has been entered into the system. This is the time without the timezone<footnote>The timestamp without time has been selected, since this is the system time. To have the system functioning without any physical borders one of the settings on the system is time in GMT (UTC). This ensures also the added value of the system log.</footnote>. This will be generated upon entry into the database.
1267 <col> rawdata </col> <col> TEXT </col> <col> <para/> </col>
1276 <heading>The indexes.</heading>
1279 The indices of the table:
1284 <col> Indexname </col> <col> Field </col> <col> Characteristics </col>
1287 <col> log_pk (log_logid_key) </col> <col> logid </col> <col> Primary key </col>
1290 <col> log_objectid </col> <col> objectid </col> <col> <para/> </col>
1293 <col> log_original_filename </col> <col> original_filename </col> <col> <para/> </col>
1296 <col> log_servicecode </col> <col> servicecode </col> <col> <para/> </col>
1299 <col> log_type_of_logid </col> <col> type_of_logid </col> <col> <para/> </col>
1302 <col> log_object_timestamp </col> <col> object_timestamp </col> <col> <para/> </col>
1305 <col> log_timestamp </col> <col> timestamp </col> <col> <para/> </col>
1311 <heading>The relationships.</heading>
1314 Relationships with other tables:
1317 <table cpos='llp{6cm}'>
1319 <col> Fieldname </col> <col> Remote Table </col>
1325 <col> objectid </col> <col> object </col>
1327 This make the link from what object the logline came
1331 <col> type_of_logid </col> <col> type_of_log </col>
1333 Each logbook has a certain type of reporting. This explains what type of log was received (and thus which rules for detection was applied).
1337 <col> systemuser </col> <col> user </col>
1339 Links a registered user of an object to this log entry<footnote>Upon entry of an object most of the times the passwd-file (UNIX-systems) or the userlist will serve as the entrypoint of users. Non existing users will be added and will have to be verified by an administrator before this entry become definite.</footnote>.
1344 <para>In the model this looks like this:</para>
1347 <picture src="erd-log.png" eps="erd-log"/>
1353 <heading>The fields of log_adv.</heading>
1356 The fields of the table <emph>log_adv</emph> are shown below:
1359 <table cpos='lllp{6cm}'>
1361 <col> Fieldname </col> <col> Fieldtype </col> <col> Size </col>
1367 <col> logid </col> <col> Bigint </col> <col> 8 </col>
1369 Bigint (eight bit) 1-to-1 relationship with log
1373 <col> source_ip </col> <col> Inet </col> <col> <para/> </col>
1375 This is the IP-address (V4) of the host that sended the data.
1379 <col> destination_ip </col> <col> Inet </col> <col> <para/> </col>
1381 This is the IP-address (V4) of the host that was targetted.
1385 <col> mac_address </col> <col> Macaddr </col> <col> <para/> </col>
1387 This is the MAC-address logged
1391 <col> packetlength </col> <col> Int </col> <col> <para/> </col>
1393 The length of the packet
1397 <col> protocol </col> <col> Text </col> <col> <para/> </col>
1399 The protocol used for transmission(mostly TCP/UDP/ICMP).
1403 <col> source_port </col> <col> Int </col> <col> <para/> </col>
1405 The portnumber used at origin.
1409 <col> destination_port </col> <col> Int </col> <col> <para/> </col>
1411 The portnumber for the target
1415 <col> messageid </col> <col> Text </col> <col> <para/> </col>
1417 Messageid for e-mails
1421 <col> system_username </col> <col> Text </col> <col> <para/> </col>
1423 Username on the object
1427 <col> networkdevice </col> <col> Text </col> <col> <para/> </col>
1429 When this is about network-traffic the device that worked the data
1436 <heading>The indexes.</heading>
1439 The table is indexed on the following fields:
1444 <col> Indexname </col> <col> Field </col> <col> Characteristics </col>
1447 <col> loa_logid </col> <col> logid </col> <col> Primary key </col>
1450 <col> loa_source_ip </col> <col> source_ip </col> <col> <para/> </col>
1453 <col> loa_destination_ip </col> <col> destination_ip </col> <col> <para/> </col>
1456 <col> loa_mac_address </col> <col> mac_address </col> <col> <para/> </col>
1459 <col> loa_packetlength </col> <col> packetlength </col> <col> <para/> </col>
1462 <col> loa_protocol </col> <col> protocol </col> <col> <para/> </col>
1465 <col> loa_source_port </col> <col> source_port </col> <col> <para/> </col>
1468 <col> loa_destination_port </col> <col> destination_port </col> <col> <para/> </col>
1471 <col> loa_messageid </col> <col> messageid </col> <col> <para/> </col>
1474 <col> loa_system_username </col> <col> system_username </col> <col> <para/> </col>
1477 <col> networkdevice </col> <col> networkdevice </col> <col> <para/> </col>
1483 <heading>The relationships.</heading>
1486 There is only one relation with this table.
1489 <table cpos='llp{6cm}'>
1491 <col> Fieldname </col> <col> Remote Table </col>
1497 <col> Logid </col> <col> Log </col>
1499 This will make a link to the table <emph>log</emph>. The relationship is a one-on-one relationship.
1506 <heading>Sample data combined from log and log_adv.</heading>
1509 The sample data derrived here has been gathered in logs. Since the tablestructure is very long the representation is somewhat different:
1512 <table cpos='lp{8cm}'>
1514 <col> Fieldname </col> <col> Value. </col>
1517 <col> Logid </col> <col> 1 </col>
1520 <col> Objectid </col> <col> 1 </col>
1523 <col> Original_filename </col> <col> 7f0100.messages.20020714231801 </col>
1526 <col> Rawdata </col>
1528 Jul 14 18:16:42 webber kernel: IN=eth0 OUT= MAC=00:60:67:36:61:a5:00:90:69:60:c0:5d:08:00 SRC=193.79.237.146 DST=212.204.216.11 LEN=40 TOS=0x00 PREC=0x00 TTL=245 id=19308 DF PROTO=TCP SPT=36375 DPT=113 WINDOW=8760 RES=0x00 RST URGP=0
1532 <col> Type_of_logid </col> <col> 1 </col>
1535 <col> Timestamp </col> <col> 2002-07-14 23:29:01 </col>
1538 <col> Object_timestamp </col> <col> 2002-07-14 18:16:42 </col>
1541 <col> Source_ip </col> <col> 193.79.237.146 </col>
1544 <col> Destination_ip </col> <col> 212.204.216.11 </col>
1547 <col> Mac_address </col> <col> 00:60:67:36:61:a5:00:90:69:60:c0:5d:08:00 </col>
1550 <col> Packetlength </col> <col> 40 </col>
1553 <col> Protocol </col> <col> TCP </col>
1556 <col> Source_port </col> <col> 36375 </col>
1559 <col> Destination_port </col> <col> 113 </col>
1562 <col> Messageid </col> <col> <para/> </col>
1565 <col> Systemuser </col> <col> <para/> </col>
1568 <col> Networkdevice </col> <col> eth0 </col>
1575 <heading>log_notification. </heading>
1578 In the log_notification the logbook entries that have caused an alert to occur are saved. When this table is used something has been detected. As this is clearly an intermediate table we anticipate to design checks where multiple entries in a log-file can lead to one notification. For forensics indexing will be focussed on retrieval speed.
1582 <heading>The fields.</heading>
1585 The fields are listed below:
1588 <table cpos='lllp{6cm}'>
1590 <col> Fieldname </col> <col> Fieldtype </col> <col> Size </col>
1596 <col> notificationid </col> <col> Bigint </col> <col> 8 </col>
1598 Reference to the notification
1602 <col> logid </col> <col> Bigint </col> <col> 8 </col>
1604 Reference to the logbook
1611 <heading>The indexes.</heading>
1614 The table is indexed on the following fields:
1618 <col> Indexname </col> <col> Field </col> <col> Characteristics </col>
1621 <col> lon_pk </col> <col>notificationid </col> <col>Primary key </col>
1624 <col> <para/> </col> <col>logid </col> <col>Primary key (second field) </col>
1627 <col>lon_notificationid </col> <col> notificationid </col> <col> <para/> </col>
1630 <col> lon_logid </col> <col>logid </col> <col> <para/> </col>
1636 <heading>The relationships.</heading>
1639 Relationships with other tables:
1642 <table cpos='llp{8cm}'>
1644 <col> Fieldname </col> <col> Remote Table </col>
1650 <col> Logid </col> <col> Log </col>
1652 Indicates the log-entry that was on of the triggers that led to the notification.
1656 <col> NotificationID </col> <col> Notification </col>
1658 Indicates the notification where the entry in the log was a trigger.
1663 <para>In the model this look like this:</para>
1665 <picture src="erd-lognotif.png" eps="erd-lognotif"/>
1670 <heading>Sample data.</heading>
1677 <col> LogID </col> <col> NotificationID </col>
1680 <col> 4 </col> <col> 1 </col>
1683 <col> 5 </col> <col> 1 </col>
1686 <col> 8 </col> <col> 1 </col>
1689 <col> 9 </col> <col> 1 </col>
1692 <col> 5 </col> <col> 2 </col>
1695 <col> 6 </col> <col> 2 </col>
1698 <col> 11 </col> <col> 2 </col>
1705 <heading>notification. </heading>
1708 In this table all detected issues per object will be written. Issues are entered based on immediate detection, periodical detection or manually. Since this table is mostly used to work from in the interface being in control is crucial. When systems function properly more retrieval than data entry will take place. Also data retrieval will be done in all sorts of ways. Indexing must be huge to facilitate that.
1712 <heading>The fields.</heading>
1715 The fields of the <emph>notification</emph> table are:
1718 <table cpos='lllp{6cm}'>
1720 <col> Fieldname </col> <col> Fieldtype </col> <col> Size </col>
1726 <col> notificationid </col> <col> Bigserial </col> <col> 8 </col>
1732 <col> objectid </col> <col> Bigint </col> <col> 8 </col>
1734 Reference to the <emph>object</emph>
1738 <col> type_of_notification_id </col> <col> Bigint </col> <col> 8 </col>
1740 Reference to the <emph>type_of_notification</emph> indicating what type of notification we have here and what basic rules apply.
1744 <col> timestamp </col> <col> Timestamp </col> <col> <para/> </col>
1746 Timestamp that this notification was created.
1750 <col> statuscode </col> <col> Varchar </col> <col> 3 </col>
1752 The status the actual status a notification has.
1756 <col> priority </col> <col> Int </col> <col> 4 </col>
1758 The priority that is given to this issue<footnote>Basically there will be five priority levels. The rule is that the lower the number gets the more urgent the issue is. At the moment the priority level is set by the system pre-defined actions will take place.</footnote>.
1762 <col> escalation_count_timestamp </col> <col> Timestamp </col> <col> <para/> </col>
1764 Timestamp since the last escalation took place<footnote>The system offers the possibility to automatically escalate issue if no action has been taken within a certain amount of time. Based on the status and the type of notification escalation can take place.</footnote>.
1768 <col> repeat_notification_timestamp </col> <col> Timestamp </col> <col> <para/> </col>
1770 Timestamp at which moment in time a repeat notification should occur<footnote>After this time has passed a notification is being resent. After a resent automatically a new time is set for another resent. If any actions takes place (except automated entries of course) the time is emptied so that an administrator will no longer be bothered by the system.</footnote>.
1774 <col> securitylevel_view </col> <col> Int </col> <col> 4 </col>
1776 The securitylevel that is needed to view this entry.
1780 <col> securitylevel_add </col> <col> Int </col> <col> 4 </col>
1782 Securitylevel to add information to this item or to undertake action
1786 <col> securitylevel_close </col> <col> Int </col> <col> 4 </col>
1788 The securitylevel needed to be able to close this notification.
1795 <heading>The indexes.</heading>
1802 <col> Indexname </col> <col> Field </col> <col> Characteristics </col>
1805 <col> not_pk (notification_notificationid_key) </col> <col> notificationid </col>
1806 <col> Primary key </col>
1809 <col> not_objectid </col> <col> objectid </col> <col> <para/> </col>
1812 <col> not_type_of_notificationid </col> <col> type_of_notificationid </col>
1813 <col> <para/> </col>
1816 <col> not_timestamp </col> <col> timestamp </col> <col> <para/> </col>
1819 <col> not_statuscode </col> <col> statuscode </col> <col> <para/> </col>
1822 <col> not_priority </col> <col> priority </col> <col> <para/> </col>
1825 <col> not_escalation_count_timestamp </col> <col> escalation_count_timestamp </col>
1826 <col> <para/> </col>
1830 <para>not_repeat_notification_timestamp</para>
1831 <para>(not_repeat_notification_timesta)</para>
1833 <col> repeat_notification_timestamp </col> <col> <para/> </col>
1839 <heading>The relationships.</heading>
1842 Relationships with other tables:
1845 <table cpos='llp{8cm}'>
1847 <col> Fieldname </col> <col> Remote Table </col> <col> Remarks </col>
1850 <col> Logid </col> <col> Log </col>
1852 Indicates the log-entry that was on of the triggers that led to the notification.
1856 <col> NotificationID </col> <col> Notification </col>
1858 Indicates the notification where the entry in the log was a trigger.
1863 <para>In the model this look like this:</para>
1865 <picture src="erd-notif.png" eps="erd-notif"/>
1870 <heading>Sample data.</heading>
1873 The following data is an example of a notification placed in the database.
1877 <col> Fieldname </col> <col> Data </col>
1880 <col> Notificationid </col> <col> 1 </col>
1883 <col> ObjectID </col> <col> 1 </col>
1886 <col> Type_of_notification_id </col> <col> 1 </col>
1889 <col> Timestamp </col> <col> 17-07-2002 16:07 </col>
1892 <col> Statuscode </col> <col> NEW </col>
1895 <col> Priority </col> <col> 3 </col>
1898 <col> Escalation_count_timestamp </col> <col> 17-07-2002 16:07 </col>
1901 <col> Repeat_notification_timestamp </col> <col> 17-07-2002 20:48PM </col>
1904 <col> Securitylevel_view </col> <col> 3 </col>
1907 <col> Securitylevel_add </col> <col> 3 </col>
1910 <col> Securitylevel_close </col> <col> 4 </col>
1917 <heading>object</heading>
1920 The <emph>object</emph> table contains general information on the objects being monitored. The table object will more be used for retrieval, since adding objects will be an occasional process. Anything that for some reason can be indexed ought to be indexed.
1924 <heading>The fields.</heading>
1929 <table cpos='lllp{6cm}'>
1931 <col> Fieldname </col> <col> Fieldtype </col> <col> Size </col>
1937 <col> objectid </col> <col> Bigserial </col> <col> 8 </col>
1939 Autonumbering code for the computer or device.
1943 <col> objectname </col> <col> Text </col> <col> <para/> </col>
1945 The hostname of the object
1949 <col> objectcode </col> <col> Text </col> <col> <para/> </col>
1951 Unique identifier (if existent) on the system<footnote>In Linux this will typically be the <emph>hostid</emph>.</footnote>.
1955 <col> scp_enabled </col> <col> Boolean </col> <col> <para/> </col>
1957 Can communication occur through scp (T = Yes / F = No)
1961 <col> scp_inet </col> <col> Inet </col> <col> <para/> </col>
1963 IP Address of the object for scp-data transfer.
1967 <col> mail_enabled </col> <col> Boolean </col> <col> <para/> </col>
1969 Can communication occur through e-mail (T = Yes/F = No).
1973 <col> mail_from </col> <col> Text </col> <col> <para/> </col>
1975 The e-mail address where e-mail will come from.
1979 <col> sms_enabled </col> <col> Boolean </col> <col> <para/> </col>
1981 Can communication occur through SMS (T = Yes/F = No).
1985 <col> sms_number </col> <col> Text </col> <col> <para/> </col>
1987 The SMS-number to send a notification to.
1991 <col> fax_enabled </col> <col> Boolean </col> <col> <para/> </col>
1993 Can communication occur through Fax (T = Yes/F = No).
1997 <col> fax_number </col> <col> Text </col> <col> <para/> </col>
1999 The fax-number to send a notification to.
2013 Description of the object. What type of system is it
2017 <col> object_owner </col> <col> Text </col> <col> <para/> </col>
2023 <col> physical_location </col> <col> Text </col> <col> <para/> </col>
2025 Physical address and when applicable entry-details needed to get to the object.
2029 <col> timezone </col> <col> Text </col> <col> <para/> </col>
2031 The timezone where this object is located<footnote>For objects that move around like PDA's and laptops the timezone can be the place where a person is stationed or better GMT.</footnote>.
2035 <col> remark </col> <col> Text </col> <col> <para/> </col>
2037 Additional remarks that shouldn't be in the previous TEXT fields.
2044 <heading>The indexes.</heading>
2047 The <emph>object</emph> table is indexed on the following fields:
2052 <col> Indexname </col> <col> Field </col> <col> Characteristics </col>
2055 <col> obj_pk (object_objectid_key) </col> <col> objectid </col> <col> Primary key </col>
2058 <col> obj_objectname </col> <col> objectname </col> <col> Unique </col>
2061 <col> obj_objectcode </col> <col> objectcode </col> <col> Unique </col>
2064 <col> obj_mail_from </col> <col> mail_from </col> <col> <para/> </col>
2070 <heading>The relationships.</heading>
2073 The relationships with other tables are listed below:
2076 <table cpos='llp{8cm}'>
2078 <col> Fieldname </col> <col> Remote Table </col> <col> Remarks </col>
2081 <col> ObjectID </col> <col> Log (adv) </col>
2082 <col> Reference to processed log-entries </col>
2085 <col> <para/> </col> <col> Notification </col>
2087 Reference to the table <emph>notification</emph> that contains the notifications that have been created.
2091 <col> <para/> </col> <col> Object_issue </col>
2093 Reference to the <emph>object_issue</emph> that indicates how notifications have to be handled .
2097 <col> <para/> </col> <col> Object_priority </col>
2099 Reference to the <emph>object_priority</emph> table that indicates how a certain level of priority has to be dealt with.
2103 <col> <para/> </col> <col> Object_system_user </col>
2105 Reference to a list of system user to discover abnormalities in user behaviour.
2109 <col> <para/> </col> <col> Object_user </col>
2110 <col> Reference to the <emph>object_user</emph> </col>
2113 <col> <para/> </col> <col> Unprocessed_log </col>
2115 Reference to the entries that have not been processed at all.
2120 <para>In the relationshipmodel this looks like this:</para>
2122 <picture src="erd-object.png" eps="erd-object"/>
2127 <heading>Sample data.</heading>
2129 There is no preset data and therefor it's an example has been created. The table has quite some fields so the example has the fieldname in the left column and the data in the right column.
2134 <para>Fieldname</para>
2137 <para>Sample data</para>
2142 <para>Objectid</para>
2150 <para>Objectname</para>
2153 <para>webber.dewinter.com</para>
2158 <para>Objectcode</para>
2166 <para>Scp_enabled</para>
2174 <para>Scp_inet</para>
2177 <para>192.168.221.212</para>
2182 <para>Mail_enabled</para>
2190 <para>Mail_from</para>
2194 <reference href="mailto:gnucomo@maintenance.dewinter.com">gnucomo@maintenance.dewinter.com</reference>
2200 <para>Sms_enabled</para>
2208 <para>Sms_number</para>
2211 <para>06-XXXXXXXX</para>
2216 <para>Fax_enabled</para>
2224 <para>Fax_number</para>
2227 <para>0318-XXXXXX</para>
2232 <para>Object_description</para>
2235 <para>19 inch 4 units, AMD-300 with two 27Gb disks (RAID-0), 256Mb memory</para>
2240 <para>Object_owner</para>
2243 <para>Brenno de Winter</para>
2244 <para>De Winter Information Solutions</para>
2245 <para>Your street here 32</para>
2246 <para>9999 XX YOUR CITY</para>
2247 <para>THE NETHERLANDS</para>
2248 <para>Phone: +31 XXX XXX XXX</para>
2253 <para>Physical_location</para>
2256 <para>Internet Provider XYZ</para>
2257 <para>Your street here 38</para>
2258 <para>9999 XX YOUR CITY</para>
2259 <para>THE NETHERLANDS</para>
2260 <para>Phone: +31 XXX XXX XXX</para>
2262 <para>Dataroom. System: Q7845</para>
2270 <para>A replacement system is available at the office location. The following persons have been authorized to enter the data room at the ISP:</para>
2271 <para>* Arjen Baart</para>
2272 <para>* Peter Busser</para>
2273 <para>* Brenno de Winter</para>
2282 <heading>object_issue. </heading>
2284 This table will store the policy on a certain issue like the priority being recognized and special actions to take. Since policies are utilized by the systems continuously all other process will rely on this index, while users will change the values occasionally.
2288 <heading>The fields.</heading>
2291 The fields of <emph>object_issue</emph>:
2294 <table cpos='lllp{6cm}'>
2297 <para>Fieldname</para>
2300 <para>Fieldtype</para>
2306 <para>Remarks</para>
2311 <para>objectid</para>
2320 <para>Reference to the object</para>
2325 <para>type_of_notificationid</para>
2334 <para>Reference to the <emph>type_of_notification</emph> indicating what type of notification we have here and what basic rules apply.</para>
2339 <para>default_priority</para>
2348 <para>The priority that will be set automatically when this type of notification is entered into the system.</para>
2353 <para>escalation</para>
2356 <para>Boolean</para>
2362 <para>Will the system perform automatic escalation (T = Yes / F = No)</para>
2367 <para>escalation_time</para>
2376 <para>The time after which a higher priority is awarded to the notification.</para>
2381 <para>max_priority</para>
2390 <para>The maximum priority given to this type of notification.</para>
2395 <para>adjusted_setting</para>
2404 <para>Some checks can have a special settings (for instance alert after 5 failed login attempts instead of 3).</para>
2411 <heading>The indexes.</heading>
2414 These are the indices:
2419 <para>Indexname</para>
2425 <para>Characteristics</para>
2433 <para>objectid</para>
2436 <para>Primary key</para>
2444 <para>type_of_notification_id</para>
2447 <para>Primary key</para>
2452 <para>obi_objectid</para>
2455 <para>Objectid</para>
2463 <para>obi_type_of_notificationid</para>
2466 <para>type_of_notification_id</para>
2476 <heading>The relationships.</heading>
2479 Relationships with other tables:
2482 <table cpos='llp{6cm}'>
2485 <para>Fieldname</para>
2488 <para>Remote Table</para>
2491 <para>Remarks</para>
2496 <para>ObjectID</para>
2502 <para>Reference to the <emph>object</emph> (which object does this apply to).</para>
2507 <para>Type_of_issueid</para>
2510 <para>Type_of_issue</para>
2513 <para>Reference to the type of issue.</para>
2518 <para>In the model this look like this:</para>
2520 <picture src="erd-objissue.png" eps="erd-objissue"/>
2525 <heading>Sample data.</heading>
2530 <table cpos='lllllll'>
2533 <para>Objectid</para>
2536 <para>Type_of_notification_id</para>
2539 <para>Default Priority</para>
2542 <para>Escalation</para>
2545 <para>Escalation_time</para>
2548 <para>Max_priority</para>
2551 <para>Adjusted_setting</para>
2568 <para>00:15:00</para>
2591 <para>00:30:00</para>
2637 <para>00:45:00</para>
2674 <heading>object_priority. </heading>
2677 This table stores per object how a certain level of priority is being dealt with. What policies do apply. This table is mostly used for retrieval, so firm indexing is logic.
2681 <heading>The fields.</heading>
2684 The fields are listed below:
2686 <table cpos='lllp{6cm}'>
2689 <para>Fieldname</para>
2692 <para>Fieldtype</para>
2698 <para>Remarks</para>
2703 <para>objectid</para>
2712 <para>Reference to the object</para>
2717 <para>priorityid</para>
2726 <para>Priority.</para>
2731 <para>send_mail</para>
2734 <para>Boolean</para>
2740 <para>Send an e-mail if this priority is set? Yes = T / No = F</para>
2745 <para>send_sms</para>
2748 <para>Boolean</para>
2754 <para>Send a sms message if this priority is set? Yes = T / No = F</para>
2759 <para>send_fax</para>
2762 <para>Boolean</para>
2768 <para>Send a fax if this priority is set? Yes = T / No = F</para>
2773 <para>repeat_notification</para>
2776 <para>Boolean</para>
2782 <para>Repeat this notification if no action occurs since the notification. Yes = T / No = F</para>
2787 <para>interval_for_repeat</para>
2796 <para>Time interval that is set to wait for a response.</para>
2803 <heading>The indexes.</heading>
2806 Indices of the <emph>object_priority</emph> table:
2812 <para>Indexname</para>
2818 <para>Characteristics</para>
2826 <para>objectid</para>
2829 <para>Primary key</para>
2837 <para>priorityid</para>
2840 <para>Primary key</para>
2845 <para>obi_objectid</para>
2848 <para>Objectid</para>
2856 <para>obi_type_of_notification_id</para>
2859 <para>type_of_notification_id</para>
2869 <heading>The relationships.</heading>
2872 Relationships with other tables:
2875 <table cpos='llp{6cm}'>
2878 <para>Fieldname</para>
2881 <para>Remote Table</para>
2884 <para>Remarks</para>
2889 <para>ObjectID</para>
2895 <para>Reference to the object (which object does this apply to).</para>
2900 <para>Priorityid</para>
2903 <para>Priority</para>
2906 <para>Reference to the priority.</para>
2912 In the model this look like this:
2915 <picture src="erd-objprior.png" eps="erd-objprior"/>
2921 <heading>object_service</heading>
2924 The object service table indicates which services can be expected on the system If input fails to show up a notification can be generated.
2928 <heading>The fields.</heading>
2931 The fields are listed below:
2934 <table cpos='lllp{6cm}'>
2937 <para>Fieldname</para>
2940 <para>Fieldtype</para>
2946 <para>Remarks</para>
2951 <para>objectid</para>
2960 <para>Reference to the object</para>
2965 <para>servicecode</para>
2974 <para>Reference to service.</para>
2979 <para>expected_interval</para>
2988 <para>The expected interval in minutes between two log entries. If this gives a time-out a notification is generated<footnote>To avoid many false positives it may be wise to give the system always 1 or 2 minutes extra time. If for some reason a connection is slow or a mail-daemon restarted the effect would generate tuns of notifications.</footnote>. The following values can be considered the most common:</para>
2989 <para>* 60 hourly entries</para>
2990 <para>* 120 two hourly entries</para>
2991 <para>* 240 four hourly entries</para>
2992 <para>* 480 eight hourly entries</para>
2993 <para>* 920 twelve hourly entries</para>
2994 <para>* 1840 daily entries</para>
2995 <para>* 12880 weekly entries</para>
3000 <para>last_entry</para>
3003 <para>Timestamp</para>
3009 <para>The timestamp of the last entry (for detecting exceeded interval). This field could be derived from the log-table as well, but the redundance gives a performance on detection that is useful, since a check should run every minute.</para>
3014 <para>default_priority</para>
3023 <para>Priority given if this service didn't occur.</para>
3028 <para>maximum_priority</para>
3037 <para>Maximum priority (in case of escalation)</para>
3042 <para>accepted</para>
3045 <para>Boolean</para>
3051 <para>If a service hasn't been set, the application user should indicate that this is valid (logs shouldn't just appear). New entries will be added automatically but still have to be verified.</para>
3058 <heading>The indexes.</heading>
3061 The table is indexed on the following fields:
3066 <para>Indexname</para>
3072 <para>Characteristics</para>
3080 <para>objectid</para>
3083 <para>Primary key</para>
3091 <para>servicecode</para>
3094 <para>Primary key</para>
3099 <para>obs_objectid</para>
3102 <para>objectid</para>
3110 <para>obs_servicecode</para>
3113 <para>servicecode</para>
3121 <para>obs_accepted</para>
3124 <para>accepted</para>
3134 <heading>The relationships.</heading>
3137 Relationships with other tables:
3140 <table cpos='llp{8cm}'>
3143 <para>Fieldname</para>
3146 <para>Remote Table</para>
3149 <para>Remarks</para>
3154 <para>objectID</para>
3160 <para>Reference to the object (which object does this apply to).</para>
3165 <para>servicecode</para>
3168 <para>Service</para>
3171 <para>Reference to the service table. </para>
3176 <para>In the model this look like this:</para>
3178 <picture src="erd-objservice.png" eps="erd-objservice"/>
3184 <heading>object_system_user</heading>
3187 This table will derive a list of users that can be identified based on the log-files in the system. This table is filled during data entry. But the filling of the table is dependent on the fact if the user has been entered before. So during the processing the read will be done more than the data entry and that makes heavy indexing logic.
3190 <heading>The fields.</heading>
3193 The fields of <emph>object_system_user</emph> are listed below:
3196 <table cpos='lllp{6cm}'>
3199 <para>Fieldname</para>
3202 <para>Fieldtype</para>
3208 <para>Remarks</para>
3213 <para>objectid</para>
3222 <para>Reference to the object</para>
3227 <para>system_username</para>
3236 <para>Username on the object/system.</para>
3241 <para>can_login</para>
3244 <para>Boolean</para>
3250 <para>Can this user login (T = Yes / F = No)?</para>
3255 <para>can_be_root</para>
3258 <para>Boolean</para>
3264 <para>Can this user become root (T = Yes / F = No)?</para>
3271 <heading>The indexes.</heading>
3274 The table is indexed on the following fields:
3279 <para>Indexname</para>
3285 <para>Characteristics</para>
3293 <para>objectid</para>
3296 <para>Primary key</para>
3304 <para>system_username</para>
3307 <para>Primary key</para>
3312 <para>osu_objectid</para>
3315 <para>objectid</para>
3323 <para>osu_system_username</para>
3326 <para>system_username</para>
3336 <heading>The relationships.</heading>
3339 Relationships with other tables:
3341 <table cpos='llp{8cm}'>
3344 <para>Fieldname</para>
3347 <para>Remote Table</para>
3350 <para>Remarks</para>
3355 <para>ObjectID</para>
3361 <para>Reference to the object (which object does this apply to).</para>
3366 <para>System_username</para>
3372 <para>Log entries can refer to the system username.</para>
3376 <para>In the model this look like this:</para>
3380 <picture src="erd-objsysusr.png" eps="erd-objsysusr"/>
3386 <heading>object_user</heading>
3389 This table will enable users to get access to the information belonging to an object. Also this table is mainly used for data retrieval and will rely on the indexes.
3392 <heading>The fields.</heading>
3395 The fields of <emph>object_user</emph> are listed below:
3398 <table cpos='lllp{6cm}'>
3401 <para>Fieldname</para>
3404 <para>Fieldtype</para>
3410 <para>Remarks</para>
3415 <para>Objectid</para>
3424 <para>Reference to the <emph>object</emph></para>
3429 <para>Username</para>
3438 <para>Username in gnucomo. A reference to <emph>user</emph>.</para>
3443 <para>Security_level</para>
3452 <para>The security-level granted to this user.</para>
3459 <heading>The indexes.</heading>
3461 The indices of the <emph>object_user</emph> table:
3466 <para>Indexname</para>
3472 <para>Characteristics</para>
3480 <para>objectid</para>
3483 <para>Primary key</para>
3491 <para>username</para>
3494 <para>Primary key</para>
3499 <para>ous_objectid</para>
3502 <para>objectid</para>
3510 <para>ous_username</para>
3513 <para>username</para>
3521 <para>ous_security_level</para>
3524 <para>ous_security_level</para>
3534 <heading>The relationships.</heading>
3537 Relationshiips with other tables:
3540 <table cpos='llp{8cm}'>
3543 <para>Fieldname</para>
3546 <para>Remote Table</para>
3549 <para>Remarks</para>
3554 <para>objectID</para>
3560 <para>Reference to the object (which object does this apply to).</para>
3565 <para>username</para>
3571 <para>Reference to the user.</para>
3576 <para>In the model this look like this:</para>
3577 <picture src="erd-objusr.png" eps="erd-objusr"/>
3583 <heading>priority</heading>
3586 The priority table contains information on the levels that are recognized by the system. Mainly data retrieval so depending on indexing. It needs to be said that most likely only a couple of states will exist<footnote>By default we will use five states, but many states can be given to enable all types of differentiation.</footnote>.
3590 <heading>The fields.</heading>
3593 The fields of the <emph>priority</emph> table are listed below:
3596 <table cpos='lllp{6cm}'>
3599 <para>Fieldname</para>
3602 <para>Fieldtype</para>
3608 <para>Remarks</para>
3613 <para>priority</para>
3622 <para>Priority</para>
3627 <para>send_mail</para>
3630 <para>Boolean</para>
3636 <para>Send an e-mail if this priority is set? Yes = T / No = F</para>
3641 <para>send_sms</para>
3644 <para>Boolean</para>
3650 <para>Send a sms message if this priority is set? Yes = T / No = F</para>
3655 <para>send_fax</para>
3658 <para>Boolean</para>
3664 <para>Send a fax if this priority is set? Yes = T / No = F</para>
3669 <para>repeat_notification</para>
3672 <para>Boolean</para>
3678 <para>Repeat this notification if no action occurs since the notification. Yes = T / No = F</para>
3683 <para>interval_for_repeat</para>
3692 <para>Time interval that is set to wait for a response.</para>
3699 <heading>The indexes.</heading>
3702 The table is indexed on the following fields:
3708 <para>Indexname</para>
3714 <para>Characteristics</para>
3722 <para>priority</para>
3725 <para>Primary key</para>
3732 <heading>The relationships.</heading>
3735 Relationships with other tables:
3737 <table cpos='llp{8cm}'>
3740 <para>Fieldname</para>
3743 <para>Remote Table</para>
3746 <para>Remarks</para>
3751 <para>priority</para>
3754 <para>object_priority</para>
3757 <para>Reference to the object (which object does this apply to). </para>
3762 <para>In the model this look like this:</para>
3764 <picture src="erd-prior.png" eps="erd-prior"/>
3770 <heading>service</heading>
3773 The table <emph>service</emph> indicates the service that can be handled by the system. Out of the servicelist the administrator can indicate what services to expect.
3776 <heading>The fields.</heading>
3779 The fields are listed below:
3781 <table cpos='lllp{6cm}'>
3784 <para>Fieldname</para>
3787 <para>Fieldtype</para>
3793 <para>Remarks</para>
3798 <para>servicecode</para>
3807 <para>The code that is written for the service</para>
3812 <para>servicename</para>
3821 <para>The expanded name for the service</para>
3826 <para>default_priority</para>
3835 <para>The advised priority if these log-entries don't come in<footnote>Advised priorities can be changed in the object_service table per object. </footnote>.</para>
3840 <para>max_priority</para>
3849 <para>The maximum priority advised for this service<footnote>Advised priorities can be changed in the object_service table per object.</footnote>.</para>
3856 <heading>The indexes.</heading>
3859 The table is indexed on the following fields:
3864 <para>Indexname</para>
3870 <para>Characteristics</para>
3878 <para>servicecode</para>
3881 <para>Primary key</para>
3886 <para>ser_servicename</para>
3889 <para>servicename</para>
3899 <heading>The relationships.</heading>
3901 Relationships with other tables:
3903 <table cpos='llp{8cm}'>
3906 <para>Fieldname</para>
3909 <para>Remote Table</para>
3912 <para>Remarks</para>
3917 <para>servicecode</para>
3923 <para>What log entries have been tied to this type of service.</para>
3931 <para>object_service</para>
3934 <para>Settings for this service per object.</para>
3942 <para>unprocessed_log</para>
3945 <para>What unprocessed log entries have been tied to this type of service.</para>
3950 <para>In the model this look like this:</para>
3952 <picture src="erd-service.png" eps="erd-service"/>
3958 <heading>status.</heading>
3961 The table <emph>status</emph> contains the possible states that a notification can have. As with the table <emph>priority</emph> these statuses are limited in number by default but can be expanded. Also here retrieval prevails above data entry and therefor indexing is important.
3965 <heading>The fields.</heading>
3968 The fields of the <emph>status</emph> table are listed below:
3971 <table cpos='lllp{6cm}'>
3974 <para>Fieldname</para>
3977 <para>Fieldtype</para>
3983 <para>Remarks</para>
3988 <para>statuscode</para>
3991 <para>Varchar</para>
3997 <para>The code for the status</para>
4002 <para>statusname</para>
4011 <para>What is the correct name for the status</para>
4016 <para>open_notification</para>
4019 <para>Boolean</para>
4025 <para>Is the notification still open when this status is set? Yes = T / No = F</para>
4030 <para>description</para>
4039 <para>Explanation of the code</para>
4046 <heading>The indexes.</heading>
4048 The table is indexed on the following fields:
4054 <para>Indexname</para>
4060 <para>Characteristics</para>
4068 <para>statuscode</para>
4071 <para>Primary key</para>
4076 <para>sta_statusname</para>
4079 <para>statusname</para>
4087 <para>sta_open_notification</para>
4090 <para>open_notification</para>
4100 <heading>The relationships.</heading>
4102 Relationships with other tables
4108 <para>Fieldname</para>
4111 <para>Remote Table</para>
4114 <para>Remarks</para>
4129 <para>In the model this look like this:</para>
4131 <picture src="erd-status.png" eps="erd-status"/>
4136 <heading>Default values.</heading>
4137 <para>The status values are default for the system and for that reason are predefined.</para>
4138 <table cpos='lllp{6cm}'>
4141 <para>Statuscode</para>
4144 <para>Statusname</para>
4147 <para>Open Notification</para>
4158 <para>New entry</para>
4164 <para>Just detected nothing has been done yet.</para>
4178 <para>The notification has been displayed, but nothing has been done yet.</para>
4186 <para>Pending</para>
4192 <para>The notification is currently being worked on.</para>
4200 <para>Waiting for verification</para>
4206 <para>The notification has been worked on. After it has been verified the notification can be closed.</para>
4220 <para>The notification has been closed</para>
4228 <para>Rejected</para>
4234 <para>This was a false positive and has been rejected.</para>
4242 <para>Investigate</para>
4248 <para>The notification is under investigation and awaiting additional details.</para>
4256 <heading>type_of_issue.</heading>
4258 <para>This table will contain a list of all available issues that can be detected. All issues have a suggested priority setting. This is typically data retrieval and good indexing is needed.</para>
4261 <heading>The fields.</heading>
4264 Fields of <emph>type_of_issue</emph> are:
4267 <table cpos='lllp{6cm}'>
4270 <para>Fieldname</para>
4273 <para>Fieldtype</para>
4279 <para>Remarks</para>
4284 <para>type_of_issueid</para>
4287 <para>Bigserial</para>
4293 <para>The sequential code for the issue.</para>
4307 <para>Name for the issue</para>
4312 <para>suggested_priority</para>
4321 <para>The advised priority setting.</para>
4326 <para>description</para>
4335 <para>Description of the method and how this can be set.</para>
4343 <para>Boolean</para>
4349 <para>Is this check currently being used in the system.</para>
4356 <heading>The indexes.</heading>
4358 The table is indexed on the following fields:
4364 <para>Indexname</para>
4370 <para>Characteristics</para>
4376 <para>(type_of_issue_type_of_issue_key)</para>
4379 <para>type_of_issueid</para>
4382 <para>Primary key</para>
4387 <para>toi_name</para>
4398 <para>toi_active</para>
4411 <heading>The relationships.</heading>
4415 <para>Fieldname</para>
4418 <para>Remote Table</para>
4421 <para>Remarks</para>
4426 <para>type_of_issueid</para>
4429 <para>object_issue</para>
4437 <para>In the model this look like this:</para>
4439 <picture src="erd-toi.png" eps="erd-toi"/>
4444 <heading>Default values.</heading>
4447 All checks are entered as code into the system. This table only works for the application only. The user can set specifics in the application only.
4449 <table cpos='lllll'>
4452 <para>Type_of_issueid</para>
4458 <para>Suggested_priority</para>
4461 <para>Description</para>
4472 <para>Manual entry</para>
4478 <para>A manual entry of a notification.</para>
4489 <heading>unprocessed_log</heading>
4492 The <emph>user</emph> table contains the users that can login the monitoring application. It will also store if the users maintains the system. Mainly used for retrieval so properly indexed.
4496 <heading>The fields.</heading>
4499 The fields are listed below:
4502 <table cpos='lllp{6cm}'>
4505 <para>Fieldname</para>
4508 <para>Fieldtype</para>
4514 <para>Remarks</para>
4519 <para>unprocessedid</para>
4522 <para>Bigserial</para>
4528 <para>Autonumber entry</para>
4533 <para>objectid</para>
4542 <para>Reference to the object</para>
4547 <para>servicecode</para>
4556 <para>The service that entered this data.</para>
4561 <para>logdata</para>
4570 <para>The data that comes from the file.</para>
4577 <heading>The indexes.</heading>
4579 The indices of the table:
4585 <para>Indexname</para>
4591 <para>Characteristics</para>
4597 <para>(unprocessed_l_unprocessedid_key)</para>
4600 <para>unprocessedid</para>
4603 <para>Primary key</para>
4610 <heading>The relationships.</heading>
4612 Relationships with other tables:
4615 <table cpos='llp{8cm}'>
4618 <para>Fieldname</para>
4621 <para>Remote Table</para>
4624 <para>Remarks</para>
4629 <para>objectid</para>
4635 <para>Reference to the object that is reporting the data</para>
4640 <para>servicecode</para>
4643 <para>service</para>
4646 <para>Reference to the servicecode that is mentioned in the filename.</para>
4650 <para>In the model this look like this:</para>
4652 <picture src="erd-unplog.png" eps="erd-unplog"/>
4657 <heading>Sample values.</heading>
4663 <heading>user_gnucomo</heading>
4665 <para>The <emph>user</emph> table contains the users that can login the monitoring application. It will also store if the users maintains the system. Mainly used for retrieval so properly indexed.</para>
4667 <heading>The fields.</heading>
4669 The fields are listed in the table below:
4672 <table cpos='lllp{6cm}'>
4675 <para>Fieldname</para>
4678 <para>Fieldtype</para>
4684 <para>Remarks</para>
4689 <para>username</para>
4698 <para>Name the user is known by</para>
4703 <para>password</para>
4712 <para>Password</para>
4717 <para>active_sessionid</para>
4726 <para>Sessionnumber currently used by user. If this is set to 0 a user is not present on the system. Only one session can be open at a time.</para>
4731 <para>account_active</para>
4734 <para>Boolean</para>
4740 <para>Is the account currently active?</para>
4745 <para>security_level</para>
4754 <para>Given securitylevel to this user</para>
4761 <heading>The indexes</heading>
4763 The table is indexed on the following fields:
4768 <para>Indexname</para>
4774 <para>Characteristics</para>
4782 <para>username</para>
4785 <para>Primary key</para>
4790 <para>usr_active_sessionid</para>
4793 <para>active_sessionid</para>
4803 <heading>The relationships.</heading>
4805 Relationships with other tables
4810 <para>Fieldname</para>
4813 <para>Remote Table</para>
4816 <para>Remarks</para>
4821 <para>ObjectID</para>
4827 <para>Link to the object</para>
4831 <para>In the model this look like this:</para>
4833 <picture src="erd-usr.png" eps="erd-usr"/>
4841 <heading>Model of table-relations.</heading>
4843 <para>The following model pictures the database as it has been described before.</para>
4845 <picture src="erd.png" eps="erd" scale="0.7"/>
4852 <heading>Warnings that can be detected.</heading>
4856 <heading>User Interface.</heading>
4858 <para>To be determined in the near future.</para>
4862 <heading>The installation process.</heading>
4864 <para>Since the system must make maintenance and security easier to use, the burden of installation should as easy as possible. Where possible the installation script should take away as much work as possible. Where settings need to be done, this should be done through an interface. However at no point we take the user's right to understand and work with system. Configuration-files should be easy to understand and the choice must be there to do installation manually. </para>
4867 <heading>Supported platforms.</heading>
4869 <para>The following two Linux distributions have been selected to be actively supported:</para>
4872 <para>Debian GNU/Linux (.deb packages)</para>
4875 <para>RedHat Linux (.rpm packages)</para>
4878 <para>We will try and facilitate as many operating systems client-side and as many unices server-side, but efforts on testing out of the projects will be very minimalistic to ensure that the project keeps delivering new version and new features. </para>
4882 <heading>Installation on the server.</heading>
4884 <para>The following steps will be part of a script, that can automatically perform these steps:</para>
4888 <para>Create the user <emph>gnucomo</emph>.</para>
4891 <para>Make the directory as described in the chapter <emph>Sending messages to the central gnucomo system</emph> in the subchapter <emph>directories</emph>.(server-side).</para>
4897 <heading>Installation on a UNIX-client.</heading>
4899 <para>The following steps will be part of a script, that can automatically perform these steps:</para>
4902 <para>Create the user <emph>gcm_client</emph>.</para>
4905 <para>Make the directory as described in the chapter <emph>Sending messages to the central gnucomo system</emph> in the subchapter <emph>directories</emph> (client-side).</para>
4908 <para>Creation of the database user gcm_input. This user has only the right to enter data into the database. There are no deletion, update or select-permissions.</para>
4916 <heading>Dependency on other free software.</heading>
4917 <para>The following list is a set of applications that will be used on to make our application work:</para>
4918 <table cpos='lp{8cm}l'>
4921 <para>Application</para>
4924 <para>Needed for</para>
4927 <para>Client/Server</para>
4935 <para>The encryption of the information being transferred between the two systems.</para>
4944 <para>GNU/Linux</para>
4947 <para>The basic operating system. Allthough the system might work very well on all types on versions of Linux, FreeBSD, OpenBSD or any unices the main focus for distribution is given to: Debian GNU/Linux and RedHat Linux (the downloadable iso-version). </para>
4958 <para>The application enabling the sending of messages.</para>
4967 <para>openssh</para>
4970 <para>If e-mail is not used this application will deliver the file-copy</para>
4979 <para>PostgreSQL</para>
4982 <para>The database where all the signals from client will be stored.</para>
4993 <heading>Settings on the server machine.</heading>
4996 <heading>Required.</heading>
4998 <para>The following settings are required to ensure that the functionality is as much as expected.</para>
5001 <heading>Timezone in GMT (UTC).</heading>
5003 <para>Since all international traffic registers all entries in UTC (Universal Time Coordinate) this system will do so as well. Therefore the clock has to be adjusted to that as well as the system settings.</para>
5004 <para>These settings can found on a RedHat computer in the <code>/etc/sysconfig/clock-file</code>. On Debian this stored in the file <code>/etc/timezone</code>.</para>
5009 <heading>Suggested.</heading>
5012 <heading>Use NTP.</heading>
5014 <para>If a computer is running for some time the clocks tend to be off the correct time. This makes it harder to detect what exactly happened exactly at what moment in time and reduce value of log-entries. Especially considering that ultimately all data is gathered in one central system. To overcome this Network Time Protocol (NTP RFC 13025 March 1992) has been created that explains a protocol to synchronize clocks through the Internet. Many operating systems like Microsoft Windows 2000 Server and FreeBSD, OpenBSD and Linux support this. A ntp-server (or ntpd) can be found at: http://www.eecis.udel.edu/~ntp/ It is strongly recommended that you use this.</para>
5021 <heading>Settings on the client machine.</heading>
5024 <heading>Required.</heading>
5028 <heading>Suggested.</heading>
5031 <heading>Use NTP.</heading>
5033 <para>If a computer is running for some time the clocks tend to be off the correct time. This makes it harder to detect what exactly happened exactly at what moment in time and reduce value of log-entries. Especially considering that ultimately all data is gathered in one central system. To overcome this Network Time Protocol (NTP RFC 13025 March 1992) has been created that explains a protocol to synchronize clocks through the Internet. Many operating systems like Microsoft Windows 2000 Server and FreeBSD, OpenBSD and Linux support this. A ntp-server (or ntpd) can be found at: http://www.eecis.udel.edu/~ntp/ It is strongly recommended that you use this.</para>
5040 <heading>Appendices.</heading>
5043 <heading>Appendix A. GNU Public License Version 2, June 1991.</heading>
5045 <para>Copyright (C) 1989, 1991 Free Software Foundation, Inc.</para>
5046 <para>59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</para>
5047 <para>Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.</para>
5050 <heading>Preamble</heading>
5051 <para>The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. </para>
5052 <para>When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.</para>
5053 <para>To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.</para>
5054 <para>For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.</para>
5055 <para>We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. </para>
5056 <para>Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.</para>
5057 <para>Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.</para>
5058 <para>The precise terms and conditions for copying, distribution and modification follow.</para>
5059 <para>GNU GENERAL PUBLIC LICENSE</para>
5063 <heading>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</heading>
5067 <para>This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" 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 "modification".) Each licensee is addressed as "you".</para>
5068 <para>Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. </para>
5071 <para>You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.</para>
5072 <para>You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.</para>
5075 <para>You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:</para>
5076 <para>a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.</para>
5077 <para>b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.</para>
5078 <para>c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)</para>
5079 <para>These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.</para>
5080 <para>Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.</para>
5081 <para>In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.</para>
5084 <para>You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:</para>
5085 <para>a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, </para>
5086 <para>b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,</para>
5087 <para>c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)</para>
5088 <para>The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.</para>
5089 <para>If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.</para>
5092 <para>You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.</para>
5095 <para>You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.</para>
5098 <para>Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein.</para>
5099 <para>You are not responsible for enforcing compliance by third parties to this License.</para>
5102 <para>If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.</para>
5103 <para>If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.</para>
5104 <para>It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.</para>
5105 <para>This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.</para>
5108 <para>If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.</para>
5111 <para>The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.</para>
5112 <para>Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", 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>
5115 <para>If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.</para>
5120 <heading>NO WARRANTY</heading>
5123 <para>BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVidE THE PROGRAM "AS IS" 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>
5126 <para>IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</para>
5129 <para>END OF TERMS AND CONDITIONS</para>
5132 <heading>How to Apply These Terms to Your New Programs</heading>
5133 <para>If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. </para>
5134 <para>To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.</para>
5135 <para><one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.</para>
5136 <para>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</para>
5137 <para>You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</para>
5138 <para>Also add information on how to contact you by electronic and paper mail.</para>
5139 <para>If the program is interactive, make it output a short notice like this when it starts in an interactive mode:</para>
5140 <para>Gnomovision version 69, Copyright (C) year name of author</para>
5141 <para>Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.</para>
5142 <para>This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.</para>
5144 <para>The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.</para>
5145 <para>You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:</para>
5146 <para>Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. </para>
5147 <para><signature of Ty Coon>, 1 April 1989 Ty Coon, President of Vice</para>
5148 <para>This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License.</para>