TWiki
>
Frontier Web
>
InstallLaunchpad
>
InstallAwstats
(2019-08-16,
DaveDykstra
)
(raw view)
E
dit
A
ttach
P
DF
---+Installing Awstats and optionally Maxthreads The frontier-awstats package collects statistics from frontier-squid log files and sends them to the central [[http://wlcg-squid-monitor.cern.ch][monitoring server]] four times an hour. The statistics are very useful for analyzing what's happening on the squid, especially where traffic is coming from. *It is only used on centrally managed squids, not on per-site squids.* It also collects statistics from httpd logs, if the wlcg-squid-monitor is configured to receive them. Here are the [[http://frontier.cern.ch/dist/rpms/frontier-awstatsRELEASE_NOTES][Release Notes]] of the rpm. This document also describes installation of another package called frontier-maxthreads that is often used on the same machines and which collects statistics from frontier-tomcat log files. Here are the [[http://frontier.cern.ch/dist/rpms/frontier-maxthreadsRELEASE_NOTES][Release Notes]] of that rpm. %TOC% ---++ Preparation No preparation is necessary. frontier-awstats uses the same user and group ids as the frontier-squid package and in fact its operation is invoked by the frontier-squid cron script when analyzing squid logs. When analyzing httpd logs, it is invoked as root by its own cron. frontier-maxthreads runs as root and is invoked by its own cron. ---++ Installation If you haven't installed anything from the cern-frontier yum repository, enable it with this command: <pre> # rpm -Uvh http://frontier.cern.ch/dist/rpms/RPMS/noarch/frontier-release-1.1-1.noarch.rpm </pre> If installing only frontier-awstats, as root run the following command to install: <pre> # yum install frontier-awstats </pre> If installing both frontier-awstats and frontier-maxthreads, instead run the following command: <pre> # yum install frontier-maxthreads </pre> ---++ Configuration Edit /etc/awstats/password-file with a password you want to use to authenticate on the monitoring server. Tell the password you chose to the administrator of the monitoring server, along with the site name and machine name or preferred alias. Configuration of the installation is automatic, once the central monitoring server is configured. frontier-maxthreads uses the same password from the awstats package but uploads its data to frontier.cern.ch instead of wlcg-squid-monitor.cern.ch. ---++ Testing If there is at least one transaction in the log, for example made by the [[InstallSquidForLaunchpad#Testing][InstallSquidForLaunchpad Testing]] instructions, and the monitoring server is configured correctly, within one hour there should be some statistics showing up on the monitoring server. The links to the awstats pages are on the [[http://wlcg-squid-monitor.cern.ch][monitoring server homepage]]. Maxthreads data should show up on a [[http://frontier.cern.ch/maxthreads.html][maxthreads monitoring page]] within five minutes. ---++ Debugging Once the first connection has been successfully made after the monitoring server is set up, the file =/etc/awstats/awstatsconf= should be automatically created. Error messages go to a log file called =squidcron.log= in the same directory as other squid logs (default =/var/log/squid=), because the squid hourly cron job invokes the awstats statistics generation script. Error messages for httpd awstats go into =/var/log/awstatscron.log=. On the monitoring server, rsync connections are logged in =/var/log/messages=. Maxthreads log information goes to =/var/log/maxthreads.log=. Responsible: DaveDykstra
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r7
<
r6
<
r5
<
r4
<
r3
|
B
acklinks
|
V
iew topic
|
WYSIWYG
|
M
ore topic actions
Topic revision: r7 - 2019-08-16
-
DaveDykstra
Log In
Frontier
Frontier Web
Create New Topic
Index
Search
Changes
Notifications
Statistics
Preferences
Public webs
Public webs
ABATBEA
ACPP
ADCgroup
AEGIS
AfricaMap
AgileInfrastructure
ALICE
AliceEbyE
AliceSPD
AliceSSD
AliceTOF
AliFemto
ALPHA
ArdaGrid
ASACUSA
AthenaFCalTBAna
Atlas
AtlasLBNL
AXIALPET
CAE
CALICE
CDS
CENF
CERNSearch
CLIC
Cloud
CloudServices
CMS
Controls
CTA
CvmFS
DB
DefaultWeb
DESgroup
DPHEP
DM-LHC
DSSGroup
EGEE
EgeePtf
ELFms
EMI
ETICS
FIOgroup
FlukaTeam
Frontier
Gaudi
GeneratorServices
GuidesInfo
HardwareLabs
HCC
HEPIX
ILCBDSColl
ILCTPC
IMWG
Inspire
IPv6
IT
ItCommTeam
ITCoord
ITdeptTechForum
ITDRP
ITGT
ITSDC
LAr
LCG
LCGAAWorkbook
Leade
LHCAccess
LHCAtHome
LHCb
LHCgas
LHCONE
LHCOPN
LinuxSupport
Main
Medipix
Messaging
MPGD
NA49
NA61
NA62
NTOF
Openlab
PDBService
Persistency
PESgroup
Plugins
PSAccess
PSBUpgrade
R2Eproject
RCTF
RD42
RFCond12
RFLowLevel
ROXIE
Sandbox
SocialActivities
SPI
SRMDev
SSM
Student
SuperComputing
Support
SwfCatalogue
TMVA
TOTEM
TWiki
UNOSAT
Virtualization
VOBox
WITCH
XTCA
Cern Search
TWiki Search
Google Search
Frontier
All webs
Copyright &© 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback