PMFIND_CHECK(1) | General Commands Manual | PMFIND_CHECK(1) |
pmfind_check - administration of Performance Co-Pilot discovery
$PCP_BINADM_DIR/pmfind_check [-CNV?] [-l logfile]
This shell script is used to integrate the Performance Co-Pilot (see PCPIntro(1)) collector service discovery mechanisms with pmie(1) and pmlogger(1) service administration, such that multiple collector hosts can be monitored from a single centralized host. It is important to note that the pmfind service is tightly integrated with the pmie and pmlogger services, and these must also be enabled if the services are to be started for each collector system that pmfind discovers.
pmfind_check is designed to be enabled via a service management daemon such as systemd(1) on Linux. It is run from a system timer (either by systemd or by cron on other systems). Once per timer interval pmfind attempts discovery of PCP collector systems. For each unique system found pmfind_check creates pmie_check and pmlogger_check control file entries, such that these latter process can manage one pmie and pmlogger service for each discovered collector system.
When run through systemd these processes will be launched immediately because systemd monitors the service control files for changes. With systemd one may also initiate an immediate service discovery with pmfind and pmfind_check by modifying the $PCP_SYSCONF_DIR/pmfind directory in any way.
When run from cron the next (also timer-based) invocation of pmie_check or pmlogger_check will start and manage the associated pmie and pmlogger processes.
The control file entries created by pmfind_check follow the convention of individual files for each collector host. The files are named using the (unique) source identifier that pmfind calculates. This identifier is a hash calculated based on (non-optional) context labels available from every collector host, and is the same source identifier reported and used by pminfo(1) and pmseries(1).
The available command line options are:
The command line options passed to pmie and pmlogger can be customized via the $PCP_SYSCONFIG_DIR/pmfind configuration file.
Refer to the pmie_check and pmlogger_check manual pages for details of the control file format generated by pmfind_check.
By default, each collector system pmie logfile will be created in $PCP_LOG_DIR/pmie/source and pmlogger archives will be created below $PCP_ARCHIVE_DIR/source. This is consistent with the way pmie(1) and pmlogger(1) maintain their activity logs and archive files.
Typical crontab(5) entries for periodic execution of pmfind_check are given in $PCP_SYSCONF_DIR/pmfind/crontab (unless installed by default in /etc/cron.d already) and shown below.
# every minute, discover remote PCP services * * * * * $PCP_BINADM_DIR/pmfind_checkWhen using systemd(1) on Linux, no crontab entries are needed as the timer and path mechanisms provided by systemd are used instead.
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5).
PCPIntro(1), pmcd(1), pmfind(1), pmie(1), pmie_check(1), pminfo(1), pmlogger(1), pmlogger_check(1), pmseries(1), systemd(1), crontab(5), and cron(8).
PCP | Performance Co-Pilot |