| To: | William Staten <William_Staten@xxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [pcp] how to change the default log location of PCP_LOG_DIR=/var/log/pcp |
| From: | Nathan Scott <nathans@xxxxxxxxxx> |
| Date: | Sun, 17 Jul 2016 22:38:18 -0400 (EDT) |
| Cc: | pcp@xxxxxxxxxxx |
| Delivered-to: | pcp@xxxxxxxxxxx |
| In-reply-to: | <OF559A60C8.2DE3DCB4-ON85257FF1.004E28F8-85257FF1.004EA5A4@xxxxxxxxxxxxxxx> |
| References: | <OF559A60C8.2DE3DCB4-ON85257FF1.004E28F8-85257FF1.004EA5A4@xxxxxxxxxxxxxxx> |
| Reply-to: | Nathan Scott <nathans@xxxxxxxxxx> |
| Thread-index: | fBjOah7F7ShH25CJ/7tHxrNrg394Wg== |
| Thread-topic: | how to change the default log location of PCP_LOG_DIR=/var/log/pcp |
Hi William, ----- Original Message ----- > Does anyone know how I can add a new directory for PCP logs or change the Easiest way is to just discard PCP_LOG_DIR use in the pmlogger control file, and use the exact paths you wish to see logs created in there. > directory for the default? Currently the default is > PCP_LOG_DIR=/var/log/pcp. I attempted to add another section to pcp.conf > file with a new variable and additional location. I then restarted the pmcd > and pmlogger services but that did not fix the issue. Yeah, that wont work because pmlogger_check(1) special-cases the translation of PCP_LOG_DIR. pmlogger_check is just a shell script, so quite easy to see what its up to (it lives in $PCP_BINADM_DIR) - its _parse_control() function is where this transformation happens, note the initial sed line there. cheers. -- Nathan |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: qa/003 failing (softirqs problem) on Centos 5.11, Nathan Scott |
|---|---|
| Next by Date: | Re: [performancecopilot/speed] code review: int and uint are either 32 or 64 bits (#13), Suyash |
| Previous by Thread: | how to change the default log location of PCP_LOG_DIR=/var/log/pcp, William_Staten |
| Next by Thread: | Bug#831452: pcp-export-pcp2graphite: fails to upgrade from 'testing' - trying to overwrite /usr/bin/pcp2graphite, Andreas Beckmann |
| Indexes: | [Date] [Thread] [Top] [All Lists] |