Query: pmdastore
OS: centos
Section: 3
Links: centos man pages all man pages
Forums: forum home forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PMDASTORE(3) Library Functions Manual PMDASTORE(3)NAMEpmdaStore - store a value into a metric for a PMDAC SYNOPSIS#include <pcp/pmapi.h> #include <pcp/impl.h> #include <pcp/pmda.h> int pmdaStore(pmResult *result, pmdaExt *pmda); cc ... -lpcp_pmda -lpcpDESCRIPTIONAs part of the Performance Metrics Domain Agent (PMDA) API (see PMDA(3)), pmdaStore is the generic callback for storing a value into a met- ric. pmdaStore is usually a no-op as, by default, no metrics can be altered. Also, the implementation of a store callback which does per- mit metrics to be altered by pmstore(1) is very application dependent.DIAGNOSTICSpmdaStore returns PM_ERR_PERMISSION to indicate that no metrics may be modified.CAVEATThe PMDA must be using PMDA_PROTOCOL_2 or later, as specified in the call to pmdaDSO(3) or pmdaDaemon(3).SEE ALSOpmstore(1), PMAPI(3), PMDA(3), pmdaDaemon(3), pmdaDSO(3) and pmStore(3). Performance Co-Pilot PCP PMDASTORE(3)