87cc1f
diff -Naurp pcp-4.3.2.wip/build/rpm/fedora.spec pcp-4.3.2/build/rpm/fedora.spec
87cc1f
--- pcp-4.3.2.wip/build/rpm/fedora.spec	2019-04-26 11:54:27.000000000 +1000
87cc1f
+++ pcp-4.3.2/build/rpm/fedora.spec	2020-02-17 17:46:27.631805233 +1100
87cc1f
@@ -2888,6 +2888,7 @@ cd
87cc1f
 %else
87cc1f
 %config(noreplace) %{_sysconfdir}/cron.d/pcp-pmlogger-daily-report
87cc1f
 %endif
87cc1f
+%{_localstatedir}/lib/pcp/config/pmieconf/zeroconf
87cc1f
 %{_localstatedir}/lib/pcp/config/pmlogconf/zeroconf
87cc1f
 
87cc1f
 #additional pmlogger config files
87cc1f
diff -Naurp pcp-4.3.2.wip/man/man1/pmieconf.1 pcp-4.3.2/man/man1/pmieconf.1
87cc1f
--- pcp-4.3.2.wip/man/man1/pmieconf.1	2017-11-30 12:48:48.000000000 +1100
87cc1f
+++ pcp-4.3.2/man/man1/pmieconf.1	2020-02-17 17:46:53.461502780 +1100
87cc1f
@@ -61,7 +61,7 @@ Any rule modifications resulting from
87cc1f
 manipulation of variable values will be written to \f2file\f1.
87cc1f
 The default value of \f2file\f1 is dependent on the user ID \- for the root
87cc1f
 user, the file
87cc1f
-.I $PCP_VAR_DIR/config/pmieconf/config.pmie
87cc1f
+.I $PCP_SYSCONF_DIR/pmie/config.pmie
87cc1f
 is used, for other users the default is
87cc1f
 .IR $HOME/.pcp/pmie/config.pmie .
87cc1f
 .TP 8
87cc1f
@@ -309,7 +309,7 @@ option is presented.
87cc1f
 .IR $PCP_VAR_DIR/config/pmieconf/ */*
87cc1f
 generalized system resource monitoring rules
87cc1f
 .TP 10
87cc1f
-.I $PCP_VAR_DIR/config/pmieconf/config.pmie
87cc1f
+.I $PCP_SYSCONF_DIR/pmie/config.pmie
87cc1f
 default super-user settings for system resource monitoring rules
87cc1f
 .TP 10
87cc1f
 .I $HOME/.pcp/pmie/config.pmie
87cc1f
diff -Naurp pcp-4.3.2.wip/src/pmieconf/.gitignore pcp-4.3.2/src/pmieconf/.gitignore
87cc1f
--- pcp-4.3.2.wip/src/pmieconf/.gitignore	2017-11-30 12:48:48.000000000 +1100
87cc1f
+++ pcp-4.3.2/src/pmieconf/.gitignore	2020-02-17 17:46:27.632805221 +1100
87cc1f
@@ -2,14 +2,15 @@ cpu/GNUmakefile
87cc1f
 entropy/GNUmakefile
87cc1f
 filesys/GNUmakefile
87cc1f
 global/GNUmakefile
87cc1f
-local
87cc1f
 memory/GNUmakefile
87cc1f
 percpu/GNUmakefile
87cc1f
 pernetif/GNUmakefile
87cc1f
 primary/GNUmakefile
87cc1f
+zeroconf/GNUmakefile
87cc1f
 pmieconf
87cc1f
 pmieconf.static
87cc1f
 pmlogconf
87cc1f
 pmlogconf.tmp
87cc1f
 rate-syscalls
87cc1f
 rules
87cc1f
+local
87cc1f
diff -Naurp pcp-4.3.2.wip/src/pmieconf/GNUmakefile pcp-4.3.2/src/pmieconf/GNUmakefile
87cc1f
--- pcp-4.3.2.wip/src/pmieconf/GNUmakefile	2018-07-10 11:42:44.000000000 +1000
87cc1f
+++ pcp-4.3.2/src/pmieconf/GNUmakefile	2020-02-17 17:46:27.632805221 +1100
87cc1f
@@ -17,7 +17,8 @@ TOPDIR = ../..
87cc1f
 include	$(TOPDIR)/src/include/builddefs
87cc1f
 include $(TOPDIR)/src/libpcp/src/GNUlibrarydefs
87cc1f
 
87cc1f
-MKFILE_SUBDIRS = cpu entropy filesys memory percpu pernetif global primary
87cc1f
+MKFILE_SUBDIRS = cpu entropy filesys memory percpu pernetif \
87cc1f
+		 global primary zeroconf
87cc1f
 SUBDIRS	= $(MKFILE_SUBDIRS)
87cc1f
 
87cc1f
 CMDTARGET = pmieconf$(EXECSUFFIX)
87cc1f
diff -Naurp pcp-4.3.2.wip/src/pmieconf/zeroconf/all_threads pcp-4.3.2/src/pmieconf/zeroconf/all_threads
87cc1f
--- pcp-4.3.2.wip/src/pmieconf/zeroconf/all_threads	1970-01-01 10:00:00.000000000 +1000
87cc1f
+++ pcp-4.3.2/src/pmieconf/zeroconf/all_threads	2020-02-17 17:46:27.633805209 +1100
87cc1f
@@ -0,0 +1,37 @@
87cc1f
+#pmieconf-rules 1
87cc1f
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(5)
87cc1f
+#
87cc1f
+
87cc1f
+rule	zeroconf.all_threads
87cc1f
+	default	= "$rule$"
87cc1f
+	predicate = "some_host ( proc.control.all.threads == 0 )"
87cc1f
+	enabled	= no
87cc1f
+	version	= 1
87cc1f
+	help	=
87cc1f
+"Ensure per-thread metrics are exported by the pmdaproc(1)
87cc1f
+Performance Metric Domain Agent (PMDA).";
87cc1f
+
87cc1f
+string	rule
87cc1f
+	default	= "Enable per-thread proc metrics"
87cc1f
+	modify	= no
87cc1f
+	display	= no;
87cc1f
+
87cc1f
+string	action_expand
87cc1f
+	default	= "threads[%v]@%h"
87cc1f
+	display	= no
87cc1f
+	modify	= no;
87cc1f
+
87cc1f
+string	email_expand
87cc1f
+	default	= "host: %h threads=%v"
87cc1f
+	display	= no
87cc1f
+	modify	= no;
87cc1f
+
87cc1f
+shell	all_threads_action
87cc1f
+	enabled	= yes
87cc1f
+	default	= "pmstore proc.control.all.threads 1"
87cc1f
+	help	=
87cc1f
+"The pmdaproc(1) Performance Metrics Domain Agent will receive a
87cc1f
+metric store to via pmstore(1) to export threads values as well.";
87cc1f
+
87cc1f
+# 
87cc1f
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(5)
87cc1f
diff -Naurp pcp-4.3.2.wip/src/pmieconf/zeroconf/localdefs pcp-4.3.2/src/pmieconf/zeroconf/localdefs
87cc1f
--- pcp-4.3.2.wip/src/pmieconf/zeroconf/localdefs	1970-01-01 10:00:00.000000000 +1000
87cc1f
+++ pcp-4.3.2/src/pmieconf/zeroconf/localdefs	2020-02-17 17:46:27.633805209 +1100
87cc1f
@@ -0,0 +1,2 @@
87cc1f
+ALL_RULES = all_threads
87cc1f
+LOCAL_RULES = $(ALL_RULES)