summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 003f1e2)
raw | patch | inline | side by side (parent: 003f1e2)
author | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 6 Jan 2010 14:29:55 +0000 (14:29 +0000) | ||
committer | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 6 Jan 2010 14:29:55 +0000 (14:29 +0000) |
- Fixed missing libraries (Closes: #816)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15088 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15088 594d385d-05f5-0310-b6e9-bd551577e9d8
index 023f4281fb0c1afad63ca56709efd88fe3cee439..7637e820950e3d5b6bb187d8b9e46080fa8586c7 100644 (file)
-goQuota.pl - run this script via cron (each 5-10 min for examle). It makes
+goQuota.pl - run this script via cron (each 5-10 min for example). It makes
cache file (quota.db) with traffic usage and user info from LDAP
goQuotaView.pl - read collected data from quota.db and print it to
stdout in human readable format
+Libraries needed
+
+The goQuotaView.pl needs
+
+libtimedate-perl
+
+
goSquid.pl - connect this script to squid
redirect_program /usr/local/sbin/goSquid
At this time all scripts have no config file. Please, edit source to configure.
Igor Muratov <migor@altlinux.org>
+
index cceeffa90d6a7641271af45316f5de303099ae05..2e8ac9a7fbb7336d147e4b95cebc53431ee9a65c 100644 (file)
-#!/usr/bin/perl
+#!/usr/bin/perl -w
#
# Parse squid log and write current traffic usage by users into cache
#
index 7dd14972db00dba0d20658e245ac7b8d3c535c2f..4024a3d4ccdbcd73afbff6d3d6b833bf1f457871 100644 (file)
-#!/usr/bin/perl
+#!/usr/bin/perl -w
#
# Show user info from cache
#
use strict;
use DB_File;
+use Date::Format;
my $CACHE_FILE = '/var/spool/squid/quota.db';
my $FORMAT = "A16 A5 S S L A5 L L L";
index b91db163b13b5d575448cd5f74e0c7a1c345ff14..0be6f8d22593e1579acbb1e0ed587c234897137a 100644 (file)
-#!/usr/bin/perl
+#!/usr/bin/perl -w
#
# Squid redirect programm for GOsa project
#