Operating System - HP-UX
1833323 Members
2990 Online
110051 Solutions
New Discussion

Re: MWA log files not used

 
SOLVED
Go to solution
Todd McDaniel_1
Honored Contributor

MWA log files not used

I have a DBA trying to run a command and is getting an error. I have no idea what to do. I created the file logproc and restarted MWA but no avail.

See the error below with the Process parm.

======================

We are using this command but it failed because it cannot open file (in red color).
This works on all servers except chTcfas1.
Do you have any idea what is causing the problem?


extract -xp -v -u -l /var/opt/perf/datafiles/logdev -f dwc.lst -b 08/10/04 6:00 AM -e 08/10/04 5:59 PM


LOGFILE /var/opt/perf/datafiles/logdev
Global file: /var/opt/perf/datafiles/logglob, version D
Application file: /var/opt/perf/datafiles/logappl
Process file can not be opened
Device file: /var/opt/perf/datafiles/logdev
Index file: /var/opt/perf/datafiles/logindx
System ID: chtcfas1
System Type 9000/800 O/S HP-UX B.11.11 U
Data collector: SCOPE/UX C.03.70.00
File created: 03/15/02 09:44:52
First data: 03/13/04
Data covers: 152 days to 08/11/04
Shift is: All Day


Unix, the other white meat.
5 REPLIES 5
Jeff Schussele
Honored Contributor

Re: MWA log files not used

Hi Todd,

What does
mwa status
respond with?

Make sure the scope, background daemon & server status entries all have valid PIDS.
Make sure you have at least 1 running rep_server if you have other servers collecting that data.

If there's a problem with one of the services, then check /var/opt/perf/status."service_name" for clues.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jeff Schussele
Honored Contributor
Solution

Re: MWA log files not used

To expand on that...

One of the common problems that MWA encounters is that one of the log* files becomes corrupted & the only way to recover is to stop MWA, cp the file out and/or null it & then restart MWA - checking the status file will show the problem as well as tell you whether the restart was successful or not.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
lawrenzo
Trusted Contributor

Re: MWA log files not used

I have had issue's starting individual agents within mwa.

you can check /var/opt/perf/

then the process' that start have a status log

also in /var/opt/perf/datafiles there are logproc logappl logdev logtran logglob files that can become corrupt - this should be detailed in the status logs
hello
Todd McDaniel_1
Honored Contributor

Re: MWA log files not used

Are those files automagically created?

If I move out hte file will it be recreated or do I need to touch it?
Unix, the other white meat.
Todd McDaniel_1
Honored Contributor

Re: MWA log files not used

I found the problem...

The line that looks like this:

log global application process device=disk,lvm


Didnt have the word "process" in it.... once I stoped the mwa agent, and added it, the file was created.

# ll log*
-rwxrwxr-x 1 sysperf sadm 8769992 Aug 11 15:01 logappl
-rwxrwxr-x 1 sysperf sadm 11819248 Aug 11 15:01 logdev
-rwxrwxr-x 1 sysperf sadm 8432430 Aug 11 15:01 logglob
-rwxrwxr-x 1 sysperf sadm 155720 Aug 11 15:01 logindx
-rw------- 1 root sys 3500 Aug 11 15:01 logproc
Unix, the other white meat.