How do I configure a firewall on a RHEL server to allow remote monitoring with Performance Co-Pilot (PCP)?

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux (RHEL) 5 and later

Issue

  • How do I configure firewall on a RHEL server to allow remote monitoring with performance Co-Pilot (PCP)?
  • How can I configure PCP security features, including authentication and access control

Resolution

  • for local performance data collection, the firewall configuration does NOT need to be changed. This is the most common PCP collector deployment.
  • to allow monitoring of the server by remote PCP clients (including a remote pmlogger), the firewall configuration needs to be configured as follows :

RHEL7 and later

firewall-cmd --permanent --zone=public --add-service=pmcd
firewall-cmd --reload

RHEL6 and RHEL5

use the standard firewall configuration tools, e.g. by running setup or system-config-securitylevel.

Additional Notes

  • the firewall GUI tool on each RHEL version can also be used - just open up (or re-map) the pmcd port (which is normally 44321/tcp, see /etc/services) on the desired network interfaces or zones as needed.
  • in a devops environment with the pmwebd(1) service enabled, you may also want to expose the pmwebd port, which is 44323/tcp by default.
  • there may be security implications of allowing remote access - PCP exports a lot of information about the system. Due care is required when opening the pmcd port on a public zoned interface.

Authentication and access control

See Also

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.