pmdaSendError(3)

pmdaSendError3

Send an error pdu to pmcd

C synopsis

#include <pcp/pmapi.h>
#include <pcp/pmda.h>

void pmdaSendError(pmdaInterface *dispatch, int err);

cc ... -lpcp_pmda -lpcp

Python synopsis

from pcp.pmda import PMDA
PMDA.pmda_notready()
PMDA.pmda_ready()

Overview

As part of the Performance Metrics Domain Agent (PMDA) API (see PMDA(3)), this routine allows a PMDA to send an error PDU to PMCD. There is presently only one use for this - so the PMDA can inform PMCD that it is ready (or not ready) to process requests.

The protocol details are described in pmcd(1) and PMDA(3), but basically if a PMDA starts in the notready state (as may be specified in pmcd.conf, see pmcd(1)) then PMCD will not send it any requests until the PMDA sends an PM_ERR_PMDAREADY error PDU using this function. This is used by a PMDA that may have a long startup time, e.g. to process a large configuration file or similar.

Releases

5 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11–12
  3. 13
  4. Arch

From pcp 7.2.2-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.