pcp
[Top] [All Lists]

Re: Running PCP as non-privileged user

To: Ali Raza Butt <butta@xxxxxxxxxxxxxx>
Subject: Re: Running PCP as non-privileged user
From: Max Matveev <makc@xxxxxxx>
Date: Mon, 25 Sep 2000 18:12:00 +1100 (EST)
Cc: pcp@xxxxxxxxxxx
In-reply-to: <Pine.GSO.4.21.0009250102580.21861-100000@xxxxxxxxxxxxxxxxxx>
References: <Pine.GSO.4.21.0009250102580.21861-100000@xxxxxxxxxxxxxxxxxx>
Sender: owner-pcp@xxxxxxxxxxx
>>>>> "ARB" == Ali Raza Butt <butta@xxxxxxxxxxxxxx> writes:

ARB> I am working on a system monitoring project and am thinking about
ARB> utilizing PCP. What I want to inquire is that what level of changes are
ARB> required to provide for running pcp as a non privilged user.
Limited - you'd have to make sure that you can read and write a few
files (pmlogger stuff comes to mind first). And you can miss on few
linux metrics but the infrastructure itself should be Ok.

ARB> The goal is
ARB> to be able to monitor a systems resources without having any privileged
ARB> acess at all, not even for installation etc.
RPM would want to write to /var/lib/rpm so this one will be
difficult.

To try, I'd start with installing RPM as root, commenting out line 85
in /etc/rc.d/init.d/pcp (it say 'exit').

then just

/etc/rc.d/init.d/pcp start 

as user. It will complain but pmcd will start and will actually
work. It's now up to you to decide how much you're mising.

max


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