12-17-2017
Welcome to the forum.
Not bad a start. You now could use shell functions to fulfill the 3rd requirement. I'm not sure what that exactly is, but just copying the files to the terminal might be missing it. Wouldn't it be helpful to provide small but representative samples of either log file if you need further assistance?
9 More Discussions You Might Find Interesting
1. Programming
Iam writing a script for my sisters friends little brother
i want the program to say hello lets say his name is Joe and ask him how he is and he can write a reply back saying fine and then it replys "Iam happy you are (his response) today
and then it goes into a basic math where he can put in a... (9 Replies)
Discussion started by: perleo
9 Replies
2. HP-UX
Error received when I tried to restore a blank disk with an 'auto recovery' DDS tape via HP-UX recovery system 2.0 onto a 1Gb SCSI. I assumed it would do the setup, wrong. Could someone tell me the procedure to initial disk for recovering files using cpio. The system is a HP-UX 9.04 version on a... (1 Reply)
Discussion started by: admin wanabee
1 Replies
3. Shell Programming and Scripting
Hello. I'm trying to write a shell script that will take files that have .tar, .tar.gz, .tar.Z, .gz, .Z and .zip file extensions and uncompress and unarchive them. The script should be able to take multiple arguments. So far I can write a script using the case command that will do this but it will... (3 Replies)
Discussion started by: SeanWuzHere
3 Replies
4. Programming
I'd like to write a program (I'm flexible on language; C/C++ was my original idea but a scripting language would probably be better) that runs hundreds of programs, but only N = 4 (say) at a time. The idea is to keep all the cores on a multicore machine busy.
How can I do this? In particular,... (6 Replies)
Discussion started by: CRGreathouse
6 Replies
5. HP-UX
Hi,
The "program monitor" command in BT-Basic prompt you for a user name and a password.
How can I grant access only to certain users ?
Thank you. (0 Replies)
Discussion started by: fosiceanu
0 Replies
6. IP Networking
Hello all,
i want to view my iptables log on web interface, with chart (in option, and this is not my priority).
What is the best program for this?
I have Ubuntu server.
Thanks !
:) (0 Replies)
Discussion started by: Pacifiste95
0 Replies
7. Infrastructure Monitoring
Hello everyone!
I`m searching for linux log parser application. I already find some ways, but the best looks logzilla.
Requirements:
Web interface for viewing
Filtering in web
Notifications in web or email
Open source
Support linux system logs, custom logs and apache logs.
I will... (5 Replies)
Discussion started by: jabalv
5 Replies
8. Homework & Coursework Questions
I am a newbie to UNIX. I'm learning UNIX on my own, just trying to get the jerk of how things work in UNIX environment. I am familiar with Windows environment.
Can anyone pls write simple 'envprint' programs to :
1) List all the environment Information (using the -l or --l options)
2) ... (1 Reply)
Discussion started by: agup17
1 Replies
9. Shell Programming and Scripting
Hello!
I have a small shell project that is due next week, that I'd appreciate some help with.
task: Write a shell program that can analyze at least 2 types of log files and print them in an easily readable way. Make it so that you can switch between log file types. The two file types should be... (1 Reply)
Discussion started by: malfiory
1 Replies
LEARN ABOUT CENTOS
pmdaapache
PMDAAPACHE(1) General Commands Manual PMDAAPACHE(1)
NAME
pmdaapache - Apache2 web server performance metrics domain agent (PMDA)
SYNOPSIS
$PCP_PMDAS_DIR/apache/pmdaapache [-d domain] [-l logfile] [-U username] [-S server] [-P port] [-L location]
DESCRIPTION
pmdaapache is a Performance Metrics Domain Agent (PMDA) which extracts performance metrics describing the state of an Apache web server.
The apache PMDA exports metrics that measure the request rate, cumulative request sizes, uptime and various connection states for active
clients.
This information is obtained by performing a HTTP request to the server status URL, which must be enabled in the httpd.conf configuration
file.
ExtendedStatus on
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
</Location>
A brief description of the pmdaapache command line options follows:
-d It is absolutely crucial that the performance metrics domain number specified here is unique and consistent. That is, domain should
be different for every PMDA on the one host, and the same domain number should be used for the same PMDA on all hosts.
-l Location of the log file. By default, a log file named apache.log is written in the current directory of pmcd(1) when pmdaapache is
started, i.e. $PCP_LOG_DIR/pmcd . If the log file cannot be created or is not writable, output is written to the standard error
instead.
-S Query the Apache status information from the named server rather than the local host.
-P Query the Apache status information from the given port rather than the default (80).
-L Specify an alternative location for finding the server-status page.
-U User account under which to run the agent. The default is the unprivileged "pcp" account in current versions of PCP, but in older
versions the superuser account ("root") was used by default.
INSTALLATION
If you want access to the names, help text and values for the apache performance metrics, do the following as root:
# cd $PCP_PMDAS_DIR/apache
# ./Install
If you want to undo the installation, do the following as root:
# cd $PCP_PMDAS_DIR/apache
# ./Remove
pmdaapache is launched by pmcd(1) and should never be executed directly. The Install and Remove scripts notify pmcd(1) when the agent is
installed or removed.
FILES
$PCP_PMCDCONF_PATH
command line options used to launch pmdaapache
$PCP_PMDAS_DIR/apache/help
default help text file for the apache metrics
$PCP_PMDAS_DIR/apache/Install
installation script for the pmdaapache agent
$PCP_PMDAS_DIR/apache/Remove
undo installation script for the pmdaapache agent
$PCP_LOG_DIR/pmcd/apache.log
default log file for error messages and other information from pmdaapache
PCP ENVIRONMENT
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the
file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configura-
tion file, as described in pcp.conf(5).
SEE ALSO
PCPIntro(1), httpd(8), pmcd(1), pcp.conf(5) and pcp.env(5).
Performance Co-Pilot PCP PMDAAPACHE(1)