введение в библиотеку поддержки агента домена Performance Metrics (introduction to the Performance Metrics Domain Agent support library)
Диагностика (Diagnostic)
Any PMDA which uses this library can set PMAPI(3) debugging
control option libpmda
(with -Dlibpmda
on the command line or via
3
pmSetDebug(3))
to to enable the display of debugging information
which may be useful during development (see pmdbg(1)).
The status field of the pmdaInterface
structure should be zero
after pmdaDaemon
, pmdaDSO
, pmdaGetOpt
, pmdaConnect
and pmdaInit
are called. A value less than zero indicates that initialization
has failed.
Some error messages that are common to most functions in this
library are:
PMDA interface version
interface not supported
Most of the functions require that the comm.version field
of the pmdaInterface
structure be set to PMDA_INTERFACE_2
or later. PMDA_INTERFACE_2
or PMDA_INTERFACE_3
implies
that the version.two fields are correctly initialized,
while PMDA_INTERFACE_4
implies that the version.four
fields are correctly initialized (see pmdaDaemon(3) and
pmdaDSO(3)).