pcp
[Top] [All Lists]

Re: [pcp] Postfix PMDA

To: <chandana@xxxxxxxxxxxxx>, <pcp@xxxxxxxxxxx>, Keith Owens <keith.owens@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [pcp] Postfix PMDA
From: Jeff Hanson <jhanson@xxxxxxx>
Date: Mon, 26 May 2014 17:39:34 -0400
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <5383A589.9080006@xxxxxxxxxxxxx>
References: <5383A589.9080006@xxxxxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
On 05/26/2014 04:35 PM, Chandana De Silva wrote:
> Hello All,
> 
> The Postfix PMDA uses qshape(1) to gather postfix queue stats, by reading 
> files the various postfix queue directories.
> 
> The problem is that all of the postfix queues are only readable by the 
> postfix user (or root).
> 
> Since the postfix pmda (by default) is run under the user pcp, it cannot 
> gather the necessary stats.
> 
> I suspect that the postfix pmda worked correctly when pcp ran as root.
> 
> Is there anyway we can make the postfix (or any) pmda run as root ?
> 

Can you construct an entry in /etc/suoders.d/postfixpmda (or similar) that
allows the pcp user to gather the values and have this install as part of the 
pmda?
-- 
-----------------------------------------------------------------------
Jeff Hanson - jhanson@xxxxxxx - Field Technical Analyst

You can choose a ready guide in some celestial voice.
If you choose not to decide, you still have made a choice.
You can choose from phantom fears and kindness that can kill;
I will choose a path that's clear
I will choose freewill. - Lee/Lifeson/Peart

<Prev in Thread] Current Thread [Next in Thread>