PMIECONF(5) File Formats Manual PMIECONF(5) (NAME) pmieconf - pmie (DESCRIPTION) pmieconf pmieconf(1) pmie(1) . ( ) <> <>. $PCP_VAR_DIR/config/pmieconf pmie . pmieconf-rules . pmieconf-rules . pmieconf pmie . pmieconf-pmie pmieconf-rules . pmieconf-pmie pmieconf . pmie - pmieconf-pmie pmie ( pmie) pmie ( pmie ). $PCP_VAR_DIR/config/pmieconf/config.pmie pmieconf . $PCP_VAR_DIR/config/pmieconf/*/* . PMIECONF-PMIE (PMIECONF-PMIE SYNTAX) pmieconf-pmie <> - pmieconf-pmie pmie . pmieconf-pmie : // pmieconf-pmie version pmieconf_path version pmieconf-pmie . 1 . pmieconf_path pmieconf-rules pmieconf . pmieconf(1) ( -r ). . : // rule_version rule_name rule_variable = value rule_version rule_name . rule_variable ( rule_name ) value . pmieconf-pmie <> . pmieconf pmie . PMIECONF-PMIE (PMIECONF-PMIE EXAMPLE) pmieconf-pmie pmieconf . pmieconf ( ) . // pmieconf-pmie 1 $PCP_VAR_DIR/config/pmieconf // 1 memory.exhausted delta = "4 minutes" // 1 memory.exhausted enabled = yes // 1 memory.exhausted pcplog_action = yes // end // // --- START GENERATED SECTION (do not change this section) --- // generated by pmieconf on: [DATESTAMP] // // 1 memory.exhausted delta = 4 minutes; some_host ( ( avg_sample (swap.pagesout @0..9 ) ) > 0 && 30 %_sample swap.pagesout >= 5 ) -> shell 10 min "$PCP_BINADM_DIR/pmpost Severe demand for real memory" \ " %vpgsout/s@%h"; // --- END GENERATED SECTION (changes below will be preserved) --- : # cat - | pmieconf -f /tmp/pmieconf.out \ -r $PCP_VAR_DIR/config/pmieconf/memory:$PCP_VAR_DIR/config/pmieconf/global modify memory.exhausted delta "4 minutes" modify memory.exhausted enabled yes modify memory.exhausted pcplog_action yes ^D # pmie : # pmie -C /tmp/pmieconf.out . -C -v ( ) pmie ! PMIECONF-RULES (PMIECONF-RULES SYNTAX) pmieconf-rules ( ). (identifier) (type) () (attribute) . pmieconf-rules : type identifier [ attribute = value ]* ; type : "rule" ( ) "string" ( ) "double" "integer" "unsigned" "percent" ( 0 100) "hostlist" ( ) "instlist" ( ) pmie "print" "shell" "alarm" "syslog". <<.>> "memory.exhausted" "memory" . pmieconf . "global" . . "global" . attribute : "help" ( ) "modify" ( value yes/no pmieconf ) "enabled" ( value yes/no - ) "display" ( yes/no - pmieconf ) "default" ( value type ) "version" "predicate" "enumerate". "version" "predicate" ("predicate" pmie ) "enumerate" . "enumerate" pmie (predicate) . "some_inst" pmie . . "enumerate" "instlist" "hostlist" . "enumerate" - "instlist" "hostlist" . $identifier$ . . pmieconf pmie N ( N > 0 ) : // "version" identifier delta = $delta$; "predicate" -> $threshold$ $action1$ & ... & $actionN$ ; delta threshold action ( "global") . PMIECONF-RULES (PMIECONF-RULES EXAMPLE) pmieconf-rules . ("memory.exhausted") ("rule") . rule memory.exhausted default = "$rule$" predicate = "some_host ( ( avg_sample (swap.pagesout $hosts$ @0..9 ) ) > 0 && $pct$ %_sample swap.pagesout $hosts$ @0..9 >= $threshold$ )" enabled = yes version = 1 help = "The system is swapping modified pages out of main memory to the swap partitions, and has been doing this on at least pct of the last 10 evaluations of this rule. There appears to be insufficient main memory to meet the resident demands of the current workload."; string rule default = "Severe demand for real memory" modify = no display = no; "threshold" "pct" - $PCP_VAR_DIR/config/pmieconf/memory/exhausted . (FILES) $PCP_VAR_DIR/config/pmieconf/*/* $PCP_VAR_DIR/config/pmieconf/config.pmie (superuser) $HOME/.pcp/pmie/config.pmie (SEE ALSO) pmie(1) pmieconf(1). Performance Co-Pilot PCP PMIECONF(5)