X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=html%2Fadminmanual-8.html;h=e3c38cd701e342a453d46117a4a63b4348399dd8;hb=4132ec72fbe241d407e0af7ad00cef550d5b806e;hp=694898b4cc51607c4ad671c7c7ea3ef0fbe40559;hpb=61660841afb3901002602e4956f09de5567bc950;p=spider.git diff --git a/html/adminmanual-8.html b/html/adminmanual-8.html index 694898b4..e3c38cd7 100644 --- a/html/adminmanual-8.html +++ b/html/adminmanual-8.html @@ -1,8 +1,8 @@ - - The DXSpider Installation and Administration Manual: Other filters + + The DXSpider Administration Manual v1.50: Web based statistics @@ -13,119 +13,99 @@ Previous Contents
-

8. Other filters

+

8. Web based statistics

-

8.1 Filtering Mail -

+

From version 1.50, you can use the freeware software MRTG to produce +really nice graphical statistics on your web site. For an example +try +http://www.gb7mbc.net/mrtg/stats.html.

-

In the /spider/msg directory you will find a file called badmsg.pl.issue. Rename -this to badmsg.pl and edit the file. The original looks something like this .... +

The following should help you get it all working.

+ +

First you need to download the latest version of MRTG from +http://people.ee.ethz.ch/~oetiker/webtools/mrtg/. +You will also need the following files..

+libpng-1.0.14.tar.gz
+zlib-1.1.4.tar.gz
+gd-1.8.3.tar.gz
+
+
+

+

Login to your machine as the root user, put all the downloaded files +in /usr/local/src/ (or wherever you prefer) and untar and compile them. +All the information to compile and install these sources come with them. +After compilation and installation, you will find MRTG in /usr/local/mrtg-2.

-# the list of regexes for messages that we won't store having -# received them (bear in mind that we must receive them fully before -# we can bin them) - - -# The format of each line is as follows - -# type source pattern -# P/B/F T/F/O/S regex - -# type: P - private, B - bulletin (msg), F - file (ak1a bull) -# source: T - to field, F - from field, O - origin, S - subject -# pattern: a perl regex on the field requested - -# Currently only type B and P msgs are affected by this code. -# -# The list is read from the top down, the first pattern that matches -# causes the action to be taken. - -# The pattern can be undef or 0 in which case it will always be selected -# for the action specified - +

Now copy all the files in /usr/local/src/mrtg-2.9.22/images/ to +/spider/html/mrtg/

+

You now need to make 2 symbolic links like below...

+

+

+
+ln -s /usr/local/mrtg-2/bin/mrtg /usr/bin/mrtg
+ln -s /usr/local/mrtg-2/lib/mrtg2 /usr/lib/mrtg2
+
+
+

-package DXMsg; +

Now login to the cluster with your sysop callsign and run the command +"mrtg all".

-@badmsg = ( -'B', 'T', 'SALE', -'B', 'T', 'WANTED', -'B', 'S', 'WANTED', -'B', 'S', 'SALE', -'B', 'S', 'WTB', -'B', 'S', 'WTS', -'B', 'T', 'FS', -); +

Now you are nearly there! Login as the sysop user and change to the +/spider/html/mrtg/ directory. Now run the command indexmaker as +shown below...

+

+

+
+indexmaker --output stats.html --columns=1 --title "MRTG statistics for GB7DJK" ../../mrtg/mrtg.cfg
 
-

-

I think this is fairly self explanatory. It is simply a list of subject -headers that we do not want to pass on to either the users of the cluster or -the other cluster nodes that we are linked to. This is usually because of -rules and regulations pertaining to items for sale etc in a particular country. -

-

8.2 Filtering DX callouts (Depricated) -

+

+

Changing the callsign for your own cluster callsign of course!

-

From version 1.47, this method is replaced by the command set/baddx -

-

In the same way as mail, there are some types of spot we do not wish to pass on -to users or linked cluster nodes. In the /spider/data directory you will find -a file called baddx.pl.issue. Rename this to baddx.pl and edit the file. The -original looks like this .... +

And finally you need to login as the root user and create one last +symbolic link. Where this points will depend on where your html +documents are kept. For RedHat systems you use...

-
-# the list of dx spot addresses that we don't store and don't pass on
-
-
-package DXProt;
-
-@baddx = qw 
-
- FROG 
- SALE
- FORSALE
- WANTED
- P1RATE
- PIRATE
- TEST
- DXTEST
- NIL
- NOCALL 
-);
+ln -s /home/sysop/spider/html/mrtg /home/httpd/html/mrtg
 
-

-

Again, this is simply a list of names we do not want to see in the spotted -field of a DX callout. -

-

-

8.3 Filtering words from text fields in Announce, Talk and DX spots -

- -

Create a file in /spider/data called badwords. The format is quite -simple. Lines beginning with # are ignored so comments can be added. An -example file is below ... +

+

and for SuSE systems...

-# Below is a list of words we do not wish to see on the cluster
-grunge grunged grunging
-splodge splodger splodging
-grince
-fluffle
+ln -s /home/sysop/spider/html/mrtg /usr/local/httpd/htdocs/mrtg
 
-

Multiple words can be used on the same line as shown. Obviously these -are just examples :-) +

+

If you now point your browser to your website as below it should all +be happening!

-

You can reload the file from the cluster prompt as sysop with load/badwords. +

+
+http://www.xxx.xxx/mrtg/stats.html
+
+
+

+

Of course, to get the stats to update, you need to add some information +in the spider crontab file as below...

+

+
+# Update stats for mrtg on website
+00,05,10,15,20,25,30,35,40,45,50,55 * * * * run_cmd('mrtg all')
+
+
+

+

This will update the site every 5 minutes.

+
Next Previous