diff --git a/.gitattributes b/.gitattributes index 3612fd3..452ed95 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,13 +3,12 @@ /COPYING -text /ChangeLog -text /LICENSE -text -/LogServ.README -text -/LogServ.README.html -text -/LogServ.xml -text /Makefile.in -text /NEWS -text /OnisDoLogs.sh -text /README.LogServ -text +/README.LogServ.html -text +/README.LogServ.xml -text /RELNOTES -text /configure -text /configure.in -text diff --git a/LogServ.README b/LogServ.README deleted file mode 100644 index 5b57650..0000000 --- a/LogServ.README +++ /dev/null @@ -1,479 +0,0 @@ - -LogServ Manual - _________________________________________________________________ - - 1. Prerequisites and Installation. - - 1.1. Compiling and Installation - - 2. Basic Configuration - - 2.1. LogType - 2.2. LOGSIZE SETTING - 2.3. LOGAGE SETTING - - 3. Configuring LogServ to Log Individual Channels - - 3.1. Adding a Channel - 3.2. Deleting a Channel - 3.3. Changing Channel Settings - 3.4. Viewing the Channel List - - 4. Misc Commands - - 4.1. STATS - 4.2. VERSION - 4.3. ABOUT - - 5. LogFile Parsers - - Welcome to the LogServ Manual. This document will aid you in setting - up and running LogServServ on your IRC network. - - LogServ is a basic Channel Logging Module for the NeoStats Services - that can log channel activity to a log file for processing by 3rd - party programs such as Onis or MircStats. These programs can then - produce HTML pages with interesting statistics on the channel - activities. - - LogServ is flexible in the logging of channels, and can produce log - files in the same format as Xchat, Mirc, EggDrop, or our own custom - logging format, meaning you should be able to use just about any IRC - Log Parsing program to produce statistics for you. - - Additionally, LogServ can rotate log files based on log file size or - age, and place them in a different directory for processing at any - time. - - We recomend that you use the Onis Log file parser, as its what we have - done our testing with, and additionally, has several neat features - that are applicable to logging lots of channels. These are: - * Persistance. You don't need to keep old log files around if you - wish your statistics to have a long history, thus saving you - valuable file system space - * Easily Customizable with stylesheets - * Easily scriptable for processing many channels at once - - We have provided a sample shell script and Onis configuration file to - automatically parse your log files in one go, producing the required - output. - - LogServ is Copyright, 2003 by Justin Hammond. - -1. Prerequisites and Installation. - - LogServ is designed to run on Top of NeoStats. The Following - requirements at the time of writing are required for NeoStats: - * A Linux or BSD based Server or Shell. - * A supported IRCd. Currently, Hybrid7, Unreal, Ultimate2.x or - Ultimate3.x or NeoIRCd - * Some basic Unix administration Skill - * Of Course, a IRC network to connect it all together. - * Spare disk space and a webserver to display the output - * A log file parser such as Onis - - Please refer to the NeoStats website for more information on the - requirements - -1.1. Compiling and Installation - - As long as you have successfully setup NeoStats, and installed it - correctly, Compiling LogServ is very simple and straight forward. - First you must extract the files from the download package. This is as - simple as: -bash$ tar -xzf LogServ-.tar.gz - - This should then create a directory called LogServ- where - is the Version of LogServ. Then Proceed to Change into the - LogServ directory, and run Configure as follows: -bash$./configure [--enable-debug | --with-neostats=] - - --enable-debug is only useful for diagnostics purposes when used in - conjunction with debugging tools. There should be no need to use this - option on a day to day basis - - --with-neostats= should be used if your neostats directory is not - in a standard location (~/NeoStats/). Replace with the full path - to your NeoStats installation directory (NOT SOURCE DIRECTORY) - - Configuring LogServ will look something like the following screen: -[Fish@fish-dt]$ ./configure -checking for gcc... gcc -checking for C compiler default output... a.out -checking whether the C compiler works... yes -checking whether we are cross compiling... no -checking for suffix of executables... -checking for suffix of object files... o -checking whether we are using the GNU C compiler... yes -checking whether gcc accepts -g... yes -checking for gcc option to accept ANSI C... none needed -checking for a BSD-compatible install... /usr/bin/install -c -checking for pcre_compile in -lpcre... yes -checking Location of NeoStats...... /home/fish/NeoStats/ -checking for /home/fish/NeoStats//include/dl.h... yes -checking Version of NeoStats...... Compatible Version -checking Whether to Enable Debuging...... no -configure: creating ./config.status -config.status: creating Makefile - -(*----------------------------------------------------------*) -(| To compile your module, please type 'make' |) -(| If make completes without errors, then you |) -(| Must 'make install', but please be sure that NeoStats |) -(| Is not currently running with a module of the same name |) -(| Running, otherwise Make install will not work |) -(| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |) -(| If you are running a BSD, make install may produce a |) -(| Error, if that is the case, then please manually copy |) -(| opsb.so to the NeoStats/dl directory |) -(| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |) -(*----------------------------------------------------------*) -(| For Support please visit: |) -(| IRC: /server irc.irc-chat.org |) -(| #neostats channel |) -(| WWW: http://www.neostats.net/boards/ |) -(*----------------------------------------------------------*) -(|This Module was written by: |) -(| fish (fish@dynam.ac) |) -(*----------------------------------------------------------*) - - If the configuration did not produce a error, you may then move onto - Compiling LogServ. Compiling is simply just issuing the "make" command - (or "gmake" if you are running BSD): -[Fish@fish-dt]$ make -gcc -c -O2 -Wall -g -ggdb -I/home/fish/NeoStats//include/ -I. logserv.c -gcc -c -O2 -Wall -g -ggdb -I/home/fish/NeoStats//include/ -I. log_processing.c -ld -shared -o logserv.so logserv.o log_processing.o - - again, check for Error messages. As long as there are not error - messages, "make install" will install LogServ, this README file, and - any auxiliary files needed into your NeoStats directory: -[Fish@fish-dt]$ make install -/usr/bin/install -c -m 644 LogServ.so /home/fish/NeoStats//dl/ -/usr/bin/install -c -m 644 README.LogServ /home/fish/NeoStats//dl/../doc/ - - If you receive *ANY* errors at all during the this process, please - post them on our Support boards, at http//www.neostats.net/boards/ - - Once Installation is complete, you can either configure NeoStats to - load LogServ when it starts, or load LogServ via IRC. - - To Configure NeoStats to automatically load LogServ when it boots, add - the following line to your "neostats.cfg" file in the NeoStats - directory: - - LOAD_MODULE logserv - - To load LogServ via IRC, you must make sure you have the appropriate - permissions and issue the following command: - - /msg neostats load logserv - - Thats it. LogServ is now loaded and ready for use - -2. Basic Configuration - - LogServ is completely configured online via IRC. When you first start - up LogServ, it attempts some "Sane" defaults for you get started with, - but you should always review these settings as soon as you install. - There are a few important settings you may want to review right away. - They are: - * LogType is the format we should be logging as (Xchat, Mirc, - EggDrop, or LogServ) - * Logfile size to rotate at (1Mb by default) - * Logfile age to rotate at (1Hr by default) - - These are outlined below: - -2.1. LogType - - Logtype is the format you wish to perform your logging in. By default, - LogServ logs using its own internal logfile format, but as of - writting, no external logfile parser supports that format, so you are - advised to change it. There are four possible choices: - * 0 - LogServ Format. Our own Logging file format - * 1 - EggDrop Format. The Same logging format as the popular EggDrop - Bot - * 2 - Mirc Format. This is the same format as the mirc 6.0 series - * 3 - Xchat Format. This is the same format as Xchat 2.0.5 IRC - client - -Warning - Changing the LogType is imediate, and all new entries into a - logfile will start with the new format imediatly. You should stop - NeoStats, and remove the files in NeoStats/logs/chanlogs/ - directory after changing this setting, so when you next process - your log files, it will not be confused by the changing formats. - - Changing the LogFile Format - - Before starting to log any channels, you should select which format - you wish to log in. We recomend Xchat format. To change the LogType, - issue the following command: -/msg LogServ set logtype - - Where: - - = The Logging format time, indicated by a number from 0 to 3, - representing the differnt formats available as outlined above. - - The output is as follows: ->logserv< set logtype 3 --LogServ- LOGTYPE set to 3 - - Viewing the current Logtype setting - - To view the current logtype selected, simple type: -/msg LogServ set list - - And all the current settings (the rest will be explained later in this - document) are displayed. The output is as follows: ->LogServ< set list --LogServ- Current LogServ settings: --LogServ- LOGTYPE: 3 Log Type --LogServ- LOGSIZE: 2000 Bytes --LogServ- LOGAGE: 3600 Seconds - -2.2. LOGSIZE SETTING - - LogServ stores logs in two places on your Shell. Live logs, or logs - that are currently being written are stored in the - ~/NeoStats/logs/chanlogs/ directory, and these the logs that are - currently being updated. When the log reaches a certian size, or age, - it is closed, and moved to a the ~/NeoStats/ChanLogs/ directory where - you can process the log files. The LogFile size settings specifies how - big a "live log" is allowed to reach before it is moved to the final - directory. By default, LogServ will rotate all files larger than 1Mb, - and this should be satisfactory for most users. - - Changing the LogSize to switch at. - - To change the size at which a logfile will switch at, use the - following format: -/msg SecureServ set logsize - - Where: - - = if the file is larger than this size, it is "swapped" - - The output is as follows: ->logserv< set logsize 20000 - LOGSIZE set to 20000 by Fish --LogServ- LOGSIZE set to 20000 - - Viewing the current setting - - Please refer to the previous section. - -2.3. LOGAGE SETTING - - In addition to the logsize setting above, LogServ will rotate a - logfile after it has been opened for a period of time. This is so - channels that might not have much activity still get a chance to be - updated often. - - The logage setting can be changed via: -/msg LogServ set logage - - Where: - - = The number of seconds the log file must be opened for - before rotating. Minium value is 5 minutes, but its recomended not to - go under 1 Hour (3600 seconds) - - The output is as follows: ->LogServ< set logage 7200 - LOGAGE set to 7200 by Fish --LogServ- LOGAGE set to 7200 - -3. Configuring LogServ to Log Individual Channels - - Obviously, we dont want to log every single IRC channel on the - network, so you have to tell LogServ what channels you wish to Log. - This is fairly basic. You have 4 options: - * Add A channel - * Delete A channel - * Change a Channels settings - * View the Channel list. - - Each Setting is described in the following section. - -3.1. Adding a Channel - - Adding a Channel to be logged is instantanous, and the channel will - begin logging straight after this command has complete. LogServ will - join the channel, but not give itself any channel modes, so the - channel owner can decide if it should be OP'd or not. - - The Syntax is: -/msg LogServ chans add - - Where: - - = The name of the channel you wish to Log. Must exist on the - IRC network. - - = Indicates weather to show the channel to non-privledged - users in the channel logging list or not. Either the words "public" or - "private". If a invalid entry is specified, defaults to Public. - Currently doesn't do anything. - - = For informational purposes only. Displays the Web Address that - users can visit to view the channel statistics. - - The output is as follows: ->logserv< chans add #ircop public http://www.neostats.net - Fish used CHANS --LogServ- Stats URL is set to http://www.neostats.net --LogServ- Now Logging #ircop - Fish Activated Logging on #ircop - - And the channel members of #ircop shall see: ---> LogServ (LogBot@stats.dynam.ac) has joined #ircop --LogServ/#ircop- Fish Actived Channel Logging on #ircop --LogServ/#ircop- Stats will be avaiable at http://www.neostats.net when Logs ar -e processed next - -3.2. Deleting a Channel - - Deleting a channel from LogServ means it will no longer log any - activity in that channel. If the channel is currently active, LogServ - shall part the channel, Close the "live log" and move it to its - processing directory. - - The Syntax is: -/msg LogServ chans del - - Where: - - = The name of a channel we are currently logging. - - The output is as follows: ->LogServ< chans del #ircop - Fish used CHANS --LogServ- Deleted Channel #ircop - Fish deleted #ircop from Channel Logging - -3.3. Changing Channel Settings - - You can change the URL location displayed when viewing the channel - list using the chans set command. - - The Syntax is: -/msg logserv chans set URL - - Where: - - = The channel name you wish to alter - - = The new URL you wish to set. - - The output is as follows: - Fish used CHANS --LogServ- Changed URL for #blah to: http://nowhere.com - Fish changed the URL for #blah to: http://nowhere.com - -3.4. Viewing the Channel List - - The channel list can be viewed by issuing the following command: -/msg logserv chans list - - The output is as follows: --LogServ- Monitored Channel List: --LogServ- #blah (-) URL: http://nowhere.com --LogServ- #bl (-) URL: None --LogServ- #ircop (*) URL: http://www.neostats.net --LogServ- End Of List. - - The (-) or (*) indicate if the channel is currently active. - -4. Misc Commands - - There are several other commands available. These are documented - below: - -4.1. STATS - - The stats command shows some basic stats about the Logging Activities. - With future versions its expected the amount of information will - increase with this command. - - The Syntax is: -/msg LogServ stats - - And the output is - Fish used STATS --LogServ- LogServ Stats: --LogServ- Monitoring 3 channels - -4.2. VERSION - - This displays LogServ's Version number - - The Syntax is: -/msg LogServ version - - And the Output is: - Fish used VERSION --LogServ- LogServ Version Information --LogServ- LogServ Version: $Rev: 19 $ Compiled Jan 13 2004 at 20:08:11 - -4.3. ABOUT - - This displays a brief message to users describing the function of - LogServ: - - The Syntax is: -/msg LogServ About - - And the output is: - Fish used ABOUT --LogServ- LogServ logs channel activities to produce HTML pages describing some - interesting Statistics --LogServ- about that channel. If you wish to have your channel logged, --LogServ- please contact the Network Adminstration - -5. LogFile Parsers - - As mentioned in the introduction, LogServ only generates Log files, - you still need to get some program to create the HTML pages from the - logfiles. - - We currently recomend Onis for parsing the logfiles. You can obtain a - copy of Onis from http://verplant.org/onis/ - - We have provided a Sample Onis Configuration based on Onis 0.4.9, and - a shell script that can be executed by Crontab to process all your - Logfiles. This sample configuration and Shell script are installed - into the ~/NeoStats/ChanLogs/ directory by default. - - This shell script will automatically go through each of the channels - logs running Onis to update the HTML pages. At the top of the script - are some variables that should be setup to configure where you wish to - place the resultant HTML files, and where Onis is installed. You - should read the begining of the file OnisDoLogs.sh to figure out what - needs to be configured. - - This shell script assumes that you have a webserver on the same shell - as NeoStats. If not, its upto the reader to implement some sort of - FTP/SCP script to transfer either the logfiles, or the output from - Onis to his webserver. - - Additionally, if you are using a different LogFile parser, other than - Onis, you will have to develop your own script or method for updating - the HTML pages. If you do develop a script for another Logfile - Processor, please send us a copy, so we may include it in future - versions. - - The logs for each channel are placed into their own directory within - the ChanLogs directory, so if you are logging #neostats, The logfiles - would be placed in ChanLogs/#neostats. - -Warning - - # is a special charactor on most shells and needs to be escaped. So if - you wish to change directory to #neostats, you would actually type cd - \#neostats. Keep this in mind when developing any scripts. - - Each Logfile is timestamped with the time it was rotated out of the - logs/chanlogs/ directory, with the format -YYMMDDHHMMSS.log diff --git a/LogServ.README.html b/LogServ.README.html deleted file mode 100644 index 56eb52c..0000000 --- a/LogServ.README.html +++ /dev/null @@ -1,80 +0,0 @@ - - - LogServ Manual

LogServ Manual


Welcome to the LogServ Manual. This document will aid you in setting up and running LogServServ on your IRC network.

LogServ is a basic Channel Logging Module for the NeoStats Services that can log channel activity to a log file for processing by 3rd party programs such as Onis or MircStats. These programs can then produce HTML pages with interesting statistics on the channel activities.

LogServ is flexible in the logging of channels, and can produce log files in the same format as Xchat, Mirc, EggDrop, or our own custom logging format, meaning you should be able to use just about any IRC Log Parsing program to produce statistics for you.

Additionally, LogServ can rotate log files based on log file size or age, and place them in a different directory for processing at any time.

We recomend that you use the Onis Log file parser, as its what we have done our testing with, and additionally, has several neat features that are applicable to logging lots of channels. These are:

  • Persistance. You don't need to keep old log files around if you wish your statistics to have a long history, thus saving you valuable file system space

  • Easily Customizable with stylesheets

  • Easily scriptable for processing many channels at once

We have provided a sample shell script and Onis configuration file to automatically parse your log files in one go, producing the required output.

LogServ is Copyright, 2003 by Justin Hammond.

1. Prerequisites and Installation.

LogServ is designed to run on Top of NeoStats. The Following requirements at the time of writing are required for NeoStats:

  • A Linux or BSD based Server or Shell.

  • A supported IRCd. Currently, Hybrid7, Unreal, Ultimate2.x or Ultimate3.x or NeoIRCd

  • Some basic Unix administration Skill

  • Of Course, a IRC network to connect it all together.

  • Spare disk space and a webserver to display the output

  • A log file parser such as Onis

Please refer to the NeoStats website for more information on the requirements

1.1. Compiling and Installation

As long as you have successfully setup NeoStats, and installed it correctly, Compiling LogServ is very simple and straight forward. First you must extract the files from the download package. This is as simple as:

bash$ tar -xzf LogServ-<ver>.tar.gz

This should then create a directory called LogServ-<version> where <version> is the Version of LogServ. Then Proceed to Change into the LogServ directory, and run Configure as follows:

bash$./configure [--enable-debug | --with-neostats=<dir>]

--enable-debug is only useful for diagnostics purposes when used in conjunction with debugging tools. There should be no need to use this option on a day to day basis

--with-neostats=<dir> should be used if your neostats directory is not in a standard location (~/NeoStats/). Replace <dir> with the full path to your NeoStats installation directory (NOT SOURCE DIRECTORY)

Configuring LogServ will look something like the following screen:

[Fish@fish-dt]$ ./configure
-checking for gcc... gcc
-checking for C compiler default output... a.out
-checking whether the C compiler works... yes
-checking whether we are cross compiling... no
-checking for suffix of executables...
-checking for suffix of object files... o
-checking whether we are using the GNU C compiler... yes
-checking whether gcc accepts -g... yes
-checking for gcc option to accept ANSI C... none needed
-checking for a BSD-compatible install... /usr/bin/install -c
-checking for pcre_compile in -lpcre... yes
-checking Location of NeoStats...... /home/fish/NeoStats/
-checking for /home/fish/NeoStats//include/dl.h... yes
-checking Version of NeoStats...... Compatible Version
-checking Whether to Enable Debuging...... no
-configure: creating ./config.status
-config.status: creating Makefile
-
-(*----------------------------------------------------------*)
-(| To compile your module, please type 'make'               |)
-(| If make completes without errors, then you               |)
-(| Must 'make install', but please be sure that NeoStats    |)
-(| Is not currently running with a module of the same name  |)
-(| Running, otherwise Make install will not work            |)
-(| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |)
-(| If you are running a BSD, make install may produce a     |)
-(| Error, if that is the case, then please manually copy    |)
-(| opsb.so to the NeoStats/dl directory                     |)
-(| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |)
-(*----------------------------------------------------------*)
-(| For Support please visit:                                |)
-(|    IRC:                   /server irc.irc-chat.org       |)
-(|                                   #neostats channel      |)
-(|    WWW:   http://www.neostats.net/boards/                |)
-(*----------------------------------------------------------*)
-(|This Module was written by:                               |)
-(|      fish (fish@dynam.ac)                                |)
-(*----------------------------------------------------------*)
-

If the configuration did not produce a error, you may then move onto Compiling LogServ. Compiling is simply just issuing the "make" command (or "gmake" if you are running BSD):

[Fish@fish-dt]$ make
-gcc -c -O2 -Wall -g -ggdb -I/home/fish/NeoStats//include/ -I. logserv.c
-gcc -c -O2 -Wall -g -ggdb -I/home/fish/NeoStats//include/ -I. log_processing.c
-ld -shared -o logserv.so  logserv.o log_processing.o
-

again, check for Error messages. As long as there are not error messages, "make install" will install LogServ, this README file, and any auxiliary files needed into your NeoStats directory:

[Fish@fish-dt]$ make install
-/usr/bin/install -c -m 644 LogServ.so  /home/fish/NeoStats//dl/
-/usr/bin/install -c -m 644 README.LogServ /home/fish/NeoStats//dl/../doc/
-

If you receive *ANY* errors at all during the this process, please post them on our Support boards, at http//www.neostats.net/boards/

Once Installation is complete, you can either configure NeoStats to load LogServ when it starts, or load LogServ via IRC.

To Configure NeoStats to automatically load LogServ when it boots, add the following line to your "neostats.cfg" file in the NeoStats directory:

LOAD_MODULE logserv

To load LogServ via IRC, you must make sure you have the appropriate permissions and issue the following command:

/msg neostats load logserv

Thats it. LogServ is now loaded and ready for use

2. Basic Configuration

LogServ is completely configured online via IRC. When you first start up LogServ, it attempts some "Sane" defaults for you get started with, but you should always review these settings as soon as you install. There are a few important settings you may want to review right away. They are:

  • LogType is the format we should be logging as (Xchat, Mirc, EggDrop, or LogServ)

  • Logfile size to rotate at (1Mb by default)

  • Logfile age to rotate at (1Hr by default)

These are outlined below:

2.1. LogType

Logtype is the format you wish to perform your logging in. By default, LogServ logs using its own internal logfile format, but as of writting, no external logfile parser supports that format, so you are advised to change it. There are four possible choices:

  • 0 - LogServ Format. Our own Logging file format

  • 1 - EggDrop Format. The Same logging format as the popular EggDrop Bot

  • 2 - Mirc Format. This is the same format as the mirc 6.0 series

  • 3 - Xchat Format. This is the same format as Xchat 2.0.5 IRC client

    Warning

    Changing the LogType is imediate, and all new entries into a logfile will start with the new format imediatly. You should stop NeoStats, and remove the files in NeoStats/logs/chanlogs/ directory after changing this setting, so when you next process your log files, it will not be confused by the changing formats.

Changing the LogFile Format

Before starting to log any channels, you should select which format you wish to log in. We recomend Xchat format. To change the LogType, issue the following command:

/msg LogServ set logtype <type>

Where:

<type> = The Logging format time, indicated by a number from 0 to 3, representing the differnt formats available as outlined above.

The output is as follows:

>logserv< set logtype 3
--LogServ- LOGTYPE set to 3

Viewing the current Logtype setting

To view the current logtype selected, simple type:

/msg LogServ set list

And all the current settings (the rest will be explained later in this document) are displayed. The output is as follows:

>LogServ< set list
--LogServ- Current LogServ settings:
--LogServ- LOGTYPE: 3 Log Type
--LogServ- LOGSIZE: 2000 Bytes
--LogServ- LOGAGE: 3600 Seconds

2.2. LOGSIZE SETTING

LogServ stores logs in two places on your Shell. Live logs, or logs that are currently being written are stored in the ~/NeoStats/logs/chanlogs/ directory, and these the logs that are currently being updated. When the log reaches a certian size, or age, it is closed, and moved to a the ~/NeoStats/ChanLogs/ directory where you can process the log files. The LogFile size settings specifies how big a "live log" is allowed to reach before it is moved to the final directory. By default, LogServ will rotate all files larger than 1Mb, and this should be satisfactory for most users.

Changing the LogSize to switch at.

To change the size at which a logfile will switch at, use the following format:

/msg SecureServ set logsize <bytes>

Where:

<bytes> = if the file is larger than this size, it is "swapped"

The output is as follows:

>logserv< set logsize 20000
-<LogServ> LOGSIZE set to 20000 by Fish
--LogServ- LOGSIZE set to 20000

Viewing the current setting

Please refer to the previous section.

2.3. LOGAGE SETTING

In addition to the logsize setting above, LogServ will rotate a logfile after it has been opened for a period of time. This is so channels that might not have much activity still get a chance to be updated often.

The logage setting can be changed via:

/msg LogServ set logage <seconds>

Where:

<seconds> = The number of seconds the log file must be opened for before rotating. Minium value is 5 minutes, but its recomended not to go under 1 Hour (3600 seconds)

The output is as follows:

>LogServ< set logage 7200
-<LogServ> LOGAGE set to 7200 by Fish
--LogServ- LOGAGE set to 7200

3. Configuring LogServ to Log Individual Channels

Obviously, we dont want to log every single IRC channel on the network, so you have to tell LogServ what channels you wish to Log. This is fairly basic. You have 4 options:

  • Add A channel

  • Delete A channel

  • Change a Channels settings

  • View the Channel list.

Each Setting is described in the following section.

3.1. Adding a Channel

Adding a Channel to be logged is instantanous, and the channel will begin logging straight after this command has complete. LogServ will join the channel, but not give itself any channel modes, so the channel owner can decide if it should be OP'd or not.

The Syntax is:

/msg LogServ chans add <name> <public> <url>

Where:

<name> = The name of the channel you wish to Log. Must exist on the IRC network.

<public> = Indicates weather to show the channel to non-privledged users in the channel logging list or not. Either the words "public" or "private". If a invalid entry is specified, defaults to Public. Currently doesn't do anything.

<url> = For informational purposes only. Displays the Web Address that users can visit to view the channel statistics.

The output is as follows:

>logserv< chans add #ircop public http://www.neostats.net
-<LogServ> Fish used CHANS
--LogServ- Stats URL is set to http://www.neostats.net
--LogServ- Now Logging #ircop
-<LogServ> Fish Activated Logging on #ircop

And the channel members of #ircop shall see:

--> LogServ (LogBot@stats.dynam.ac) has joined #ircop
--LogServ/#ircop- Fish Actived Channel Logging on #ircop
--LogServ/#ircop- Stats will be avaiable at http://www.neostats.net when Logs are processed next

3.2. Deleting a Channel

Deleting a channel from LogServ means it will no longer log any activity in that channel. If the channel is currently active, LogServ shall part the channel, Close the "live log" and move it to its processing directory.

The Syntax is:

/msg LogServ chans del <name>

Where:

<name> = The name of a channel we are currently logging.

The output is as follows:

>LogServ< chans del #ircop
-<LogServ> Fish used CHANS
--LogServ- Deleted Channel #ircop
-<LogServ> Fish deleted #ircop from Channel Logging

3.3. Changing Channel Settings

You can change the URL location displayed when viewing the channel list using the chans set command.

The Syntax is:

/msg logserv chans set  URL <name> <newurl>

Where:

<name> = The channel name you wish to alter

<newurl> = The new URL you wish to set.

The output is as follows:

<LogServ> Fish used CHANS
--LogServ- Changed URL for #blah to: http://nowhere.com
-<LogServ> Fish changed the URL for #blah to: http://nowhere.com

3.4. Viewing the Channel List

The channel list can be viewed by issuing the following command:

/msg logserv chans list

The output is as follows:

-LogServ- Monitored Channel List:
--LogServ- #blah (-) URL: http://nowhere.com
--LogServ- #bl (-) URL: None
--LogServ- #ircop (*) URL: http://www.neostats.net
--LogServ- End Of List.

The (-) or (*) indicate if the channel is currently active.

4. Misc Commands

There are several other commands available. These are documented below:

4.1. STATS

The stats command shows some basic stats about the Logging Activities. With future versions its expected the amount of information will increase with this command.

The Syntax is:

/msg LogServ stats

And the output is

<LogServ> Fish used STATS
--LogServ- LogServ Stats:
--LogServ- Monitoring 3 channels

4.2. VERSION

This displays LogServ's Version number

The Syntax is:

/msg LogServ version

And the Output is:

<LogServ> Fish used VERSION
--LogServ- LogServ Version Information
--LogServ- LogServ Version: $Rev: 19 $ Compiled Jan 13 2004 at 20:08:11

4.3. ABOUT

This displays a brief message to users describing the function of LogServ:

The Syntax is:

/msg LogServ About

And the output is:

<LogServ> Fish used ABOUT
--LogServ- LogServ logs channel activities to produce HTML pages describing some interesting Statistics
--LogServ- about that channel. If you wish to have your channel logged, 
--LogServ- please contact the Network Adminstration

5. LogFile Parsers

As mentioned in the introduction, LogServ only generates Log files, you still need to get some program to create the HTML pages from the logfiles.

We currently recomend Onis for parsing the logfiles. You can obtain a copy of Onis from http://verplant.org/onis/

We have provided a Sample Onis Configuration based on Onis 0.4.9, and a shell script that can be executed by Crontab to process all your Logfiles. This sample configuration and Shell script are installed into the ~/NeoStats/ChanLogs/ directory by default.

This shell script will automatically go through each of the channels logs running Onis to update the HTML pages. At the top of the script are some variables that should be setup to configure where you wish to place the resultant HTML files, and where Onis is installed. You should read the begining of the file OnisDoLogs.sh to figure out what needs to be configured.

This shell script assumes that you have a webserver on the same shell as NeoStats. If not, its upto the reader to implement some sort of FTP/SCP script to transfer either the logfiles, or the output from Onis to his webserver.

Additionally, if you are using a different LogFile parser, other than Onis, you will have to develop your own script or method for updating the HTML pages. If you do develop a script for another Logfile Processor, please send us a copy, so we may include it in future versions.

The logs for each channel are placed into their own directory within the ChanLogs directory, so if you are logging #neostats, The logfiles would be placed in ChanLogs/#neostats.

Warning

# is a special charactor on most shells and needs to be escaped. So if you wish to change directory to #neostats, you would actually type cd \#neostats. Keep this in mind when developing any scripts.

Each Logfile is timestamped with the time it was rotated out of the logs/chanlogs/ directory, with the format <name>-YYMMDDHHMMSS.log

\ No newline at end of file diff --git a/LogServ.xml b/LogServ.xml deleted file mode 100644 index 25df7c2..0000000 --- a/LogServ.xml +++ /dev/null @@ -1,562 +0,0 @@ - - -
- LogServ Manual - - Welcome to the LogServ Manual. This document will aid you in setting - up and running LogServServ on your IRC network. - - LogServ is a basic Channel Logging Module for the NeoStats Services - that can log channel activity to a log file for processing by 3rd party - programs such as Onis or MircStats. These programs can then produce HTML - pages with interesting statistics on the channel activities. - - LogServ is flexible in the logging of channels, and can produce log - files in the same format as Xchat, Mirc, EggDrop, or our own custom logging - format, meaning you should be able to use just about any IRC Log Parsing - program to produce statistics for you. - - Additionally, LogServ can rotate log files based on log file size or - age, and place them in a different directory for processing at any time. - - We recomend that you use the Onis Log file parser, as its what we have - done our testing with, and additionally, has several neat features that are - applicable to logging lots of channels. These are:Persistance. - You don't need to keep old log files around if you wish your statistics - to have a long history, thus saving you valuable file system spaceEasily - Customizable with stylesheetsEasily - scriptable for processing many channels at once - - We have provided a sample shell script and Onis configuration file to - automatically parse your log files in one go, producing the required output. - - - LogServ is Copyright, 2003 by Justin Hammond. - - - Prerequisites and Installation. - - LogServ is designed to run on Top of NeoStats. The Following - requirements at the time of writing are required for NeoStats:A - Linux or BSD based Server or Shell.A - supported IRCd. Currently, Hybrid7, Unreal, Ultimate2.x or Ultimate3.x or - NeoIRCdSome basic Unix administration - SkillOf Course, a IRC network to connect - it all together.Spare disk space and a - webserver to display the outputA log - file parser such as Onis - - Please refer to the NeoStats website for more information on the - requirements - - - Compiling and Installation - - As long as you have successfully setup NeoStats, and installed it - correctly, Compiling LogServ is very simple and straight forward. First - you must extract the files from the download package. This is as simple - as: - - bash$ tar -xzf LogServ-<ver>.tar.gz - - This should then create a directory called - LogServ-<version> where <version> is the Version of - LogServ. Then Proceed to Change into the LogServ directory, and run - Configure as follows:bash$./configure [--enable-debug | --with-neostats=<dir>] - - --enable-debug is only useful for diagnostics purposes when used - in conjunction with debugging tools. There should be no need to use this - option on a day to day basis - - --with-neostats=<dir> should be used if your neostats - directory is not in a standard location (~/NeoStats/). Replace - <dir> with the full path to your NeoStats installation directory - (NOT SOURCE DIRECTORY) - - Configuring LogServ will look something like the following screen: - - [Fish@fish-dt]$ ./configure -checking for gcc... gcc -checking for C compiler default output... a.out -checking whether the C compiler works... yes -checking whether we are cross compiling... no -checking for suffix of executables... -checking for suffix of object files... o -checking whether we are using the GNU C compiler... yes -checking whether gcc accepts -g... yes -checking for gcc option to accept ANSI C... none needed -checking for a BSD-compatible install... /usr/bin/install -c -checking for pcre_compile in -lpcre... yes -checking Location of NeoStats...... /home/fish/NeoStats/ -checking for /home/fish/NeoStats//include/dl.h... yes -checking Version of NeoStats...... Compatible Version -checking Whether to Enable Debuging...... no -configure: creating ./config.status -config.status: creating Makefile - -(*----------------------------------------------------------*) -(| To compile your module, please type 'make' |) -(| If make completes without errors, then you |) -(| Must 'make install', but please be sure that NeoStats |) -(| Is not currently running with a module of the same name |) -(| Running, otherwise Make install will not work |) -(| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |) -(| If you are running a BSD, make install may produce a |) -(| Error, if that is the case, then please manually copy |) -(| opsb.so to the NeoStats/dl directory |) -(| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |) -(*----------------------------------------------------------*) -(| For Support please visit: |) -(| IRC: /server irc.irc-chat.org |) -(| #neostats channel |) -(| WWW: http://www.neostats.net/boards/ |) -(*----------------------------------------------------------*) -(|This Module was written by: |) -(| fish (fish@dynam.ac) |) -(*----------------------------------------------------------*) - - - If the configuration did not produce a error, you may then move - onto Compiling LogServ. Compiling is simply just issuing the - "make" command (or "gmake" if you are running BSD): - - [Fish@fish-dt]$ make -gcc -c -O2 -Wall -g -ggdb -I/home/fish/NeoStats//include/ -I. logserv.c -gcc -c -O2 -Wall -g -ggdb -I/home/fish/NeoStats//include/ -I. log_processing.c -ld -shared -o logserv.so logserv.o log_processing.o - - - again, check for Error messages. As long as there are not error - messages, "make install" will install LogServ, this README file, - and any auxiliary files needed into your NeoStats directory: - - [Fish@fish-dt]$ make install -/usr/bin/install -c -m 644 LogServ.so /home/fish/NeoStats//dl/ -/usr/bin/install -c -m 644 README.LogServ /home/fish/NeoStats//dl/../doc/ - - - If you receive *ANY* errors at all during the this process, please - post them on our Support boards, at http//www.neostats.net/boards/ - - Once Installation is complete, you can either configure NeoStats - to load LogServ when it starts, or load LogServ via IRC. - - To Configure NeoStats to automatically load LogServ when it boots, - add the following line to your "neostats.cfg" file in the - NeoStats directory: - - LOAD_MODULE logserv - - To load LogServ via IRC, you must make sure you have the - appropriate permissions and issue the following command: - - /msg neostats load logserv - - Thats it. LogServ is now loaded and ready for use - - - - - Basic Configuration - - LogServ is completely configured online via IRC. When you first - start up LogServ, it attempts some "Sane" defaults for you get - started with, but you should always review these settings as soon as you - install. There are a few important settings you may want to review right - away. They are: - - - - LogType is the format we should be logging as (Xchat, Mirc, - EggDrop, or LogServ) - - - - Logfile size to rotate at (1Mb by default) - - - - Logfile age to rotate at (1Hr by default) - - - - These are outlined below: - - - LogType - - Logtype is the format you wish to perform your logging in. By - default, LogServ logs using its own internal logfile format, but as of - writting, no external logfile parser supports that format, so you are - advised to change it. There are four possible choices: - - - - 0 - LogServ Format. Our own Logging file format - - - - 1 - EggDrop Format. The Same logging format as the popular - EggDrop Bot - - - - 2 - Mirc Format. This is the same format as the mirc 6.0 - series - - - - 3 - Xchat Format. This is the same format as Xchat 2.0.5 IRC - client - - - Changing the LogType is imediate, and all new entries into a - logfile will start with the new format imediatly. You should stop - NeoStats, and remove the files in NeoStats/logs/chanlogs/ - directory after changing this setting, so when you next process - your log files, it will not be confused by the changing formats. - - - - - - Changing the LogFile Format - - Before starting to log any channels, you should select which - format you wish to log in. We recomend Xchat format. To change the - LogType, issue the following command: - - /msg LogServ set logtype <type> - - Where: - - <type> = The Logging format time, indicated by a number - from 0 to 3, representing the differnt formats available as outlined - above. - - The output is as follows: - - >logserv< set logtype 3 --LogServ- LOGTYPE set to 3 - - Viewing the current Logtype setting - - To view the current logtype selected, simple type: - - /msg LogServ set list - - And all the current settings (the rest will be explained later in - this document) are displayed. The output is as follows: - - >LogServ< set list --LogServ- Current LogServ settings: --LogServ- LOGTYPE: 3 Log Type --LogServ- LOGSIZE: 2000 Bytes --LogServ- LOGAGE: 3600 Seconds - - - - LOGSIZE SETTING - - LogServ stores logs in two places on your Shell. Live logs, or - logs that are currently being written are stored in the - ~/NeoStats/logs/chanlogs/ directory, and these the logs that are - currently being updated. When the log reaches a certian size, or age, it - is closed, and moved to a the ~/NeoStats/ChanLogs/ directory where you - can process the log files. The LogFile size settings specifies how big a - "live log" is allowed to reach before it is moved to the final - directory. By default, LogServ will rotate all files larger than 1Mb, - and this should be satisfactory for most users. - - Changing the LogSize to switch at. - - - To change the size at which a logfile will switch at, use the - following format: - - /msg SecureServ set logsize <bytes> - - Where: - - <bytes> = if the file is larger than this size, it is - "swapped" - - The output is as follows: - - >logserv< set logsize 20000 -<LogServ> LOGSIZE set to 20000 by Fish --LogServ- LOGSIZE set to 20000 - - Viewing the current setting - - Please refer to the previous section. - - - - LOGAGE SETTING - - In addition to the logsize setting above, LogServ will rotate a - logfile after it has been opened for a period of time. This is so - channels that might not have much activity still get a chance to be - updated often. - - The logage setting can be changed via: - - /msg LogServ set logage <seconds> - - Where: - - <seconds> = The number of seconds the log file must be - opened for before rotating. Minium value is 5 minutes, but its - recomended not to go under 1 Hour (3600 seconds) - - The output is as follows: - - >LogServ< set logage 7200 -<LogServ> LOGAGE set to 7200 by Fish --LogServ- LOGAGE set to 7200 - - - - - Configuring LogServ to Log Individual Channels - - Obviously, we dont want to log every single IRC channel on the - network, so you have to tell LogServ what channels you wish to Log. This - is fairly basic. You have 4 options: - - - - Add A channel - - - - Delete A channel - - - - Change a Channels settings - - - - View the Channel list. - - - - Each Setting is described in the following section. - - - Adding a Channel - - Adding a Channel to be logged is instantanous, and the channel - will begin logging straight after this command has complete. LogServ - will join the channel, but not give itself any channel modes, so the - channel owner can decide if it should be OP'd or not. - - The Syntax is: - - /msg LogServ chans add <name> <public> <url> - - Where: - - <name> = The name of the channel you wish to Log. Must - exist on the IRC network. - - <public> = Indicates weather to show the channel to - non-privledged users in the channel logging list or not. Either the - words "public" or "private". If a invalid entry is - specified, defaults to Public. Currently doesn't do anything. - - - <url> = For informational purposes only. Displays the Web - Address that users can visit to view the channel statistics. - - The output is as follows: - - >logserv< chans add #ircop public http://www.neostats.net -<LogServ> Fish used CHANS --LogServ- Stats URL is set to http://www.neostats.net --LogServ- Now Logging #ircop -<LogServ> Fish Activated Logging on #ircop - - And the channel members of #ircop shall see: - - --> LogServ (LogBot@stats.dynam.ac) has joined #ircop --LogServ/#ircop- Fish Actived Channel Logging on #ircop --LogServ/#ircop- Stats will be avaiable at http://www.neostats.net when Logs are processed next - - - - Deleting a Channel - - Deleting a channel from LogServ means it will no longer log any - activity in that channel. If the channel is currently active, LogServ - shall part the channel, Close the "live log" and move it to its - processing directory. - - The Syntax is: - - /msg LogServ chans del <name> - - Where: - - <name> = The name of a channel we are currently logging. - - - The output is as follows: - - >LogServ< chans del #ircop -<LogServ> Fish used CHANS --LogServ- Deleted Channel #ircop -<LogServ> Fish deleted #ircop from Channel Logging - - - - Changing Channel Settings - - You can change the URL location displayed when viewing the channel - list using the chans set command. - - The Syntax is: - - /msg logserv chans set URL <name> <newurl> - - Where: - - <name> = The channel name you wish to alter - - <newurl> = The new URL you wish to set. - - The output is as follows: - - <LogServ> Fish used CHANS --LogServ- Changed URL for #blah to: http://nowhere.com -<LogServ> Fish changed the URL for #blah to: http://nowhere.com - - - - Viewing the Channel List - - The channel list can be viewed by issuing the following command: - - /msg logserv chans list - - The output is as follows: - - -LogServ- Monitored Channel List: --LogServ- #blah (-) URL: http://nowhere.com --LogServ- #bl (-) URL: None --LogServ- #ircop (*) URL: http://www.neostats.net --LogServ- End Of List. - - The (-) or (*) indicate if the channel is currently active. - - - - - - Misc Commands - - There are several other commands available. These are documented - below: - - - STATS - - The stats command shows some basic stats about the Logging - Activities. With future versions its expected the amount of information - will increase with this command. - - The Syntax is: - - /msg LogServ stats - - And the output is - - <LogServ> Fish used STATS --LogServ- LogServ Stats: --LogServ- Monitoring 3 channels - - - - VERSION - - This displays LogServ's Version number - - The Syntax is: - - /msg LogServ version - - And the Output is: - - <LogServ> Fish used VERSION --LogServ- LogServ Version Information --LogServ- LogServ Version: $Rev: 19 $ Compiled Jan 13 2004 at 20:08:11 - - - - ABOUT - - This displays a brief message to users describing the function of - LogServ: - - The Syntax is: - - /msg LogServ About - - And the output is: - - <LogServ> Fish used ABOUT --LogServ- LogServ logs channel activities to produce HTML pages describing some interesting Statistics --LogServ- about that channel. If you wish to have your channel logged, --LogServ- please contact the Network Adminstration - - - - - LogFile Parsers - - As mentioned in the introduction, LogServ only generates Log files, - you still need to get some program to create the HTML pages from the - logfiles. - - We currently recomend Onis for parsing the logfiles. You can obtain - a copy of Onis from http://verplant.org/onis/ - - We have provided a Sample Onis Configuration based on Onis 0.4.9, - and a shell script that can be executed by Crontab to process all your - Logfiles. This sample configuration and Shell script are installed into - the ~/NeoStats/ChanLogs/ directory by default. - - This shell script will automatically go through each of the channels - logs running Onis to update the HTML pages. At the top of the script are - some variables that should be setup to configure where you wish to place - the resultant HTML files, and where Onis is installed. You should read the - begining of the file OnisDoLogs.sh to figure out what needs to be - configured. - - This shell script assumes that you have a webserver on the same - shell as NeoStats. If not, its upto the reader to implement some sort of - FTP/SCP script to transfer either the logfiles, or the output from Onis to - his webserver. - - Additionally, if you are using a different LogFile parser, other - than Onis, you will have to develop your own script or method for updating - the HTML pages. If you do develop a script for another Logfile Processor, - please send us a copy, so we may include it in future versions. - - The logs for each channel are placed into their own directory within - the ChanLogs directory, so if you are logging #neostats, The logfiles - would be placed in ChanLogs/#neostats. - - - # is a special charactor on most shells and needs to be escaped. - So if you wish to change directory to #neostats, you would actually type - cd \#neostats. Keep this in mind when developing any scripts. - - - Each Logfile is timestamped with the time it was rotated out of the - logs/chanlogs/ directory, with the format <name>-YYMMDDHHMMSS.log - -
\ No newline at end of file diff --git a/README.LogServ b/README.LogServ index 7eac4c0..e536689 100755 --- a/README.LogServ +++ b/README.LogServ @@ -1,2 +1,98 @@ -LogServ 1.0 -===================================================================== + +FloodServ Manual + +1. Installing and configuring FloodServ +--------------------------------------- + +This section explains how to install and configure FloodServ. We +recommend that you read this section in full before trying to install +FloodServ. + +If you have any problems NOT addressed in this or other documents, +please see the Support section for how to contact us for help. + + +1.1 General notes +----------------- + +All commands and filenames are case sensitive. This means that +NeoStats, floodserv, and FLOODSERV are all different things. When +typing commands you should use the same case as provided in this +file or things will not work correctly. + + +1.2 Getting Started +------------------- + +First, you need to uncompress FloodServ. To do this type the following: + + tar xvfz FloodServ3.0.x.tar.gz + +This will vary depending on the version you run of FloodServ. Change the +x in FloodServ3.0.x.tar.gz to match your filename e.g. + + FloodServ3.0.0.tar.gz + +For systems that don't run a new version of tar you need to do this: + + gzip -d FloodServ3.0.x.tar.gz + tar xvf FloodServ3.0.x.tar + +1.3 Running configure +--------------------- + +You must first run the configure script so that FloodServ can determine +your build environment. + +To run configure, you must first change to the directory where you +uncompressed FloodServ. e.g. + + cd ~/FloodServ3.0.0 + +Your prompt should look something like: + + [user@host FloodServ3.0.0] + +Now type: + + ./configure + +The configure script will then check to see if all necessary programs to +run FloodServ are installed on your system. + +Optional settings: +------------------ + +There are some options you can pass to configure if you wish. + +Debugging: + +Most users will never look at this option. It compiles FloodServ +with debugging turned on. I would only suggest using this if you +have problems and are about to fill out a bug form. + + --enable-debug Enables Debugging + + +1.4 Compiling FloodServ +----------------------- + +Ok, you should now be back at a shell prompt, type: + + make + +it will go through the source and compile it into an executable +binary file. + + +1.5 Installing FloodServ +------------------------ + +To install FloodServ type: + + make install + +This will create the necessary files, and copy them to the +installation directory. + + diff --git a/README.LogServ.html b/README.LogServ.html new file mode 100644 index 0000000..f9c0381 --- /dev/null +++ b/README.LogServ.html @@ -0,0 +1,49 @@ + + + ModuleName 3.0 Manual

ModuleName 3.0 Manual


Welcome to the ModuleName Manual. This document will aid you in setting up and running ModuleName on your IRC network.

<add module introduction>

ModuleName is Copyright, 2005 by Justin Hammond.

1. Prerequisites and Installation.

ModuleName is designed to run on Top of NeoStats. The Following requirements at the time of writing are required for NeoStats:

  • A Linux or BSD based Server or Shell.

  • A IRCd supported by NeoStats. See the NeoStats website.

  • Some basic Unix administration Skill

  • Of Course, a IRC network to connect it all together.

Please refer to the NeoStats website for more information on the requirements

ModuleName itself requires the following:

  • NeoStats 3.0 or Higher correctly installed and Running

  • The time to read this entire document.

1.1. Compiling and Installation

As long as you have successfully setup NeoStats, and installed it correctly, Compiling ModuleName is very simple and straight forward. First you must extract the files from the download package. This is as simple as:

bash$ tar -xzf ModuleName-<ver>.tar.gz

This should then create a directory called ModuleName-<version> where <version> is the Version of ModuleName. Then Proceed to Change into the ModuleName directory, and run Configure as follows:

bash$./configure [--enable-debug | --with-neostats=<dir>]

--enable-debug is only useful for diagnostics purposes when used in conjunction with debugging tools. There should be no need to use this option on a day to day basis

--with-neostats=<dir> should be used if your neostats directory is not in a standard location (~/NeoStats/). Replace <dir> with the full path to your NeoStats installation directory (NOT SOURCE DIRECTORY)

Configuring ModuleName will look something like the following screen:

Fishs-Mac:~/Documents/Dev/ModuleName justin$ ./configure       
+checking whether to enable maintainer-specific portions of Makefiles... no
+checking for a BSD-compatible install... /usr/bin/install -c
+checking whether build environment is sane... yes
+checking for gawk... no
+checking for mawk... no
+checking for nawk... no
+
+<snip>
+
+checking To Enable AutoTools Debug Mode?... no
+checking silent building of source files... Enabled
+configure: creating ./config.status
+config.status: creating Makefile
+config.status: creating modconfig.h
+config.status: modconfig.h is unchanged
+config.status: executing depfiles commands
+Configuration complete.
+Press Enter key to read the release notes

The Configure process will then prompt you to read the release notes. You are encouraged to read this document throughly as it might contain important information about the current version of ModuleName that isn't covered in the manual.

If the configuration did not produce a error, you may then move onto Compiling ModuleName. Compiling is simply just issuing the "make" command (or "gmake" if you are running BSD):

Fishs-Mac:~/Documents/Dev/ModuleName justin$ make
+make -s all-am
+Compiling Helpers.c:                                                  [OK]     
+Compiling ModuleName.c:                                               [OK]     
+Compiling scan.c:                                                     [OK]     
+Compiling OnJoinBot.c:                                                [OK]     
+Compiling ModuleName_help.c:                                          [OK]     
+Compiling update.c:                                                   [OK] 

Again, check for Error messages. As long as there are not error messages, "make install" will install ModuleName, this README file, and any auxiliary files needed into your NeoStats directory:

Fishs-Mac:~/Documents/Dev/ModuleName justin$ make install
+Installing ModuleName.so:                                             [OK]     
+Installing viri.dat:                                                  [OK]     
+Installing README.ModuleName:                                         [OK]     
+Installing README.ModuleName.html:                                    [OK] 

If you receive *ANY* errors at all during the this process, please post them on our Support boards, at http//www.neostats.net/boards/

Once Installation is complete, you can either configure NeoStats to load ModuleName when it starts, or load ModuleName via IRC.

To Configure NeoStats to automatically load ModuleName when it boots, modify the neostats.conf file and add ModuleName to the list of modules to load:

MODULENAME = {
+       "statserv",
+       "hostserv",
+       "ModuleName",
+} 

To load ModuleName via IRC, you must make sure you have the appropriate permissions and issue the following command:

/msg neostats load ModuleName

Thats it. ModuleName is now loaded and ready for use (in fact, it will already be running now, but read on for further information.)

2. Basic Configuration

ModuleName is completely configured online via IRC. When you first start up ModuleName, it attempts some "Sane" defaults for you get started with, but you should always review these settings as soon as you install. There are a few important settings you may want to review right away. They are:

  • blah blah

  • blah blah

  • blah blah

These are outlined below:

2.1. Blah Blah

Blah Blah

2.2. Blah Blah

BLAH BLAH

3. Detailed Configuration

ModuleName attempts to be as configurable as possible in order to cater for each individual networks requirements. This in turn though makes the configuration very complex. There are many many settings with ModuleName that affect how it operates, how it responds and even, how affects the performance of NeoStats Overall. Out of the box, ModuleName provides sensible defaults for these settings, but you may wish to read this section for details on exactly what each option does, and its affect on how ModuleName operates.

The following list summaries the available options you can set in ModuleName

  • NICK

  • ALTNICK

  • USER

  • HOST

  • REALNAME

  • EXCLUSIONS

  • BLAHBLAH

To change any of these settings, you use the Set Interface in ModuleName. Eg:

/msg ModuleName set <option> <params>

To view the current settings, issue the following command:

/msg ModuleName set list

The following Sections describes the different options, their params, and the effect on ModuleName in detail.

3.1. NICK Setting

This setting allows you to change the Nickname that ModuleName uses when it connects to your network. If you change this setting make sure you update your NeoNet account, otherwise you might loose access to the Secure IRC-Chat site if we perform a check on your network and can't find "ModuleName" running.

Warning

This option requires you to reload ModuleName or restart NeoStats to take effect.

/msg ModuleName set NICK <nickname>

3.2. ALTNICK Setting

This setting allows you to set a "Backup" nickname used for ModuleName. If the primary Nickname in the NICK Setting is not available, ModuleName will use this nickname, and if that is not available, it will use a automatically generated nickname

Warning

This option requires you to reload ModuleName or restart NeoStats to take effect

/msg ModuleName set ALTNICK <nickname>

3.3. USER Setting

This option allows you to customize the "user" or ident portion of the ModuleName Bot.

Warning

This option requires you to reload ModuleName or restart NeoStats to take effect

/msg ModuleName set USER <user>

3.4. HOST Setting

This option allows you to customize the Hostname that ModuleName uses when it signs onto your Network. It defaults to the Standard Hostname specified in your NeoStats configuration.

Warning

This option requires you to reload ModuleName or restart NeoStats to take effect

/msg ModuleName set HOST <host>

3.5. REALNAME Setting

This option allows you to customize the realname (or Gecos) that ModuleName uses when it signs onto your Network.

Warning

This option requires you to reload ModuleName or restart NeoStats to take effect

/msg ModuleName set REALNAME <realname>

3.6. EXCLUSIONS Setting

This option enables ModuleName to use the Global Exclusions list that is control by the main NeoStats bot. This allows you to maintain a "global" exclusion list that is applicable to all modules in NeoStats, and then only apply individual exclusions to ModuleName.

Warning

This option only becomes effective on new users joining your Network. Existing users that are already connected when you enable this option will not be rescanned for exclusions, as the Global Exclusions are only effected when a new user signs onto the Network. In order to make the global exclusions list effective straight away, you should restart NeoStats.

If you wish to enable or disable the Global Exclusions lists, issue the following command

/msg ModuleName set EXCLUSIONS <ON/OFF>

3.7. BLAH Blah Setting

blah blah description

To Change the setting, issue the following Command:

/msg ModuleName set blahblah <blah> 

4. Operational Commands

ModuleName has a number of commands that you can issue it in order to perform checks or operations on your IRC network. These commands aid Administrators in keeping their network secure, and keeping ModuleName upto date.

The following list summarizes these commands:

  • HELP

  • VERSION

  • ABOUT

  • CREDITS

  • LEVELS

  • SET

  • EXCLUDE

  • BLAHBLAH

The following Sections Describe these commands in detail

4.1. HELP Command

The help command allows the users to access the online help for the different commands available. You can get general help about the available commands, or can access more specific information about a command.

To see the help pages, use the following format:

/msg ModuleName help [command]
+

command is optional and only required if you want more specific information about a particular command

4.2. VERSION Command

This command displays the Version of ModuleName, and the dat files.

The format of the command is as follows:

/msg ModuleName version
+

4.3. ABOUT Command

The about command shows a brief description of the Bot and its purpose.

The format of the command is as follows:

/msg ModuleName about
+

4.4. CREDITS Command

The credits command shows details about the authors or contributors of to the Module

The format of the command is as follows:

/msg ModuleName credits
+

4.5. LEVELS Command

The levels command allows you to adjust the security of each command available in this module. You can make certian commands only available to higher "level" users in NeoStats.

For more information about NeoStats Levels and Security, please consult the NeoStats Manual

To list the currently configured levels, issue the following command:

/msg ModuleName levels list
+

To change the minimum level required to execute a command, issue the following command:

/msg ModuleName levels <command> <level>

Where:

command = is the actual command name you wish to modify

level = a number between 0 and 200 that specifies the new level.

4.6. SET Command

The set command allows you to modify settings applicable to this module. For a complete description of the available set options, please consult the Detailed Configuration Section of this manual.

4.7. EXCLUDE Command

Exclusion lists allow you to specify certain Hostmasks, Servers, or Channels that should be excluded from monitoring by ModuleName. This exclusion list would allow a administrator to say, allow users on that are matched against Trojans, when the administrator has verified that the Trojan does not in fact exist on the users host.

Caution

Exclusions should be setup for your Services Server, so that ModuleName does not try to scan ChanServ, or NickServ, or any of the bots relating to Nickname protection.

With NeoStats 3.0, you should also be aware that there are two types of Exclusion Lists. There are "Global" exclusion lists that all modules may optionally use, and there is module specific exclusion lists. ModuleName defaults to not using the Global Exclusion lists. You can enable it by the following command:

/msg ModuleName set exclusions on

Adding a Entry

To add a entry to the Exclusion list, use the following format:

/msg ModuleName exclude add <host/Server/Channel/UserHost> <pattern> <reason>

Where:

<Host/Server/Channel/UserHost> = The type of exclusion you are adding. The different types are:

  • Host - The Users real (Internet) Hostname

  • Server - The Users server they are connecting to. You should ensure you add a exclusion for your Services Server

  • Channel - A specific channel on your IRC Network

  • UserHost - The users Virtual Hostname (IRC)

<pattern> = The pattern you wish to match on. May include wildcard charactors such as * and ?

<reason> = a short description of the exclusion, for operator reference only.

The output is as follows:

[13:20] -ModuleName- Added *.blah.com (userhost) to exclusion list
+[13:20] ModuleName Fish added *.blah.com (userhost) to the exclusion list

Listing an Entry

To list the Exclusions simple type:

/msg ModuleName exclude list

And all the current exclusions are listed. Additionally, a Position number is provided for use with the delete command. The output is as follows:

[13:21]  -ModuleName- Exclusion list:
+[13:21]  -ModuleName- #bothouse (Channel) Added by Fish on Sat Aug 13 2005 01:20 AM SGT for Requested
+[13:21]  -ModuleName- #ircop (Channel) Added by Fish on Sat Aug 13 2005 07:40 PM SGT for IRCop channel
+[13:21]  -ModuleName- *irc-chat.net (Host) Added by Fish on Tue Aug 09 2005 10:13 PM SGT for Services Exclusion
+[13:21]  -ModuleName- chieftess!*@* (Userhost) Added by Fish on Tue Aug 09 2005 10:14 PM SGT for buggy client
+[13:21]  -ModuleName- *.blah.com (Userhost) Added by Fish on Sun Jan 15 2006 01:20 PM SGT for Cause Blah.com is cool
+[13:21]  -ModuleName- End of list.

Deleting an Entry

To delete a entry, you should first lookup the Position of the entry that you wish to delete. The format of the command is as follows:

/msg ModuleName exclude del <pattern>

Where:

<pattern> is the pattern of the entry you wish to delete in the list

The output of the command is as follows:

[13:22]  ModuleName Fish used EXCLUDE
+[13:22]  -ModuleName- *.blah.com delete from exclusion list

4.8. BLAHBLAH Command

That command forces ModuleName to check the Dat File version at http://secure.irc-chat.net/ and download the latest version if required.

Warning

Repeated use of this command in a short period of time will result in your account at secure.irc-chat.net being suspended for abuse. Use with CARE

The format of the command is as follows:

/msg ModuleName update

5. Optional Chapter

use this to write any optional information etc etc etc

5.1. Optional Sub Heading

Subheading

5.1.1. Minor heading

minor heading

\ No newline at end of file diff --git a/README.LogServ.xml b/README.LogServ.xml new file mode 100644 index 0000000..af0db48 --- /dev/null +++ b/README.LogServ.xml @@ -0,0 +1,629 @@ + + +
+ ModuleName 3.0 Manual + + Welcome to the ModuleName Manual. This document will aid you in + setting up and running ModuleName on your IRC network. + + <add module introduction> + + ModuleName is Copyright, 2005 by Justin Hammond. + + + Prerequisites and Installation. + + ModuleName is designed to run on Top of NeoStats. The Following + requirements at the time of writing are required for + NeoStats: + + A Linux or BSD based Server or Shell. + + + + A IRCd supported by NeoStats. See the NeoStats website. + + + + Some basic Unix administration Skill + + + + Of Course, a IRC network to connect it all together. + + + + Please refer to the NeoStats website for more information on the + requirements + + ModuleName itself requires the following: + + NeoStats 3.0 or Higher correctly installed and Running + + + + The time to read this entire document. + + + + + Compiling and Installation + + As long as you have successfully setup NeoStats, and installed it + correctly, Compiling ModuleName is very simple and straight forward. + First you must extract the files from the download package. This is as + simple as: + + bash$ tar -xzf ModuleName-<ver>.tar.gz + + This should then create a directory called + ModuleName-<version> where <version> is the Version of + ModuleName. Then Proceed to Change into the ModuleName directory, and + run Configure as follows:bash$./configure [--enable-debug | --with-neostats=<dir>] + + --enable-debug is only useful for diagnostics purposes when used + in conjunction with debugging tools. There should be no need to use this + option on a day to day basis + + --with-neostats=<dir> should be used if your neostats + directory is not in a standard location (~/NeoStats/). Replace + <dir> with the full path to your NeoStats installation directory + (NOT SOURCE DIRECTORY) + + Configuring ModuleName will look something like the following + screen: + + Fishs-Mac:~/Documents/Dev/ModuleName justin$ ./configure +checking whether to enable maintainer-specific portions of Makefiles... no +checking for a BSD-compatible install... /usr/bin/install -c +checking whether build environment is sane... yes +checking for gawk... no +checking for mawk... no +checking for nawk... no + +<snip> + +checking To Enable AutoTools Debug Mode?... no +checking silent building of source files... Enabled +configure: creating ./config.status +config.status: creating Makefile +config.status: creating modconfig.h +config.status: modconfig.h is unchanged +config.status: executing depfiles commands +Configuration complete. +Press Enter key to read the release notes + + The Configure process will then prompt you to read the release + notes. You are encouraged to read this document throughly as it might + contain important information about the current version of ModuleName + that isn't covered in the manual. + + If the configuration did not produce a error, you may then move + onto Compiling ModuleName. Compiling is simply just issuing the "make" + command (or "gmake" if you are running BSD): + + Fishs-Mac:~/Documents/Dev/ModuleName justin$ make +make -s all-am +Compiling Helpers.c: [OK] +Compiling ModuleName.c: [OK] +Compiling scan.c: [OK] +Compiling OnJoinBot.c: [OK] +Compiling ModuleName_help.c: [OK] +Compiling update.c: [OK] + + Again, check for Error messages. As long as there are not error + messages, "make install" will install ModuleName, this README file, and + any auxiliary files needed into your NeoStats directory: + + Fishs-Mac:~/Documents/Dev/ModuleName justin$ make install +Installing ModuleName.so: [OK] +Installing viri.dat: [OK] +Installing README.ModuleName: [OK] +Installing README.ModuleName.html: [OK] + + If you receive *ANY* errors at all during the this process, please + post them on our Support boards, at + http//www.neostats.net/boards/ + + Once Installation is complete, you can either configure NeoStats + to load ModuleName when it starts, or load ModuleName via IRC. + + To Configure NeoStats to automatically load ModuleName when it + boots, modify the neostats.conf file and add ModuleName to the list of + modules to load: + + MODULENAME = { + "statserv", + "hostserv", + "ModuleName", +} + + To load ModuleName via IRC, you must make sure you have the + appropriate permissions and issue the following command: + + /msg neostats load ModuleName + + Thats it. ModuleName is now loaded and ready for use (in fact, it + will already be running now, but read on for further + information.) + + + + + Basic Configuration + + ModuleName is completely configured online via IRC. When you first + start up ModuleName, it attempts some "Sane" defaults for you get started + with, but you should always review these settings as soon as you install. + There are a few important settings you may want to review right away. They + are: + + + + blah blah + + + + blah blah + + + + blah blah + + + + These are outlined below: + + + Blah Blah + + Blah Blah + + + + Blah Blah + + BLAH BLAH + + + + + Detailed Configuration + + ModuleName attempts to be as configurable as possible in order to + cater for each individual networks requirements. This in turn though makes + the configuration very complex. There are many many settings with + ModuleName that affect how it operates, how it responds and even, how + affects the performance of NeoStats Overall. Out of the box, ModuleName + provides sensible defaults for these settings, but you may wish to read + this section for details on exactly what each option does, and its affect + on how ModuleName operates. + + The following list summaries the available options you can set in + ModuleName + + + + NICK + + + + ALTNICK + + + + USER + + + + HOST + + + + REALNAME + + + + EXCLUSIONS + + + + BLAHBLAH + + + + To change any of these settings, you use the Set Interface in + ModuleName. Eg: + + /msg ModuleName set <option> <params> + + To view the current settings, issue the following command: + + /msg ModuleName set list + + The following Sections describes the different options, their + params, and the effect on ModuleName in detail. + + + NICK Setting + + This setting allows you to change the Nickname that ModuleName + uses when it connects to your network. If you change this setting make + sure you update your NeoNet account, otherwise you might loose access to + the Secure IRC-Chat site if we perform a check on your network and can't + find "ModuleName" running. + + + This option requires you to reload ModuleName or restart + NeoStats to take effect. + + + /msg ModuleName set NICK <nickname> + + + + ALTNICK Setting + + This setting allows you to set a "Backup" nickname used for + ModuleName. If the primary Nickname in the NICK Setting is not + available, ModuleName will use this nickname, and if that is not + available, it will use a automatically generated nickname + + + This option requires you to reload ModuleName or restart + NeoStats to take effect + + + /msg ModuleName set ALTNICK <nickname> + + + + USER Setting + + This option allows you to customize the "user" or ident portion of + the ModuleName Bot. + + + This option requires you to reload ModuleName or restart + NeoStats to take effect + + + /msg ModuleName set USER <user> + + + + HOST Setting + + This option allows you to customize the Hostname that ModuleName + uses when it signs onto your Network. It defaults to the Standard + Hostname specified in your NeoStats configuration. + + + This option requires you to reload ModuleName or restart + NeoStats to take effect + + + /msg ModuleName set HOST <host> + + + + REALNAME Setting + + This option allows you to customize the realname (or Gecos) that + ModuleName uses when it signs onto your Network. + + + This option requires you to reload ModuleName or restart + NeoStats to take effect + + + /msg ModuleName set REALNAME <realname> + + + + EXCLUSIONS Setting + + This option enables ModuleName to use the Global Exclusions list + that is control by the main NeoStats bot. This allows you to maintain a + "global" exclusion list that is applicable to all modules in NeoStats, + and then only apply individual exclusions to ModuleName. + + + This option only becomes effective on new users joining your + Network. Existing users that are already connected when you enable + this option will not be rescanned for exclusions, as the Global + Exclusions are only effected when a new user signs onto the Network. + In order to make the global exclusions list effective straight away, + you should restart NeoStats. + + + If you wish to enable or disable the Global Exclusions lists, + issue the following command + + /msg ModuleName set EXCLUSIONS <ON/OFF> + + + + BLAH Blah Setting + + blah blah description + + To Change the setting, issue the following Command: + + /msg ModuleName set blahblah <blah> + + + + + Operational Commands + + ModuleName has a number of commands that you can issue it in order + to perform checks or operations on your IRC network. These commands aid + Administrators in keeping their network secure, and keeping ModuleName + upto date. + + The following list summarizes these commands: + + + + HELP + + + + VERSION + + + + ABOUT + + + + CREDITS + + + + LEVELS + + + + SET + + + + EXCLUDE + + + + BLAHBLAH + + + + The following Sections Describe these commands in detail + + + HELP Command + + The help command allows the users to access the online help for + the different commands available. You can get general help about the + available commands, or can access more specific information about a + command. + + To see the help pages, use the following format: + + /msg ModuleName help [command] + + + command is optional and only required if you want more specific + information about a particular command + + + + VERSION Command + + This command displays the Version of ModuleName, and the dat + files. + + The format of the command is as follows: + + /msg ModuleName version + + + + + ABOUT Command + + The about command shows a brief description of the Bot and its + purpose. + + The format of the command is as follows: + + /msg ModuleName about + + + + + CREDITS Command + + The credits command shows details about the authors or + contributors of to the Module + + The format of the command is as follows: + + /msg ModuleName credits + + + + + LEVELS Command + + The levels command allows you to adjust the security of each + command available in this module. You can make certian commands only + available to higher "level" users in NeoStats. + + For more information about NeoStats Levels and Security, please + consult the NeoStats Manual + + To list the currently configured levels, issue the following + command: + + /msg ModuleName levels list + + + To change the minimum level required to execute a command, issue + the following command: + + /msg ModuleName levels <command> <level> + + Where: + + command = is the actual command name you wish to modify + + level = a number between 0 and 200 that specifies the new + level. + + + + SET Command + + The set command allows you to modify settings applicable to this + module. For a complete description of the available set options, please + consult the Detailed Configuration Section of this manual. + + + + EXCLUDE Command + + Exclusion lists allow you to specify certain Hostmasks, Servers, + or Channels that should be excluded from monitoring by ModuleName. This + exclusion list would allow a administrator to say, allow users on that + are matched against Trojans, when the administrator has verified that + the Trojan does not in fact exist on the users host. + + + Exclusions should be setup for your Services Server, so that + ModuleName does not try to scan ChanServ, or NickServ, or any of the + bots relating to Nickname protection. + + + With NeoStats 3.0, you should also be aware that there are two + types of Exclusion Lists. There are "Global" exclusion lists that all + modules may optionally use, and there is module specific exclusion + lists. ModuleName defaults to not using the Global Exclusion lists. You + can enable it by the following command:/msg ModuleName set exclusions on + + Adding a Entry + + To add a entry to the Exclusion list, use the following + format: + + /msg ModuleName exclude add <host/Server/Channel/UserHost> <pattern> <reason> + + Where: + + <Host/Server/Channel/UserHost> = The type of exclusion you + are adding. The different types are: + + Host - The Users real (Internet) Hostname + + + + Server - The Users server they are connecting to. You should + ensure you add a exclusion for your Services Server + + + + Channel - A specific channel on your IRC Network + + + + UserHost - The users Virtual Hostname (IRC) + + + + <pattern> = The pattern you wish to match on. May include + wildcard charactors such as * and ? + + <reason> = a short description of the exclusion, for + operator reference only. + + The output is as follows: + + [13:20] -ModuleName- Added *.blah.com (userhost) to exclusion list +[13:20] ModuleName Fish added *.blah.com (userhost) to the exclusion list + + Listing an Entry + + To list the Exclusions simple type: + + /msg ModuleName exclude list + + And all the current exclusions are listed. Additionally, a + Position number is provided for use with the delete command. The output + is as follows: + + [13:21] -ModuleName- Exclusion list: +[13:21] -ModuleName- #bothouse (Channel) Added by Fish on Sat Aug 13 2005 01:20 AM SGT for Requested +[13:21] -ModuleName- #ircop (Channel) Added by Fish on Sat Aug 13 2005 07:40 PM SGT for IRCop channel +[13:21] -ModuleName- *irc-chat.net (Host) Added by Fish on Tue Aug 09 2005 10:13 PM SGT for Services Exclusion +[13:21] -ModuleName- chieftess!*@* (Userhost) Added by Fish on Tue Aug 09 2005 10:14 PM SGT for buggy client +[13:21] -ModuleName- *.blah.com (Userhost) Added by Fish on Sun Jan 15 2006 01:20 PM SGT for Cause Blah.com is cool +[13:21] -ModuleName- End of list. + + Deleting an Entry + + To delete a entry, you should first lookup the Position of the + entry that you wish to delete. The format of the command is as + follows: + + /msg ModuleName exclude del <pattern> + + Where: + + <pattern> is the pattern of the entry you wish to delete in + the list + + The output of the command is as follows: + + [13:22] ModuleName Fish used EXCLUDE +[13:22] -ModuleName- *.blah.com delete from exclusion list + + + + BLAHBLAH Command + + That command forces ModuleName to check the Dat File version at + http://secure.irc-chat.net/ and download the + latest version if required. + + + Repeated use of this command in a short period of time will + result in your account at secure.irc-chat.net being suspended for + abuse. Use with CARE + + + The format of the command is as follows: + + /msg ModuleName update + + + + + Optional Chapter + + use this to write any optional information etc etc etc + + + Optional Sub Heading + + Subheading + + + Minor heading + + minor heading + + + +
\ No newline at end of file