From owner-pcp@oss.sgi.com Mon Sep 3 09:57:13 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f83GvDw31543 for pcp-outgoing; Mon, 3 Sep 2001 09:57:13 -0700 Received: from bbcons.radesoft.de (postfix@A0991.pppool.de [213.6.9.145]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f83Gv5d31540 for ; Mon, 3 Sep 2001 09:57:06 -0700 Received: by bbcons.radesoft.de (Postfix on SuSE Linux 7.2 (i386), from userid 501) id 3C80B1446; Mon, 3 Sep 2001 18:59:13 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-15" From: Ralf Baerwaldt Organization: BBCONS GmbH To: pcp@oss.sgi.com Subject: pmlogger_check: Error: primary logging disabled for ... Date: Mon, 3 Sep 2001 18:59:13 +0200 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01090318591301.27062@bbcons> Content-Transfer-Encoding: 8bit Sender: owner-pcp@oss.sgi.com Precedence: bulk Hello ! I just installed the pmlogger-software from the Suse CD. I didn't do any special configuration because I havend found any script to modify. Starting pmlogger_check says: pmlogger_check: [/var/pcp/config/pmlogger/control:37] Error: primary logging disabled for mylocalhost ... logging for host "mylocalhost" unchanged What ist missing ? I tried to config the control and the config.default file but the message doesn't disappear nor do I get any logs. ciao, Ralf Baerwaldt ------------------------------ Following pmlogger_check -NVV: [control:1] host="#" primary="" socks="" dir="" args="" [control:2] host="#" primary="PCP" socks="archive" dir="logging" args="configuration/control" [control:3] host="#" primary="" socks="" dir="" args="" [control:4] host="#" primary="This" socks="file" dir="is" args="used by various of the PCP archive logging administrative" [control:5] host="#" primary="tools" socks="to" dir="perform" args="maintenance on the pmlogger instances running on" [control:6] host="#" primary="the" socks="local" dir="host." args="" [control:7] host="#" primary="" socks="" dir="" args="" [control:8] host="#" primary="This" socks="file" dir="contains" args="one line per host to be logged, fields are" [control:9] host="#" primary="Host" socks="name" dir="of" args="host to be logged" [control:10] host="#" primary="P(rimary)" socks="is" dir="this" args="the primary logger? y or n" [control:11] host="#" primary="S(ocks)" socks="should" dir="this" args="logger be launched with pmsocks? y or n" [control:12] host="#" primary="Directory" socks="full" dir="pathname" args="to directory where archive logs are" [control:13] host="#" primary="to" socks="be" dir="maintained" args="... note all scripts "cd" to here as" [control:14] host="#" primary="a" socks="first" dir="step" args="" [control:15] host="#" primary="Args" socks="optional" dir="additional" args="arguments to pmlogger and/or pmnewlog" [control:16] host="#" primary="" socks="" dir="" args="" [control:17] host="" primary="" socks="" dir="" args="" [control:18] host="#" primary="===" socks="VARIABLE" dir="ASSIGNMENTS" args="===" [control:19] host="#" primary="" socks="" dir="" args="" [control:20] host="#" primary="DO" socks="NOT" dir="REMOVE" args="OR EDIT THE FOLLOWING LINE" [control:21] host="$version=1.1" primary="" socks="" dir="" args="" # $version=1.1 + export version; version=1.1 [control:22] host="" primary="" socks="" dir="" args="" [control:23] host="#" primary="if" socks="pmsocks" dir="is" args="being used, you need to install and configure libtsocks." [control:24] host="#" primary="See" socks="the" dir="pmsocks(1)" args="man page for instructions." [control:25] host="" primary="" socks="" dir="" args="" [control:26] host="#" primary="if" socks="remote" dir="loggers" args="are run over a WAN with potentially long delays," [control:27] host="#" primary="adjust" socks="the" dir="following" args="and uncomment" [control:28] host="#$PMCD_CONNECT_TIMEOUT=20" primary="" socks="" dir="" args="" [control:29] host="#$PMCD_REQUEST_TIMEOUT=15" primary="" socks="" dir="" args="" [control:30] host="" primary="" socks="" dir="" args="" [control:31] host="#" primary="===" socks="LOGGER" dir="CONTROL" args="SPECIFICATIONS ===" [control:32] host="#" primary="" socks="" dir="" args="" [control:33] host="#Host" primary="P?" socks="S?" dir="directory" args="args" [control:34] host="" primary="" socks="" dir="" args="" [control:35] host="#" primary="local" socks="primary" dir="logger" args="is enabled by default" [control:36] host="#" primary="mylocalhost" socks="y" dir="n" args="/var/log/pcp/pmlogger/mylocalhost -c config.default" [control:37] host="bbcons" primary="y" socks="n" dir="/var/log/pcp/pmlogger/mylocalhost" args="-c config.default" Check pmlogger -P -h mylocalhost ... in /var/log/pcp/pmlogger/mylocalhost ... + cd /var/log/pcp/pmlogger/mylocalhost pmlogger_check: [/var/pcp/config/pmlogger/control:37] Error: primary logging disabled for mylocalhost ... logging for host "mylocalhost" unchanged [control:38] host="" primary="" socks="" dir="" args="" [control:39] host="#" primary="Note:" socks="if" dir="multiple" args="pmloggers for the same host (e.g. both primary and" [control:40] host="#" primary="non-primary" socks="loggers" dir="are" args="active), then they MUST use different" [control:41] host="#" primary="directories" socks="" dir="" args="" [control:42] host="" primary="" socks="" dir="" args="" [control:43] host="#" primary="local" socks="non-primary" dir="logger" args="" [control:44] host="#mylocalhost" primary="n" socks="n" dir="/var/log/pcp/pmlogger/mysummary" args="-c config.Summary" [control:45] host="" primary="" socks="" dir="" args="" [control:46] host="#" primary="remote" socks="host" dir="" args="" [control:47] host="#remote" primary="n" socks="n" dir="/var/log/pcp/pmlogger/remote" args="-c config.remote" [control:48] host="" primary="" socks="" dir="" args="" [control:49] host="#" primary="thru" socks="the" dir="firewall" args="via socks" [control:50] host="#distant" primary="n" socks="y" dir="/var/log/pcp/pmlogger/distant" args="-c config.distant" ------------------------------- following control (with line number): 21:$version=1.1 36:# LOCALHOSTNAME y n PCP_LOG_DIR/pmlogger/LOCALHOSTNAME -c config.default 37:mylocalhost y n /var/log/pcp/pmlogger/mylocalhost -c config.default ------------------------------- following config.default (with line number): 37:log mandatory on once { hinv.ncpu hinv.ndisk } 39:log mandatory on 1 hour 40: kernel.all.load [ "1 minute" ] 42:[access] 43:# disallow * : all except enquire; 44:allow localhost : mandatory, advisory; 45:allow mylocalhost : mandatory, advisory; From owner-pcp@oss.sgi.com Thu Sep 13 09:39:41 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8DGdfc10029 for pcp-outgoing; Thu, 13 Sep 2001 09:39:41 -0700 Received: from babel.spoiled.org (babel.spoiled.org [212.84.234.227]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8DGdSe10026 for ; Thu, 13 Sep 2001 09:39:29 -0700 Received: (qmail 13707 invoked by uid 8); 13 Sep 2001 16:39:27 -0000 From: thomas graichen Reply-To: thomas graichen X-Newsgroups: spoiled.linux.sgi.pcp Subject: minor patch to pcp Date: Thu, 13 Sep 2001 18:29:22 +0200 Organization: spoiled dot org Lines: 184 Distribution: local Message-ID: Reply-To: thomas graichen X-Complaints-To: newsmaster@spoiled.org User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (Linux/2.4.9-xfs (i686)) To: pcp@oss.sgi.com Sender: owner-pcp@oss.sgi.com Precedence: bulk the following patch against pcp-2.2.1 adds support for systems compressing the manpages using bzip2 (like for instance linux mandrake 8.0) ... i think it should not break anything else and would really like to see this added (maybe tweaked a bit to the pcp tree) ... a lot of thanks in advance t --- configure.in.org Thu Sep 13 17:03:46 2001 +++ configure.in Thu Sep 13 17:19:16 2001 @@ -184,6 +184,14 @@ gzip=$GZIP AC_SUBST(gzip) +dnl check if the bzip2 program is available +dnl (needed to bzip2 man pages on some platforms) +test -z "$BZIP2" && AC_PATH_PROG(BZIP2, bzip2, /bin/bzip2) +test ! -x "$BZIP2" && BZIP2=/usr/local/bin/bzip2 +test ! -x "$BZIP2" && BZIP2=/usr/freeware/bin/bzip2 +bzip2=$BZIP2 +AC_SUBST(bzip2) + dnl check if the rpm program is available test -z "$RPM" && AC_PATH_PROG(RPM, rpm, /bin/rpm) rpm=$RPM @@ -749,17 +757,26 @@ then pcp_man_dir=/usr/share/catman have_gzipped_manpages=false + have_bzip2ed_manpages=false else for d in /usr/man /usr/share/man $pcp_share_dir/man do if test -f $d/man1/man.1.gz then have_gzipped_manpages=true + have_bzip2ed_manpages=false + pcp_man_dir=$d + break + elif test -f $d/man1/man.1.bz2 + then + have_gzipped_manpages=false + have_bzip2ed_manpages=true pcp_man_dir=$d break - elif test -f $d/man/man.1 + elif test -f $d/man1/man.1 then have_gzipped_manpages=false + have_bzip2ed_manpages=false pcp_man_dir=$d break fi @@ -774,6 +791,7 @@ AC_SUBST(pcp_man_dir) AC_SUBST(have_gzipped_manpages) +AC_SUBST(have_bzip2ed_manpages) dnl public binaries if test -d /usr/bin --- configure.org Thu Sep 13 16:44:02 2001 +++ configure Thu Sep 13 17:18:47 2001 @@ -1290,6 +1290,41 @@ test ! -x "$GZIP" && GZIP=/usr/freeware/bin/gzip gzip=$GZIP +test -z "$BZIP2" && # Extract the first word of "bzip2", so it can be a program name with args. +set dummy bzip2; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1257: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_BZIP2'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$BZIP2" in + /*) + ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_BZIP2="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="/bin/bzip2" + ;; +esac +fi +BZIP2="$ac_cv_path_BZIP2" +if test -n "$BZIP2"; then + echo "$ac_t""$BZIP2" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi test -z "$RPM" && # Extract the first word of "rpm", so it can be a program name with args. set dummy rpm; ac_word=$2 @@ -3518,17 +3553,27 @@ then pcp_man_dir=/usr/share/catman have_gzipped_manpages=false + have_bzip2ed_manpages=false else for d in /usr/man /usr/share/man $pcp_share_dir/man do if test -f $d/man1/man.1.gz then have_gzipped_manpages=true + have_gzipped_manpages=false pcp_man_dir=$d break - elif test -f $d/man/man.1 + elif test -f $d/man1/man.1.bz2 + then + have_gzipped_manpages=false + have_bzip2ed_manpages=true + pcp_man_dir=$d + break + fi + elif test -f $d/man1/man.1 then have_gzipped_manpages=false + have_bzip2ed_manpages=false pcp_man_dir=$d break fi @@ -3975,6 +4020,8 @@ s%@tar@%$tar%g s%@GZIP@%$GZIP%g s%@gzip@%$gzip%g +s%@BZIP2@%$BZIP2%g +s%@bzip2@%$bzip2%g s%@RPM@%$RPM%g s%@rpm@%$rpm%g s%@rpm_version@%$rpm_version%g @@ -4012,6 +4059,7 @@ s%@pcp_lib_compat_dir@%$pcp_lib_compat_dir%g s%@pcp_man_dir@%$pcp_man_dir%g s%@have_gzipped_manpages@%$have_gzipped_manpages%g +s%@have_bzip2ed_manpages@%$have_bzip2ed_manpages%g s%@pcp_bin_dir@%$pcp_bin_dir%g s%@pcp_inc_dir@%$pcp_inc_dir%g s%@pcp_rc_dir@%$pcp_rc_dir%g --- ../pcp-2.2.1.backup/src/include/builddefs.in.org Thu Sep 13 17:02:16 2001 +++ src/include/builddefs.in Thu Sep 13 17:59:02 2001 @@ -108,6 +108,7 @@ MAKEDEPEND= @makedepend@ GZIP = @gzip@ +BZIP2 = @bzip2@ TAR = @tar@ RPM = @rpm@ RPM_VERSION = @rpm_version@ @@ -115,6 +116,7 @@ DPKG = @dpkg@ HAVE_GZIPPED_MANPAGES = @have_gzipped_manpages@ +HAVE_BZIP2ED_MANPAGES = @have_bzip2ed_manpages@ CPP_SIMPLE = @cpp_simple@ CPP_SIMPLE_ARGS = @cpp_simple_args@ RDYNAMIC_FLAG = @rdynamic_flag@ @@ -168,6 +170,9 @@ if $$first; then \ if $(HAVE_GZIPPED_MANPAGES) ; then \ $(GZIP) -c $$d > $$d.gz; _sfx=.gz; \ + fi; \ + if $(HAVE_BZIP2ED_MANPAGES) ; then \ + $(BZIP2) -c $$d > $$d.bz2; _sfx=.bz2; \ fi; \ u=$$m.$(MAN_SECTION)$$_sfx; \ echo $(INSTALL) -m 644 $${d}$$_sfx $${t}$$_sfx; \ -- thomas graichen ... perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away. --- antoine de saint-exupery From owner-pcp@oss.sgi.com Thu Sep 13 17:35:06 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8E0Z6J18212 for pcp-outgoing; Thu, 13 Sep 2001 17:35:06 -0700 Received: from rj.sgi.com (rj.sgi.com [204.94.215.100]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8E0Z5e18209 for ; Thu, 13 Sep 2001 17:35:05 -0700 Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by rj.sgi.com (8.11.4/8.11.4/linux-outbound_gateway-1.0) with SMTP id f8E0Yw523345 for ; Thu, 13 Sep 2001 17:34:59 -0700 Received: from sherman.melbourne.sgi.com (sherman.melbourne.sgi.com [134.14.55.175]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id LAA27048; Fri, 14 Sep 2001 11:33:37 +1100 Date: Fri, 14 Sep 2001 10:33:37 +1000 (EST) From: Mark Goodwin X-Sender: markgw@sherman.melbourne.sgi.com To: thomas graichen cc: pcp@oss.sgi.com Subject: Re: minor patch to pcp In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-pcp@oss.sgi.com Precedence: bulk On Thu, 13 Sep 2001, thomas graichen wrote: > the following patch against pcp-2.2.1 adds support for systems > compressing the manpages using bzip2 (like for instance linux > mandrake 8.0) ... i think it should not break anything else > and would really like to see this added (maybe tweaked a bit > to the pcp tree) ... a lot of thanks in advance thanks, I'll merge this in. Regarding all the other patches people have sent in, we plan to roll a new PCP open source release as soon as I can find time - probably next week. I'm busy with other stuff right now. thanks -- Mark From owner-pcp@oss.sgi.com Mon Sep 17 01:50:41 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8H8ofX30529 for pcp-outgoing; Mon, 17 Sep 2001 01:50:41 -0700 Received: from mail.teraport.de (mail.teraport.de [195.143.8.72]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8H8oce30526 for ; Mon, 17 Sep 2001 01:50:39 -0700 Received: from TeraPort.de ([10.10.12.32]) by mail.teraport.de (Lotus Domino Release 5.0.7) with ESMTP id 2001091710503042:3132 ; Mon, 17 Sep 2001 10:50:30 +0200 Message-ID: <3BA5B955.CC32A0C0@TeraPort.de> Date: Mon, 17 Sep 2001 10:50:29 +0200 From: Martin Knoblauch Organization: TeraPort GmbH X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.9-ac10 i686) X-Accept-Language: en, de MIME-Version: 1.0 To: pcp@oss.sgi.com Subject: is_chkconfig_on not i18n safe X-MIMETrack: Itemize by SMTP Server on lotus/Teraport/de(Release 5.0.7 |March 21, 2001) at 09/17/2001 10:50:30 AM, Serialize by Router on lotus/Teraport/de(Release 5.0.7 |March 21, 2001) at 09/17/2001 10:50:39 AM, Serialize complete at 09/17/2001 10:50:39 AM Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Sender: owner-pcp@oss.sgi.com Precedence: bulk Hi, it seems that the is_chkconfig_on helper does not work if LANG is set to something different than "C" (or another english kind of language). This makes the pcp and pmie scripts in .../init.d fail. The following patch cures the problem for me: root@laplin22:/usr/share/pcp/lib > diff -u rc-proc.sh-orig rc-proc.sh --- rc-proc.sh-orig Mon Sep 17 10:45:15 2001 +++ rc-proc.sh Mon Sep 17 10:46:43 2001 @@ -70,6 +70,7 @@ # is_chkconfig_on() { + LANG=C _flag=$1 _ret=1 # return "off" by default Applies against pcp-2.2.1 Regards Martin -- ------------------------------------------------------------------ Martin Knoblauch | email: Martin.Knoblauch@TeraPort.de TeraPort GmbH | Phone: +49-89-510857-309 C+ITS | Fax: +49-89-510857-111 http://www.teraport.de | Mobile: +49-170-4904759 From owner-pcp@oss.sgi.com Mon Sep 17 01:58:26 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8H8wQH30651 for pcp-outgoing; Mon, 17 Sep 2001 01:58:26 -0700 Received: from mail.teraport.de (mail.teraport.de [195.143.8.72]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8H8wOe30648 for ; Mon, 17 Sep 2001 01:58:24 -0700 Received: from TeraPort.de ([10.10.12.32]) by mail.teraport.de (Lotus Domino Release 5.0.7) with ESMTP id 2001091710581799:3138 ; Mon, 17 Sep 2001 10:58:17 +0200 Message-ID: <3BA5BB29.B3CED97E@TeraPort.de> Date: Mon, 17 Sep 2001 10:58:17 +0200 From: Martin Knoblauch Organization: TeraPort GmbH X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.9-ac10 i686) X-Accept-Language: en, de MIME-Version: 1.0 To: pcp@oss.sgi.com Subject: pcp on platforms other than IRIX and Linux ? X-MIMETrack: Itemize by SMTP Server on lotus/Teraport/de(Release 5.0.7 |March 21, 2001) at 09/17/2001 10:58:18 AM, Serialize by Router on lotus/Teraport/de(Release 5.0.7 |March 21, 2001) at 09/17/2001 10:58:24 AM, Serialize complete at 09/17/2001 10:58:24 AM Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Sender: owner-pcp@oss.sgi.com Precedence: bulk Hi, this maybe a FAQ, although it isn't there :-) What other ports of PCP besides the IRIX and Linux Versions exist? Especially AIX, HP-UX and Solaris? I know something exists for Tru64. I am in the process of evaluating PCP as a monitoring framework for a heterogeneous setup of compute nodes. Thanks Martin -- ------------------------------------------------------------------ Martin Knoblauch | email: Martin.Knoblauch@TeraPort.de TeraPort GmbH | Phone: +49-89-510857-309 C+ITS | Fax: +49-89-510857-111 http://www.teraport.de | Mobile: +49-170-4904759 From owner-pcp@oss.sgi.com Mon Sep 17 04:33:05 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8HBX5c01901 for pcp-outgoing; Mon, 17 Sep 2001 04:33:05 -0700 Received: from sgi.com (sgi.SGI.COM [192.48.153.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8HBX1e01877 for ; Mon, 17 Sep 2001 04:33:01 -0700 Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via SMTP id EAA06040 for ; Mon, 17 Sep 2001 04:32:44 -0700 (PDT) mail_from (kenmcd@melbourne.sgi.com) From: kenmcd@melbourne.sgi.com Received: from kenj-ppp.melbourne.sgi.com (kenj-ppp.melbourne.sgi.com [134.14.55.215]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id WAA14966; Mon, 17 Sep 2001 22:31:26 +1100 Date: Mon, 17 Sep 2001 21:33:24 +1000 (EST) Reply-To: kenmcd@melbourne.sgi.com To: Martin Knoblauch cc: pcp@oss.sgi.com Subject: Re: pcp on platforms other than IRIX and Linux ? In-Reply-To: <3BA5BB29.B3CED97E@TeraPort.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-pcp@oss.sgi.com Precedence: bulk On Mon, 17 Sep 2001, Martin Knoblauch wrote: > Hi, > > this maybe a FAQ, although it isn't there :-) What other ports of PCP > besides the IRIX and Linux Versions exist? Especially AIX, HP-UX and > Solaris? I know something exists for Tru64. AIX not that I know of HP-UX we did one a long time ago for a project that never saw the light of day; this code has never been released, and at the time I recall one of the most annoying problems was that much of the interesting stuff was available to OpenView, Glance and friends using APIs that HP would not document or provide any assistance for the budding punter. Solaris there have been lots of rumours, and some effort at Fermilabs, but I've never seen any evidence of a working Solaris agent NT infrastructure done (several times!) using U/WIN, Cygwin, etc. to explore code portability, but we never decended into the registry to extract the real performance data; this code has never been released Tru64 patches recently provided and merged (or will be merged, I'm not sure of the exact status) into the open source release. IRIX seems to work for this platform ... 8^)> > I am in the process of evaluating PCP as a monitoring framework for a > heterogeneous setup of compute nodes. The really hard work has been done - portability of the infrastructure code (libraries, pmcd, pmlogger, pmie, etc) - endian and architecture safe on the wire protocols - endian and architecture safe archive format The piece that is missing for each platform is the OS plugin or PMDA ... the effort required here depends on how much information you want (there is _no_ requirement to export mandatory information, so pick the subset that is useful to you), and how helpful your host OS is in providing sane APIs for accessing the information. We'd really like to see people with a vested interest in other OSes contribute their OS plugin back to the open source PCP project so that all of PCP is more useful for people like Martin. From owner-pcp@oss.sgi.com Mon Sep 17 04:37:28 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8HBbSg02091 for pcp-outgoing; Mon, 17 Sep 2001 04:37:28 -0700 Received: from pneumatic-tube.sgi.com (pneumatic-tube.sgi.com [204.94.214.22]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8HBbRe02088 for ; Mon, 17 Sep 2001 04:37:27 -0700 Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via SMTP id EAA00805 for ; Mon, 17 Sep 2001 04:36:03 -0700 (PDT) mail_from (kenmcd@melbourne.sgi.com) From: kenmcd@melbourne.sgi.com Received: from kenj-ppp.melbourne.sgi.com (kenj-ppp.melbourne.sgi.com [134.14.55.215]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id WAA14986; Mon, 17 Sep 2001 22:36:06 +1100 Date: Mon, 17 Sep 2001 21:38:03 +1000 (EST) Reply-To: kenmcd@melbourne.sgi.com To: Martin Knoblauch cc: pcp@oss.sgi.com Subject: Re: is_chkconfig_on not i18n safe In-Reply-To: <3BA5B955.CC32A0C0@TeraPort.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-pcp@oss.sgi.com Precedence: bulk On Mon, 17 Sep 2001, Martin Knoblauch wrote: > Hi, > > it seems that the is_chkconfig_on helper does not work if LANG is set > to something different than "C" (or another english kind of language). > This makes the pcp and pmie scripts in .../init.d fail. The following > patch cures the problem for me: > > root@laplin22:/usr/share/pcp/lib > diff -u rc-proc.sh-orig rc-proc.sh > ... Please excuse our English linguistic imperialism. I'm sure Mark will pick up this patch in the next PCP release. Out of interest, what does chkconfig --list report in place of "3:on" for other locales? Thanks. From owner-pcp@oss.sgi.com Mon Sep 17 04:51:32 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8HBpWc02380 for pcp-outgoing; Mon, 17 Sep 2001 04:51:32 -0700 Received: from mail.teraport.de (mail.teraport.de [195.143.8.72]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8HBpSe02377 for ; Mon, 17 Sep 2001 04:51:28 -0700 Received: from TeraPort.de ([10.10.12.32]) by mail.teraport.de (Lotus Domino Release 5.0.7) with ESMTP id 2001091713512155:3197 ; Mon, 17 Sep 2001 13:51:21 +0200 Message-ID: <3BA5E3B8.65D5EB49@TeraPort.de> Date: Mon, 17 Sep 2001 13:51:20 +0200 From: Martin Knoblauch Organization: TeraPort GmbH X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.9-ac10 i686) X-Accept-Language: en, de MIME-Version: 1.0 To: kenmcd@melbourne.sgi.com CC: pcp@oss.sgi.com Subject: Re: is_chkconfig_on not i18n safe References: X-MIMETrack: Itemize by SMTP Server on lotus/Teraport/de(Release 5.0.7 |March 21, 2001) at 09/17/2001 01:51:21 PM, Serialize by Router on lotus/Teraport/de(Release 5.0.7 |March 21, 2001) at 09/17/2001 01:51:28 PM, Serialize complete at 09/17/2001 01:51:28 PM Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Sender: owner-pcp@oss.sgi.com Precedence: bulk kenmcd@melbourne.sgi.com wrote: > > On Mon, 17 Sep 2001, Martin Knoblauch wrote: > > > Hi, > > > > it seems that the is_chkconfig_on helper does not work if LANG is set > > to something different than "C" (or another english kind of language). > > This makes the pcp and pmie scripts in .../init.d fail. The following > > patch cures the problem for me: > > > > root@laplin22:/usr/share/pcp/lib > diff -u rc-proc.sh-orig rc-proc.sh > > ... > > Please excuse our English linguistic imperialism. > A week ago I would have had a witty response. Today nothing seems to be appropriate :-((( > I'm sure Mark will pick up this patch in the next PCP release. > > Out of interest, what does chkconfig --list report in place of > "3:on" for other locales? > For LANG=de pcp 0:Aus 1:Aus 2:Ein 3:Ein 4:Ein 5:Ein 6:Aus For LANG=fr pcp 0:Arr?t 1:Arr?t 2:Marche 3:Marche 4:Marche 5:Marche 6:Arr?t Martin -- ------------------------------------------------------------------ Martin Knoblauch | email: Martin.Knoblauch@TeraPort.de TeraPort GmbH | Phone: +49-89-510857-309 C+ITS | Fax: +49-89-510857-111 http://www.teraport.de | Mobile: +49-170-4904759 From owner-pcp@oss.sgi.com Sun Sep 30 22:36:24 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f915aOS08415 for pcp-outgoing; Sun, 30 Sep 2001 22:36:24 -0700 Received: from rigel.cis.ksu.edu (root@rigel.cis.ksu.edu [129.130.10.65]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f915aHD08410 for ; Sun, 30 Sep 2001 22:36:17 -0700 Received: from pollux.cis.ksu.edu (mst9696@pollux.cis.ksu.edu [129.130.10.33]) by rigel.cis.ksu.edu (8.9.1/8.9.1/000517) with ESMTP id AAA27969 for ; Mon, 1 Oct 2001 00:36:15 -0500 (CDT) Received: from localhost (mst9696@localhost) by pollux.cis.ksu.edu (8.9.1/8.9.1/000517) with ESMTP id AAA23796 for ; Mon, 1 Oct 2001 00:36:15 -0500 (CDT) X-Authentication-Warning: pollux.cis.ksu.edu: mst9696 owned process doing -bs Date: Mon, 1 Oct 2001 00:36:15 -0500 (CDT) From: Madhu Sudhan R Tera To: pcp@oss.sgi.com Subject: writing a PMDA: multiple instances to a metric Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-pcp@oss.sgi.com Precedence: bulk Hello all! I have problem in writing a pmda. I am writing a pmda called netstat. There are five metrics in it: pid, sport, saddr, dport,bandwidth (indicating the network bandwidth used by the corresponding connection). All these metrics have multiple instances (same number of instances for all). I have a method which evaluates all the connections and generates the corresponding values and stores them in a list.Each node in the list is a structure containing pid, sport, saddr, dport,bandwidth. Now I am calling this method in netstat_fetchCallBack method. In netstat_fetchCallBack I check for each metric as follows: if (idp->cluster == 0) { if (idp->item == 0) // netstat.pid { traverse the above generated list and assign pid in each list node as an instance of my pid metric ( atom->cp = val is i suppose can be done if my pid metric has only one instance.I DONT KNOW HOW TO DO IT WHEN IT HAS MULTIPLE INSTANCES ) } else if (idp->item == 1) // netstat.sport { traverse and assign; } .... //similarly for other metrics. ALL THE METRICS ARE OF TYPE PM_TYPE_STRING AND HAVE MULTIPLE INSTANCES. } my pmdaMetric structure is initialized in the beginning as follows: static pmdaMetric metrictab[] = { /* netstat */ { NULL, { PMDA_PMID(0,0), PM_TYPE_STRING, PM_INDOM_NULL, PM_SEM_DISCRETE,//see pamapi.h for PM_SEM_DISCRETE PMDA_PMUNITS(0,0,0,0,0,0) }, }, { NULL, { PMDA_PMID(0,1), PM_TYPE_STRING, PM_INDOM_NULL, PM_SEM_DISCRETE,//see pamapi.h for PM_SEM_DISCRETE PMDA_PMUNITS(0,0,0,0,0,0) }, }, { NULL, { PMDA_PMID(0,2), PM_TYPE_STRING, PM_INDOM_NULL, PM_SEM_DISCRETE,//see pamapi.h for PM_SEM_DISCRETE PMDA_PMUNITS(0,0,0,0,0,0) }, }, { NULL, { PMDA_PMID(0,3), PM_TYPE_STRING, PM_INDOM_NULL, PM_SEM_DISCRETE,//see pamapi.h for PM_SEM_DISCRETE PMDA_PMUNITS(0,0,0,0,0,0) }, }, { NULL, { PMDA_PMID(0,4), PM_TYPE_STRING, PM_INDOM_NULL, PM_SEM_DISCRETE,//see pamapi.h for PM_SEM_DISCRETE PMDA_PMUNITS(0,0,0,0,0,0) }, } }; HOW can i assign values to a metric that has multiple instances?? I have one more question. HOW MANY TIMES IS netstat_fetchCallBack method is invoked.Is it true that it is called as many times as there are metrics (in my case 5 times, as i have 5 metrics pid, sport, saddr, dport,bandwidth) Thank you, With regards, MadhuSudhan Reddy Tera -------------------------------------------------- |Department of Computing and Information Sciences, | |Kansas State University, | |Manhattan, KS 66502. | |ph no:785-537-3276 | --------------------------------------------------