#!/bin/sh
#
# pmlogger admin script for WebMeter
#
# $Id: webmeter4.frm,v 1.4 1996/05/01 09:02:53 kenmcd Exp $
TRACE=false # make true to enable tracing
MYTITLE="pmlogger Administration for Host `hostname`"
# load common procedures
. ./webmetercommon.cgi
# get current settings
# stolen from /usr/pcp/pmlogger/cron.pmcheck
#
_current()
{
_pmlogger_status
}
# restore sane defaults
#
_default()
{
:
}
# do default page set up
#
_home()
{
localhost="`hostname`"
_preamble "$MYTITLE"
cat < The pmlogger utility and may be used to
create historical archives of system and Web server performance for the local
host and/or remote hosts. These archives are most useful for retrospective performance analysis,
problem diagnosis and capacity planning.
End-of-File
nawk -F: <$tmp.status '
{ printf "Archive for Host pmlogger
StatusArchive Directory
"
printf " "
}'
echo ""
else
cat <"
printf " " $2
if ($1 == 0)
printf " "
else
printf " active"
printf " " $5
print "
To activate a new pmlogger instance on $localhost, enter the name of the host from which performance metrics are to be collected then