Re: issues with pmlogger_daily via cron

"Sharif Islam" <[email protected]> Tue, 14 Feb 2017 11:28:19 +0100 (CET)
Newsgroups gmane.comp.sysutils.pcp
Message-ID <[email protected]>
G'day Sharif, I'm not altogether sure of the problem here ... let me guess ...


Thanks. 

> ...
> + args='-r -U root -m pmlogger_daily -l /var/log/pcp-storage/pmlogger.log -h
> loca -c /var/lib/pcp/config/pmlogger/logger.config '

the -c here is wrong?

This is my cron line: 

/usr/lib64/pcp/bin/pmlogger_daily -V -c /var/lib/pcp/config/pmlogger/logger.control


To debug this we'll need ...

1. output from $ grep PS /etc/pcp.conf

# grep PS /etc/pcp.conf 
PCP_PS_PROG=ps
PCP_PS_HAVE_BSD=false
PCP_PS_ALL_FLAGS=-efw

2. your pmlogger control file

root# cat /var/lib/pcp/config/pmlogger/logger.control
#
# archive logging configuration/control
# Copyright (C) 2005-2013 Silicon Graphics, Inc.  All Rights Reserved.
# $Id: logger.control.in,v 1.5 2015/04/30 16:08:57 sudhas Exp $
#

# === VARIABLE ASSIGNMENTS ===
#
# DO NOT REMOVE OR EDIT THE FOLLOWING LINE
$version=1.1

# === LOGGER CONTROL SPECIFICATIONS ===
#
#Host           P?  S?  directory                       args

# local pcp-storage logger
LOCALHOSTNAME   n   n   /var/lib/pcp-storage/archives/localhost -c /var/lib/pcp/config/pmlogger/logger.config -r -l /var/log/pcp-storage/pmlogger.log -U root

3. can you rerun this with pmlogger_daily being run from cron with -V -V (very verbose)?

The cron did not return anything for a while. So I restarted pcp and got this in the mail. Before the restart there was a defunct process. 

Here's the -V -V output: https://gist.github.com/anonymous/f4ae6f70e3d62ed9b28f436fae9b5a39#file-pmlogger


4. output from


	$ . /etc/pcp.conf
	$ $PCP_PS_PROG $PCP_PS_ALL_FLAGS | grep '[p]mlogger'

# $PCP_PS_PROG $PCP_PS_ALL_FLAGS | grep '[p]mlogger'
pcp       10361  66857  0 01:01 ?        00:00:36 /usr/bin/pmlogger -c /var/log/pcp/pmmgr/dmf/config.pmlogger -h local: -r -l /var/log/pcp/pmmgr/dmf/pmlogger.log -y -T  @Wed Feb 15 01:00:00 2017 /var/log/pcp/pmmgr/dmf/archive-20170214.000157
pcp      140823 140801  0 00:10 ?        00:00:00 [pmlogger_daily] <defunct>
pcp      142598      1  0 00:10 ?        00:00:39 pmlogger -r -T 24h10m -m pmlogger_daily -P -l pmlogger.log -c /etc/pcp/pmlogger/config.default 20170214.00.10
root     152385      1  0 00:15 ?        00:01:09 pmlogger -h local: -c /var/lib/pcp/config/pmlogger/logger.config -r -l /var/log/pcp-storage/pmlogger.log -U root -m pmlogger_check 20170214.00.15


I did notice a defunct process. We have this running at 00:10 

/usr/lib/pcp-storage/logger_reduce -c /var/lib/pcp/config/pmlogger/logger.control


I restarted pcp. Now: 

# $PCP_PS_PROG $PCP_PS_ALL_FLAGS | grep '[p]mlogger'
pcp       25399      1  0 11:24 pts/11   00:00:00 pmlogger -P -r -T24h10m -c config.default -m pmlogger_check 20170214.11.24
pcp       38526  66857  0 11:26 ?        00:00:00 /usr/bin/pmlogger -c /var/log/pcp/pmmgr/dmf/config.pmlogger -h local: -r -l /var/log/pcp/pmmgr/dmf/pmlogger.log -y -T  @Wed Feb 15 01:00:00 2017 /var/log/pcp/pmmgr/dmf/archive-20170214.102653




--sharif 




-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#15156): https://groups.io/g/pcp/message/15156
View All Messages In Topic (3): https://groups.io/g/pcp/topic/4365667
Mute This Topic: https://groups.io/mt/4365667?uid=174580
New Topic: https://groups.io/g/pcp/post
-=-=-
pcp mailing list
[email protected]
https://groups.io/g/pcp/messages
-=-=-
Change Your Subscription: https://groups.io/g/pcp/editsub?uid=174580
Group Home: https://groups.io/g/pcp
Contact Group Owner: [email protected]
Terms of Service: https://groups.io/static/tos
Unsubscribe: https://groups.io/g/pcp/leave/354243/563757577/xyzzy
-=-=-=-=-=-=-=-=-=-=-=-