I think the right thing is ... 1. remove -n namespace .... it is broken for a pmcd install and makes no sense for a client install 2. where pminfo is called, never use -h localhost 3. where pminfo is called, never use -n namespace I also added a -V option so you can see what comes back from the pminfo call to validate a PMDA install How does that seem? For the dbpmda issues ... that sounds good to me - more invasive than I'd wanted to attempt myself, but correct a. traverse is the command to do the recursive descent, not children wasnt there a -N option to the Install scripts ... for the old, pre-pcp-2.0 days ... guess that could all be removed too (might break here) b. I have some work to do to fix up the help text ... 8^)> ah, ok ... traverse, missed it - thanks i'll leave b in your capable hands :) Yep -N can go to for Install/Remove. kenj, theres several pmcd_wait -h localhost too ... thoughts? hmm, not to mention setup_localhost() ... you sure you want -h localhost gone? i assume there was some reason for adding it originally...? The only rationale I can think of for -h localhost in anything to do with pmcd setup and control would be a hangover from the days of pcp 1.x when this was _sometimes_ needed to force a pmcd context to be establised. I think those days are long gone. setup_localhost() is cool ... these are args to ping(1). pmdaproc.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pmcd/pmdaproc.sh b/src/pmcd/pmdaproc.sh index cf3856a..d131493 100644 --- a/src/pmcd/pmdaproc.sh +++ b/src/pmcd/pmdaproc.sh @@ -324,7 +324,7 @@ END { exit status }' # signal pmcd if it is running # - if pminfo -h localhost -v pmcd.version >/dev/null 2>&1 + if pminfo -v pmcd.version >/dev/null 2>&1 then pmsignal -a -s HUP pmcd >/dev/null 2>&1 # allow signal processing to be done before checking status @@ -410,7 +410,7 @@ $1=="'$myname'" && $2=="'$mydomain'" { next } # signal pmcd if it is running, else start it # - if pminfo -h localhost -v pmcd.version >/dev/null 2>&1 + if pminfo -v pmcd.version >/dev/null 2>&1 then pmsignal -a -s HUP pmcd >/dev/null 2>&1 # allow signal processing to be done before checking status @@ -909,7 +909,7 @@ _install() for __n in $pmns_name do - if pminfo -h localhost -n $NAMESPACE $__n >/dev/null 2>&1 + if pminfo $__n >/dev/null 2>&1 then cd $PMNSDIR if pmnsdel -n $PMNSROOT $__n >$tmp 2>&1 @@ -1105,7 +1105,7 @@ _install() for __n in $pmns_name do $PCP_ECHO_PROG $PCP_ECHO_N "Check $__n metrics have appeared ... ""$PCP_ECHO_C" - pminfo -n $NAMESPACE -f $__n | __filter $__n + pminfo -f $__n | __filter $__n done fi else @@ -1184,7 +1184,7 @@ _remove() for __n in $pmns_name do $PCP_ECHO_PROG $PCP_ECHO_N "Check $__n metrics have gone away ... ""$PCP_ECHO_C" - if pminfo -n $NAMESPACE -f $__n >$tmp 2>&1 + if pminfo -f $__n >$tmp 2>&1 then echo "Arrgh, something has gone wrong!" cat $tmp