EnglishFrenchSpanish

OnWorks favicon

sarg-reports - Online in the Cloud

Run sarg-reports in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command sarg-reports that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


sarg-reports - Daily/Weekly/Monthly squid usage reports creation tool

SYNOPSIS


sarg-reports [OPTIONS]

DESCRIPTION


This manual page documents briefly the sarg-reports command.

sarg-reports is a script written to automate the SARG (a powerful squid log analyzer)
reports and log management. Sarg it self, provide to end user a generic interface to
create reports based on squid access log (begin of log to current date). sarg-reports is
useful because it allow you to easly create and manage Daily, Weekly and Monthly reports.

OPTIONS


A summary of options is included below.

manual
Create Manual report

today Create Today report

daily Create Daily report

weekly Create Weely report

monthly
Create Monthly report

CRONTAB


If you want the reports can be generated automatically insert the following lines (the
today report creation time depend mostly of your sarg server load average, tune it):

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
00 08-18/1 * * * sarg-reports today
00 00 * * * sarg-reports daily
00 01 * * 1 sarg-reports weekly
30 02 1 * * sarg-reports monthly

REMEMBER: if you use logrotate, configure it to rotate the logs within MONTHLY basis,
AFTER sarg-reports created the monthly html report.

VARIABLES


Check before using the sarg-reports that the following variables are set to file
/etc/sarg/sarg-reports.conf

SARG
The sarg executable location

CONFIG
The sarg main configuration file location

HTMLOUT
Location where will be saved the reports

PAGETITLE
The title of main index page

LOGOIMG
Image logo to view in main index page

LOGOLINK
HTTP web page link of logo

DAILY
Word 'daily' translation, translate it to your language

WEEKLY
Word 'weekly' translation, translate it to your language

MONTHLY
Word 'monthly' translation, translate it to your language

EXCLUDELOG1
Exclude text from cron emails (normally, sarg, during cron activity, if it don't
find any valid records,

EXCLUDELOG2
It will output an error message (usually on 'today' reports). I don't want to be
warned by email about this, so, i wrote the 'text' that will be never logged. This
is useful to receive email of real problems only.

Use sarg-reports online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    subconverter
    subconverter
    Utility to convert between various
    subscription format. Shadowrocket users
    should use ss, ssr or v2ray as target.
    You can add &remark= to
    Telegram-liked HT...
    Download subconverter
  • 2
    SWASH
    SWASH
    SWASH is a general-purpose numerical
    tool for simulating unsteady,
    non-hydrostatic, free-surface,
    rotational flow and transport phenomena
    in coastal waters as ...
    Download SWASH
  • 3
    VBA-M (Archived - Now on Github)
    VBA-M (Archived - Now on Github)
    Project has moved to
    https://github.com/visualboyadvance-m/visualboyadvance-m
    Features:Cheat creationsave statesmulti
    system, supports gba, gbc, gb, sgb,
    sgb2Tu...
    Download VBA-M (Archived - Now on Github)
  • 4
    Stacer
    Stacer
    Linux System Optimizer and Monitoring
    Github Repository:
    https://github.com/oguzhaninan/Stacer.
    Audience: End Users/Desktop. User
    interface: Qt. Programming La...
    Download Stacer
  • 5
    OrangeFox
    OrangeFox
    Fork of TeamWinRecoveryProject(TWRP)
    with many additional functions, redesign
    and more Features:Supports Treble and
    non-Treble ROMsUp-to-date Oreo kernel,
    built...
    Download OrangeFox
  • 6
    itop - ITSM  CMDB OpenSource
    itop - ITSM CMDB OpenSource
    IT Operations Portal: a complete open
    source, ITIL, web based service
    management tool including a fully
    customizable CMDB, a helpdesk system and
    a document man...
    Download itop - ITSM CMDB OpenSource
  • More »

Linux commands

Ad